aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mime4j/Makefile
blob: 212d540a4a4da28ae2bfe3d3005884267a912fd2 (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
# Ports collection makefile for:    mime4j
# Date created:         3 Sep 2008
# Whom:             Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mime4j
PORTVERSION=    0.6
CATEGORIES= mail java
MASTER_SITES=   ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= james/${PORTNAME}
DISTNAME=   apache-${PORTNAME}-${PORTVERSION}-bin

MAINTAINER= ale@FreeBSD.org
COMMENT=    A Java parser for e-mail message streams

RUN_DEPENDS=    ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging

USE_JAVA=   yes
JAVA_VERSION=   1.5+
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}

PLIST_FILES=    %%JAVAJARDIR%%/apache-${PORTNAME}.jar

PORTDOCS=   *

do-install:
    @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/apache-${PORTNAME}.jar..."
    @${INSTALL_DATA} ${WRKSRC}/apache-${PORTNAME}-${PORTVERSION}.jar \
        ${JAVAJARDIR}/apache-${PORTNAME}.jar
    @${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} -n ">> Installing documentation..."
    @${MKDIR} ${DOCSDIR}/api
    @cd ${WRKSRC}/javadocs && ${FIND} * \
      | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/api > /dev/null 2>&1
    @${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES.txt ${DOCSDIR}
    @${ECHO_MSG} " [DONE]"
.endif

.include <bsd.port.mk>