diff options
author | wiz <wiz@pkgsrc.org> | 2009-11-07 09:04:19 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2009-11-07 09:04:19 +0000 |
commit | 041032b630555637ae593bf68751ceff19f3a389 (patch) | |
tree | 536cd1d70626809d2337d7df2a10977e00e84945 /textproc/epubpreflight | |
parent | b6241b91bfd10b62cb5c15bbb66bcc48ca9881a8 (diff) | |
download | pkgsrc-041032b630555637ae593bf68751ceff19f3a389.tar.gz |
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.
Diffstat (limited to 'textproc/epubpreflight')
-rw-r--r-- | textproc/epubpreflight/DESCR | 12 | ||||
-rw-r--r-- | textproc/epubpreflight/Makefile | 34 | ||||
-rw-r--r-- | textproc/epubpreflight/PLIST | 7 | ||||
-rw-r--r-- | textproc/epubpreflight/distinfo | 5 |
4 files changed, 58 insertions, 0 deletions
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 |