aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/apache-poi/Makefile
blob: d4724124eb20f17a7754757d16f2007655d9d17d (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
# Created by: Anton Yudin <toha@toha.org.ua>
# $FreeBSD$

PORTNAME=   poi
PORTVERSION=    3.10.1
CATEGORIES= textproc devel java
MASTER_SITES=   APACHE/${PORTNAME}/release/bin
PKGNAMEPREFIX=  apache-
DISTNAME=   ${PORTNAME}-bin-${PORTVERSION}-${RELEASE_DATE}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Java API To Access Microsoft Format Files

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

PORTDOCS=   *
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes
RELEASE_DATE=   20140818
JARNAMES=   examples excelant scratchpad ooxml ooxml-schemas
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar
OPTIONS_DEFINE= DOCS

USES=       cpe
CPE_VENDOR= apache

.for i in ${JARNAMES}
PLIST_FILES+=   %%JAVAJARDIR%%/${PORTNAME}-${i}.jar
.endfor

do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${RELEASE_DATE}.jar..."
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.for i in ${JARNAMES}
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${i}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${i}.jar
.endfor
    @${ECHO_MSG} " [ DONE ]"
    @${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}/..."
    @cd ${WRKSRC}/docs \
      && ${FIND} . -type d -not -empty -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
      && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
    @${ECHO_MSG} " [ DONE ]"

.include <bsd.port.mk>