pkgsrc/textproc/epubpreflight/Makefile
wiz 646b77af0f Initial import of epubpreflight-0.1.0:
epubpreflight is a tool for checking ePub files. It does not do
validation, that is the role of the epubcheck tool. The epubpreflight
tool is intended to check the things that are not mentioned in the
EPUB spec, but that could be issues in one environment or another.

The things that epubpreflight currently gives errors for are:
* Content files that are empty.
* Content files that are over 300KB.
* Image files that are empty.
* Image files that are over 10MB.

It doesn't yet check the stylesheets.
2009-11-07 09:04:19 +00:00

34 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2009/11/07 09:04:19 wiz Exp $
#
DISTNAME= epubpreflight-0.1.0
CATEGORIES= textproc
MASTER_SITES= http://epubcheck.googlecode.com/files/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://epubcheck.googlecode.com/
COMMENT= TODO: Short description of the package
LICENSE= modified-bsd AND mit
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_JAVA= run
INSTALLATION_DIRS= bin libexec/epubpreflight/lib share/doc/epubpreflight
do-build:
${ECHO} "#!/bin/sh" > ${WRKSRC}/epubpreflight
${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/epubpreflight/epubpreflight-0.1.0.jar"' "$$@"' >> ${WRKSRC}/epubpreflight
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/epubpreflight ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/epubpreflight-0.1.0.jar ${DESTDIR}${PREFIX}/libexec/epubpreflight
# XXX: depend on saxon instead?
${INSTALL_DATA} ${WRKSRC}/lib/saxon.jar ${DESTDIR}${PREFIX}/libexec/epubpreflight/lib
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
${INSTALL_DATA} ${WRKSRC}/jing_license.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"