[71919] trunk/dports/textproc
ryandesign at macports.org
ryandesign at macports.org
Sun Sep 26 23:38:08 PDT 2010
Revision: 71919
http://trac.macports.org/changeset/71919
Author: ryandesign at macports.org
Date: 2010-09-26 23:38:04 -0700 (Sun, 26 Sep 2010)
Log Message:
-----------
epubcheck: new port, version 1.0.5; see #26606
Added Paths:
-----------
trunk/dports/textproc/epubcheck/
trunk/dports/textproc/epubcheck/Portfile
trunk/dports/textproc/epubcheck/files/
trunk/dports/textproc/epubcheck/files/epubcheck.in
Added: trunk/dports/textproc/epubcheck/Portfile
===================================================================
--- trunk/dports/textproc/epubcheck/Portfile (rev 0)
+++ trunk/dports/textproc/epubcheck/Portfile 2010-09-27 06:38:04 UTC (rev 71919)
@@ -0,0 +1,60 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name epubcheck
+version 1.0.5
+categories textproc
+platforms darwin
+maintainers nomaintainer
+supported_archs noarch
+
+description ePub Validator to validate ePub documents
+
+long_description EpubCheck is a tool to validate IDPF EPUB files. \
+ It can detect many types of errors in EPUB. OCF \
+ container structure, OPF and OPS mark-up, and \
+ internal reference consistency are checked.
+
+homepage http://code.google.com/p/epubcheck/
+master_sites googlecode
+
+distname ${name}-${version}
+
+use_zip yes
+checksums md5 934a08dc7c08cefac3a607c7a21be3b3 \
+ sha1 31f3740b65da142803c1e3d25c7c77fd632913dd \
+ rmd160 b7577716915fcc5867d1f83068d14e9e1ae72ef1
+
+depends_run bin:java:kaffe
+
+extract.mkdir yes
+
+use_configure no
+
+build {}
+
+destroot {
+ # path to the epubcheck java files (without ${destroot}):
+
+ set epubcheck ${prefix}/share/java/epubcheck
+
+ # install the template epubcheck script from files:
+
+ xinstall ${filespath}/epubcheck.in ${destroot}${prefix}/bin/epubcheck
+
+ # set the correct path to epubcheck.jar in the epubcheck script:
+
+ reinplace "s|@@EPUBCHECK@@|${epubcheck}|g" \
+ ${destroot}${prefix}/bin/epubcheck
+
+ # install the epubcheck java files:
+
+ xinstall -d ${destroot}${epubcheck}/lib
+
+ xinstall ${worksrcpath}/${name}-${version}.jar ${destroot}${epubcheck}/${name}.jar
+ xinstall ${worksrcpath}/jing_license.txt ${destroot}${epubcheck}
+ xinstall ${worksrcpath}/lib/saxon.jar ${destroot}${epubcheck}/lib
+}
+
Property changes on: trunk/dports/textproc/epubcheck/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/epubcheck/files/epubcheck.in
===================================================================
--- trunk/dports/textproc/epubcheck/files/epubcheck.in (rev 0)
+++ trunk/dports/textproc/epubcheck/files/epubcheck.in 2010-09-27 06:38:04 UTC (rev 71919)
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+
+MYTMP=/tmp/epubcheck$$.txt
+
+java -classpath @@EPUBCHECK@@ -jar @@EPUBCHECK@@/epubcheck.jar $@ 2>&1 | tee ${MYTMP}
+
+MYERR=$(grep "^ERROR" ${MYTMP} | wc -l)
+
+rm -f ${MYTMP}
+
+if [ ${MYERR} -ne 0 ]; then
+ exit 1
+fi
+
+exit 0
Property changes on: trunk/dports/textproc/epubcheck/files/epubcheck.in
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100926/2093e8a5/attachment.html>
More information about the macports-changes
mailing list