blob: f85b11c777d69caa6bff055aa11787632b7dd191 (
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
|
# Created by: Anton Yudin <toha@toha.org.ua>
# $FreeBSD$
PORTNAME= poi
PORTVERSION= 3.9
CATEGORIES= textproc devel java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/release/src
PKGNAMEPREFIX= apache-
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-20121203
MAINTAINER= ports@FreeBSD.org
COMMENT= Java API To Access Microsoft Format Files
LICENSE= APACHE20
BUILD_DEPENDS= ${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j
USE_JAVA= yes
JAVA_VERSION= 1.6+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DSTAMP= `date +%Y%m%d`
USE_ANT= yes
MAKE_ARGS=
MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES
PORTDOCS= *
ALL_TARGET= jar
JARFILE= ${PORTNAME}-${PORTVERSION}-${DSTAMP}.jar
DESTJARFILE= ${PORTNAME}.jar
JARNAMES= examples excelant scratchpad ooxml ooxml-schemas
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
.for i in ${JARNAMES}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${i}.jar
.endfor
do-install:
${INSTALL_DATA} ${WRKSRC}/build/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
.for i in ${JARNAMES}
${INSTALL_DATA} ${WRKSRC}/build/dist/${PORTNAME}-${i}-${PORTVERSION}-${DSTAMP}.jar ${JAVAJARDIR}/${PORTNAME}-${i}.jar
.endfor
cd ${WRKSRC}/docs/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
# Workaround stage and ANT bug
do-build:
@(cd ${BUILD_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${ANT} ${ALL_TARGET})
.include <bsd.port.mk>
|