blob: e04eb2fb70bb7823ecf67e810a4e1f8be1a4b3e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $NetBSD: Makefile,v 1.8 2017/08/01 17:40:17 wiz Exp $
DISTNAME= epubcheck-${VER}
VER= 1.2
CATEGORIES= textproc
#MASTER_SITES= http://epubcheck.googlecode.com/files/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/IDPF/epubcheck
COMMENT= Tool to validate IDPF Epub files
LICENSE= mit
WRKSRC= ${WRKDIR}
USE_JAVA= run
INSTALLATION_DIRS= bin libexec/epubcheck/lib share/doc/epubcheck
do-build:
${ECHO} "#!/bin/sh" > ${WRKSRC}/epubcheck
${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/epubcheck/epubcheck-${VER}.jar"' "$$@"' >> ${WRKSRC}/epubcheck
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/epubcheck ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/epubcheck-${VER}.jar ${DESTDIR}${PREFIX}/libexec/epubcheck
# XXX: depend on saxon instead?
${INSTALL_DATA} ${WRKSRC}/lib/saxon.jar ${DESTDIR}${PREFIX}/libexec/epubcheck/lib
${INSTALL_DATA} ${WRKSRC}/lib/jing.jar ${DESTDIR}${PREFIX}/libexec/epubcheck/lib
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
${INSTALL_DATA} ${WRKSRC}/jing_license.txt ${DESTDIR}${PREFIX}/share/doc/epubcheck
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|