blob: 0ea977f2b2c4b2ba9059c2e291bfdfac68f54245 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
PORTNAME= apache-ant
DISTVERSION= 1.10.8
CATEGORIES= devel java
MASTER_SITES= https://archive.apache.org/dist/ant/binaries/:bin \
LOCAL/hq:man
DISTFILES= ${ANT_DISTFILE}:bin \
${MANPAGE_DISTFILE}:man
EXTRACT_ONLY= ${ANT_DISTFILE}
MAINTAINER= java@FreeBSD.org
COMMENT= Java- and XML-based build tool, conceptually similar to make
WWW= https://ant.apache.org/
LICENSE= APACHE20
USES= cpe tar:bzip2
CPE_VENDOR= apache
CPE_PRODUCT= ant
USE_JAVA= yes
OPTIONS_DEFINE= DOCS
ANT_DISTFILE= ${PORTNAME}-${DISTVERSION}-bin.tar.bz2
MANPAGE_DISTFILE= ${PORTNAME}-manpage-${MANPAGE_VERSION}.tgz
MANPAGE_VERSION= 20030908
NO_ARCH= yes
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
READMES= LICENSE README WHATSNEW
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= ${PORTNAME}-${DISTVERSION}-manual.tar.bz2:doc
MASTER_SITES+= https://archive.apache.org/dist/ant/manual/:doc
PORTDOCS= *
.endif
MANPAGE_SUBDIR= apache-ant-manpage
MANPAGE_WRKSRC= ${WRKSRC}/${MANPAGE_SUBDIR}
SUB_FILES= ant.sh
post-extract:
@${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${MANPAGE_DISTFILE}
do-install:
@${ECHO_MSG} -n ">> Installing scripts..."
@${MKDIR} ${STAGEDIR}${DATADIR}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/ant.sh ${STAGEDIR}${PREFIX}/bin/ant
@${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${STAGEDIR}${DATADIR}/bin/
@${ECHO_MSG} " [ DONE ]"
.for d in etc lib
@${ECHO_MSG} -n ">> Installing data directory '${d}'..."
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}/
@${ECHO_MSG} " [ DONE ]"
.endfor
@${ECHO_MSG} -n ">> Installing manpages..."
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/ant.1 ${STAGEDIR}${PREFIX}/man/man1
@${INSTALL_MAN} ${MANPAGE_WRKSRC}/build.xml.5 ${STAGEDIR}${PREFIX}/man/man5
@${ECHO_MSG} " [ DONE ]"
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} -n ">> Installing readme files..."
@${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation files..."
@cd ${WRKSRC} && ${COPYTREE_SHARE} manual ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>
|