2012-10-25 08:55:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2012/10/25 06:55:49 asau Exp $
|
2009-10-11 11:36:56 +02:00
|
|
|
#
|
|
|
|
|
2011-04-05 14:51:18 +02:00
|
|
|
DISTNAME= epubcheck-${VER}
|
|
|
|
VER= 1.2
|
2009-10-11 11:36:56 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://epubcheck.googlecode.com/files/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://epubcheck.googlecode.com/
|
|
|
|
COMMENT= Tool to validate IDPF Epub files
|
|
|
|
LICENSE= mit
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
USE_JAVA= run
|
2010-11-22 19:20:30 +01:00
|
|
|
INSTALLATION_DIRS= bin libexec/epubcheck/lib share/doc/epubcheck
|
2009-10-11 11:36:56 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
${ECHO} "#!/bin/sh" > ${WRKSRC}/epubcheck
|
2011-04-05 14:51:18 +02:00
|
|
|
${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/epubcheck/epubcheck-${VER}.jar"' "$$@"' >> ${WRKSRC}/epubcheck
|
2009-10-11 11:36:56 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/epubcheck ${DESTDIR}${PREFIX}/bin
|
2011-04-05 14:51:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/epubcheck-${VER}.jar ${DESTDIR}${PREFIX}/libexec/epubcheck
|
2009-10-11 11:36:56 +02:00
|
|
|
# XXX: depend on saxon instead?
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/saxon.jar ${DESTDIR}${PREFIX}/libexec/epubcheck/lib
|
2011-04-05 14:51:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/jing.jar ${DESTDIR}${PREFIX}/libexec/epubcheck/lib
|
2009-10-11 11:36:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jing_license.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
|
|
|
|
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|