From 1aff30975b8cba06118e5b175e1db46d1d7cf107 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 7 Nov 2009 09:04:19 +0000 Subject: 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. --- textproc/epubpreflight/DESCR | 12 ++++++++++++ textproc/epubpreflight/Makefile | 34 ++++++++++++++++++++++++++++++++++ textproc/epubpreflight/PLIST | 7 +++++++ textproc/epubpreflight/distinfo | 5 +++++ 4 files changed, 58 insertions(+) create mode 100644 textproc/epubpreflight/DESCR create mode 100644 textproc/epubpreflight/Makefile create mode 100644 textproc/epubpreflight/PLIST create mode 100644 textproc/epubpreflight/distinfo (limited to 'textproc/epubpreflight') diff --git a/textproc/epubpreflight/DESCR b/textproc/epubpreflight/DESCR new file mode 100644 index 00000000000..16d2a366247 --- /dev/null +++ b/textproc/epubpreflight/DESCR @@ -0,0 +1,12 @@ +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. diff --git a/textproc/epubpreflight/Makefile b/textproc/epubpreflight/Makefile new file mode 100644 index 00000000000..3fda7527dc4 --- /dev/null +++ b/textproc/epubpreflight/Makefile @@ -0,0 +1,34 @@ +# $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" diff --git a/textproc/epubpreflight/PLIST b/textproc/epubpreflight/PLIST new file mode 100644 index 00000000000..7b74e1600af --- /dev/null +++ b/textproc/epubpreflight/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/07 09:04:19 wiz Exp $ +bin/epubpreflight +libexec/epubpreflight/${PKGNAME}.jar +libexec/epubpreflight/lib/saxon.jar +share/doc/epubpreflight/COPYING.txt +share/doc/epubpreflight/README.txt +share/doc/epubpreflight/jing_license.txt diff --git a/textproc/epubpreflight/distinfo b/textproc/epubpreflight/distinfo new file mode 100644 index 00000000000..836023a25ae --- /dev/null +++ b/textproc/epubpreflight/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/11/07 09:04:19 wiz Exp $ + +SHA1 (epubpreflight-0.1.0.zip) = 001f645335bbbf63f41d4e9861de32e2dd6f3d7b +RMD160 (epubpreflight-0.1.0.zip) = 5a86a51e172609aa5b9f7dacc12e4e0498b2c820 +Size (epubpreflight-0.1.0.zip) = 1299716 bytes -- cgit v1.2.3