aboutsummaryrefslogtreecommitdiffstats
path: root/java/jakarta-commons-beanutils/Makefile
blob: 6adddf98ae2c8b3476827e22a915a6920cef8dd4 (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
# New ports collection makefile for:    Jakarta Commons Beanutils
# Date created:             November 14, 2002
# Whom:                 Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   commons-beanutils
PORTVERSION=    1.0
CATEGORIES= java
MASTER_SITES=   http://jakarta.apache.org/builds/jakarta-commons/release/${PORTNAME}/v${PORTVERSION}/
PKGNAMEPREFIX=  jakarta-
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= znerd@FreeBSD.org

BUILD_DEPENDS=  ${ANT}:${PORTSDIR}/devel/jakarta-ant \
        ${LOCALBASE}/share/java/classes/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections

USE_JAVA=   1.2+
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/beanutils

PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
ANT?=       ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGET= dist
.else
ANT_TARGET= dist
.endif
JAVASHAREDIR=   ${PREFIX}/share/java
JARDIR=     ${JAVASHAREDIR}/classes
JARFILE=    ${PORTNAME}.jar
DESTJARFILE=    ${PORTNAME}.jar

post-patch:
    @${CP} ${FILESDIR}/LICENSE ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/
do-build:
    @cd ${WRKSRC} && ${ANT} ${ANT_TARGET}

do-install:
    @${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..."
    @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/${DESTJARFILE}
    @${ECHO} " [ DONE ]"

.if !defined(NOPORTDOCS)
    @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
    ${MKDIR} ${DOCSDIR}
    ${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR}
    @${ECHO} " [ DONE ]"
.endif

.include <bsd.port.mk>