aboutsummaryrefslogtreecommitdiff
path: root/textproc/apache-poi/Makefile
blob: af3f7a5516550e1676fd04e0f53e9f6d81ac6e47 (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
PORTNAME=	poi
PORTVERSION=	4.1.2
CATEGORIES=	textproc devel java
MASTER_SITES=	https://archive.apache.org/dist/${PORTNAME}/release/bin/
PKGNAMEPREFIX=	apache-
DISTNAME=	${PORTNAME}-bin-${PORTVERSION}-${RELEASE_DATE}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Java API To Access Microsoft Format Files
WWW=		https://poi.apache.org/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cpe
CPE_VENDOR=	apache

USE_JAVA=	yes
NO_BUILD=	yes
NO_ARCH=	yes
RELEASE_DATE=	20200217
JARNAMES=	examples excelant scratchpad ooxml ooxml-schemas
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}.jar
PORTDOCS=	*

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

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.for i in ${JARNAMES}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${i}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${i}.jar
.endfor

do-install-DOCS-on:
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>