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.
This commit is contained in:
parent
1f8bf46177
commit
646b77af0f
4 changed files with 58 additions and 0 deletions
12
textproc/epubpreflight/DESCR
Normal file
12
textproc/epubpreflight/DESCR
Normal file
|
@ -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.
|
34
textproc/epubpreflight/Makefile
Normal file
34
textproc/epubpreflight/Makefile
Normal file
|
@ -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"
|
7
textproc/epubpreflight/PLIST
Normal file
7
textproc/epubpreflight/PLIST
Normal file
|
@ -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
|
5
textproc/epubpreflight/distinfo
Normal file
5
textproc/epubpreflight/distinfo
Normal file
|
@ -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
|
Loading…
Reference in a new issue