summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-23 05:32:57 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-23 05:32:57 +0000
commit717242615343dbd0a22361457a590fbd4308b6b3 (patch)
tree6015f761a760abc88b31df6f52fd0764ba9bef1e /app-text/epubcheck
parentmarked x86 per bug 417189 (diff)
downloadgentoo-2-717242615343dbd0a22361457a590fbd4308b6b3.tar.gz
gentoo-2-717242615343dbd0a22361457a590fbd4308b6b3.tar.bz2
gentoo-2-717242615343dbd0a22361457a590fbd4308b6b3.zip
Initial import of epubcheck tool to verify epub documents validity.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'app-text/epubcheck')
-rw-r--r--app-text/epubcheck/ChangeLog10
-rw-r--r--app-text/epubcheck/epubcheck-1.1.ebuild56
-rw-r--r--app-text/epubcheck/metadata.xml7
3 files changed, 73 insertions, 0 deletions
diff --git a/app-text/epubcheck/ChangeLog b/app-text/epubcheck/ChangeLog
new file mode 100644
index 000000000000..8a5315eef9b7
--- /dev/null
+++ b/app-text/epubcheck/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-text/epubcheck
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/epubcheck/ChangeLog,v 1.1 2012/05/23 05:32:57 flameeyes Exp $
+
+*epubcheck-1.1 (23 May 2012)
+
+ 23 May 2012; Diego E. Pettenò <flameeyes@gentoo.org> +epubcheck-1.1.ebuild,
+ +metadata.xml:
+ Initial import of epubcheck tool to verify epub documents validity.
+
diff --git a/app-text/epubcheck/epubcheck-1.1.ebuild b/app-text/epubcheck/epubcheck-1.1.ebuild
new file mode 100644
index 000000000000..b0540e7da3f8
--- /dev/null
+++ b/app-text/epubcheck/epubcheck-1.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/epubcheck/epubcheck-1.1.ebuild,v 1.1 2012/05/23 05:32:57 flameeyes Exp $
+
+EAPI=4
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Tool to validate IDPF EPUB files"
+HOMEPAGE="https://code.google.com/p/epubcheck/"
+SRC_URI="https://${PN}.googlecode.com/files/${PN}-src-${PV}.zip"
+
+LICENSE="as-is BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+COMMON_DEP="dev-java/jigsaw:0
+ dev-java/saxon:6.5"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ rm -f lib/*.jar
+
+ java-pkg_jar-from --into lib/ jigsaw
+ java-pkg_jar-from --into lib/ saxon-6.5
+
+ cd lib/
+ ln -s $(java-config --tools)
+}
+
+src_compile() {
+ eant buildJar
+}
+
+src_test() {
+ java -cp "$(java-pkg_getjars jigsaw,saxon-6.5):dist/${P}.jar" \
+ com.adobe.epubcheck.autotest.AutoTest testdocs/general/tests.xml testdocs/general/ \
+ || die "tests failed"
+}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main com.adobe.epubcheck.tool.Checker
+
+ dodoc README.txt
+}
diff --git a/app-text/epubcheck/metadata.xml b/app-text/epubcheck/metadata.xml
new file mode 100644
index 000000000000..63ac5653603a
--- /dev/null
+++ b/app-text/epubcheck/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>