summaryrefslogtreecommitdiff
path: root/devel/maven/Makefile
blob: 3e67cca3f80a4b1e28b0ddf166e8701c894023ab (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
# New ports collection makefile for:	maven
# Date created:				17 October 2003
# Whom:					Rui Lopes <rui@ruilopes.com>
#
# $FreeBSD$
#

PORTNAME=	maven
PORTVERSION=	1.0
CATEGORIES=	devel java
MASTER_SITES=	${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR=	${PORTNAME}/binaries

MAINTAINER=	rui@ruilopes.com
COMMENT=	Java project management and project comprehension tool

USE_BZIP2=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.3+
NO_BUILD=	YES
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
PKGMESSAGE=	${WRKDIR}/pkg-message

post-configure:
	@${SED} -e 's,%%DATADIR%%,${DATADIR},g' pkg-message > ${PKGMESSAGE}

BINFILES=	install_repo.sh maven
DIRECTORIES=	lib lib/endorsed plugins
do-install:
	${MKDIR} ${DATADIR}/bin
.for file in ${BINFILES}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${DATADIR}/bin
.endfor
	${LN} -fs ${DATADIR}/bin/maven ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/bin/forehead.conf ${DATADIR}/bin
	${INSTALL_DATA} ${WRKSRC}/*.xsd ${DATADIR}
.for dir in ${DIRECTORIES}
	${MKDIR} ${DATADIR}/${dir}
	${INSTALL_DATA} ${WRKSRC}/${dir}/*.jar ${DATADIR}/${dir}
.endfor

post-install:
.if !defined(BATCH)
	@${CAT} ${PKGMESSAGE}
.endif

# This target is only meant to be used by the port maintainer.
x-generate-plist:
	(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX}|${SED} -E 's,.*share/nls/.+$$,,g;s,${DATADIR:S,^${PREFIX}/,,},%%DATADIR%%,g'|${TR} -s '\n') > temp-pkg-plist

.include <bsd.port.mk>