aboutsummaryrefslogtreecommitdiffstats
path: root/java/jakarta-commons-logging/Makefile
blob: 6dd6ea6a0dd61a3222289d8a940eacd8e6ae4f5d (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
# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$

PORTNAME=   commons-logging
PORTVERSION=    1.1.3
CATEGORIES= java devel
MASTER_SITES=   APACHE_COMMONS_BINARIES
PKGNAMEPREFIX=  jakarta-
DISTNAME=   ${PORTNAME}-${PORTVERSION}-bin

MAINTAINER= makc@FreeBSD.org
COMMENT=    Generic logging wrapper library

LICENSE=    APACHE20

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

OPTIONS_DEFINE= DOCS

USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

PORTDOCS=   *
PLIST_FILES=    %%JAVAJARDIR%%/commons-logging.jar

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

.include <bsd.port.mk>