diff --git a/textproc/epubcheck/Makefile b/textproc/epubcheck/Makefile new file mode 100644 index 00000000000..a866a5b2815 --- /dev/null +++ b/textproc/epubcheck/Makefile @@ -0,0 +1,37 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2019/06/23 06:50:51 bentley Exp $ + +PKG_ARCH = * + +COMMENT = EPUB validator + +V = 4.2.1 +DISTNAME = epubcheck-$V + +CATEGORIES = textproc + +HOMEPAGE = https://github.com/w3c/epubcheck + +MAINTAINER = Anthony J. Bentley + +# BSD +PERMIT_PACKAGE = Yes + +MASTER_SITES = https://github.com/w3c/epubcheck/releases/download/v$V/ + +EXTRACT_SUFX = .zip + +MODULES = java +MODJAVA_VER = 1.8+ +RUN_DEPENDS = java/javaPathHelper + +NO_BUILD = Yes +NO_TEST = Yes + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/epubcheck + ${INSTALL_DATA} ${WRKSRC}/epubcheck.jar ${PREFIX}/share/epubcheck + ${INSTALL_SCRIPT} ${FILESDIR}/epubcheck ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/epubcheck/lib + ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${PREFIX}/share/epubcheck/lib + +.include diff --git a/textproc/epubcheck/distinfo b/textproc/epubcheck/distinfo new file mode 100644 index 00000000000..622e727d900 --- /dev/null +++ b/textproc/epubcheck/distinfo @@ -0,0 +1,2 @@ +SHA256 (epubcheck-4.2.1.zip) = ii/FW5sGCq4WIZK0gzjostNCOSbEg8HaAhg9CBh0yxA= +SIZE (epubcheck-4.2.1.zip) = 11989630 diff --git a/textproc/epubcheck/files/epubcheck b/textproc/epubcheck/files/epubcheck new file mode 100644 index 00000000000..67f9c5b6e2c --- /dev/null +++ b/textproc/epubcheck/files/epubcheck @@ -0,0 +1,2 @@ +#!/bin/sh +`javaPathHelper -c epubcheck` -jar /usr/local/share/epubcheck/epubcheck.jar $@ diff --git a/textproc/epubcheck/pkg/DESCR b/textproc/epubcheck/pkg/DESCR new file mode 100644 index 00000000000..47548140ded --- /dev/null +++ b/textproc/epubcheck/pkg/DESCR @@ -0,0 +1,6 @@ +EPUBCheck is a tool to validate the conformance of EPUB publications against +the EPUB specifications. EPUBCheck can be run as a standalone command-line +tool or used as a Java library. + +EPUBCheck is open source software, maintained by the DAISY Consortium on +behalf of the W3C. diff --git a/textproc/epubcheck/pkg/PLIST b/textproc/epubcheck/pkg/PLIST new file mode 100644 index 00000000000..d2d26d6c4d4 --- /dev/null +++ b/textproc/epubcheck/pkg/PLIST @@ -0,0 +1,25 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2019/06/23 06:50:52 bentley Exp $ +bin/epubcheck +share/epubcheck/ +share/epubcheck/epubcheck.jar +share/epubcheck/lib/ +share/epubcheck/lib/Saxon-HE-9.8.0-8.jar +share/epubcheck/lib/animal-sniffer-annotations-1.14.jar +share/epubcheck/lib/checker-compat-qual-2.0.0.jar +share/epubcheck/lib/common-image-3.4.1.jar +share/epubcheck/lib/common-io-3.4.1.jar +share/epubcheck/lib/common-lang-3.4.1.jar +share/epubcheck/lib/commons-compress-1.18.jar +share/epubcheck/lib/error_prone_annotations-2.1.3.jar +share/epubcheck/lib/guava-24.0-android.jar +share/epubcheck/lib/imageio-core-3.4.1.jar +share/epubcheck/lib/imageio-jpeg-3.4.1.jar +share/epubcheck/lib/imageio-metadata-3.4.1.jar +share/epubcheck/lib/isorelax-20030108.jar +share/epubcheck/lib/j2objc-annotations-1.1.jar +share/epubcheck/lib/jackson-core-asl-1.9.12.jar +share/epubcheck/lib/jackson-mapper-asl-1.9.12.jar +share/epubcheck/lib/jing-20181222.jar +share/epubcheck/lib/jsr305-1.3.9.jar +share/epubcheck/lib/sac-1.3.jar +share/epubcheck/lib/xercesImpl-2.9.1.jar