aboutsummaryrefslogtreecommitdiff
path: root/textproc/trang/Makefile
blob: 64c2dddd584161d83842d061b69f87c91706d6c3 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Kimura Fuyuki <fuyuki@nigredo.org>
# $FreeBSD$

PORTNAME=	trang
PORTVERSION=	2015.11.27
CATEGORIES=	textproc java

MAINTAINER=	gabor@FreeBSD.org
COMMENT=	Multi-format schema converter based on RELAX NG

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/trang/copying.txt

BROKEN_armv6=		fails to build: modbuild.xml: Java returned: 1
BROKEN_armv7=		fails to build: modbuild.xml: Java returned: 1

USE_GITHUB=	yes
GH_ACCOUNT=	relaxng
GH_PROJECT=	jing-trang
GH_TAGNAME=	1e74846

USE_JAVA=	yes
JAVA_VERSION=	1.6+
JAVA_BUILD=	yes
JAVA_RUN=	yes

OPTIONS_DEFINE=	DOCS

PORTDOCS=	convert-to-xsd-talk.html trang.html trang-manual.html

SUB_FILES=	trang.sh
PLIST_FILES=	%%JAVAJARDIR%%/trang.jar bin/trang

.include <bsd.port.options.mk>

do-build:
	(cd ${WRKSRC} && JAVA_HOME=${JAVA_HOME} ./ant)

do-install:
	${INSTALL_DATA} ${WRKSRC}/build/trang.jar ${STAGEDIR}${JAVAJARDIR}
	${INSTALL_SCRIPT} ${WRKDIR}/trang.sh ${STAGEDIR}${PREFIX}/bin/trang
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/trang/doc/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>