pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/epubpreflight Initial import of epubpreflight...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c903467bfbf7
branches: trunk
changeset: 567095:c903467bfbf7
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Nov 07 09:04:19 2009 +0000
description:
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:
textproc/epubpreflight/DESCR | 12 ++++++++++++
textproc/epubpreflight/Makefile | 34 ++++++++++++++++++++++++++++++++++
textproc/epubpreflight/PLIST | 7 +++++++
textproc/epubpreflight/distinfo | 5 +++++
4 files changed, 58 insertions(+), 0 deletions(-)
diffs (74 lines):
diff -r ebe5ae57d352 -r c903467bfbf7 textproc/epubpreflight/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/epubpreflight/DESCR Sat Nov 07 09:04:19 2009 +0000
@@ -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 -r ebe5ae57d352 -r c903467bfbf7 textproc/epubpreflight/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/epubpreflight/Makefile Sat Nov 07 09:04:19 2009 +0000
@@ -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@localhost
+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 -r ebe5ae57d352 -r c903467bfbf7 textproc/epubpreflight/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/epubpreflight/PLIST Sat Nov 07 09:04:19 2009 +0000
@@ -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 -r ebe5ae57d352 -r c903467bfbf7 textproc/epubpreflight/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/epubpreflight/distinfo Sat Nov 07 09:04:19 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index