aboutsummaryrefslogtreecommitdiffstats
path: root/devel/jakarta-commons-io/Makefile
blob: 8c0ac6758e59a8c4ec794d715f43faa5c36e99c7 (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
# Created by: Michael Winking <mwfp@foldl.net>
# $FreeBSD$

PORTNAME=   commons-io
PORTVERSION=    2.4
CATEGORIES= devel java
MASTER_SITES=   APACHE_COMMONS_SOURCE
PKGNAMEPREFIX=  jakarta-
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= makc@FreeBSD.org
COMMENT=    Collection of I/O utilities for Java

LICENSE=    APACHE20

BUILD_DEPENDS=  ${JAVALIBDIR}/junit.jar:java/junit

ALL_TARGET= dist
JAVA_VERSION=   1.6+
MAKE_ARGS=  -cp ${JAVALIBDIR}/junit.jar
USE_ANT=    yes
USE_JAVA=   yes

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS=   LICENSE.txt NOTICE.txt RELEASE-NOTES.txt apidocs

JAR_VERSION=    ${PORTNAME}-2.2-SNAPSHOT

OPTIONS_DEFINE= DOCS
DOCS_ALL_TARGET=    javadoc

do-install:
    ${INSTALL_DATA} ${WRKSRC}/target/${JAR_VERSION}.jar \
        ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar

do-install-DOCS-on:
    (cd ${WRKSRC}/target && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
    (cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
        RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>