summaryrefslogtreecommitdiff
path: root/devel/maven/Makefile
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-08-07 23:46:37 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-08-07 23:46:37 +0000
commit39214bece7b4e44383bcb708bbd939e7503e2a3c (patch)
tree2f8934c91fdaa5ef58ee876a974f18354ac4e939 /devel/maven/Makefile
parent- Fix LyX build with gcc3.4; (diff)
- Update to 1.0 final [1]
- Use MASTER_SITE_APACHE - Use DATADIR - Install files using INSTALL_* [2] PR: ports/68769 Submitted by: Rui Lopes (maintainer) [1] Reviewed by: vs [2] Approved by: maintainer, glewis (mentor)
Diffstat (limited to 'devel/maven/Makefile')
-rw-r--r--devel/maven/Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/devel/maven/Makefile b/devel/maven/Makefile
index 6a1b433d5163..3e67cca3f80a 100644
--- a/devel/maven/Makefile
+++ b/devel/maven/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= maven
-PORTVERSION= 1.0.r2
+PORTVERSION= 1.0
CATEGORIES= devel java
-MASTER_SITES= http://nagoya.apache.org/mirror/%SUBDIR%/binaries/
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-1.0-rc2
+MASTER_SITES= ${MASTER_SITE_APACHE}
+MASTER_SITE_SUBDIR= ${PORTNAME}/binaries
MAINTAINER= rui@ruilopes.com
COMMENT= Java project management and project comprehension tool
@@ -19,24 +18,26 @@ USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.3+
NO_BUILD= YES
-DIR= share/java/maven
-PLIST_SUB= DIR=${DIR}
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
post-configure:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%DIR%%,${DIR},g' pkg-message > ${PKGMESSAGE}
+ @${SED} -e 's,%%DATADIR%%,${DATADIR},g' pkg-message > ${PKGMESSAGE}
+BINFILES= install_repo.sh maven
+DIRECTORIES= lib lib/endorsed plugins
do-install:
- @cd ${WRKSRC} && ${FIND} . \! -name '*.bat' \! -name repository \
- | ${CPIO} -pduv -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${DIR}
- ${CHMOD} -R ${LIBMODE} ${PREFIX}/${DIR}
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/${DIR}/bin
- ${CHMOD} -R ${BINMODE} ${PREFIX}/${DIR}/bin
- ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DIR}/bin/*.conf
- ${CHMOD} ${SHAREMODE} ${PREFIX}/${DIR}/bin/*.conf
- ${FIND} ${PREFIX}/${DIR} -type d | ${XARGS} ${CHMOD} +rx
- ${LN} -fs ${PREFIX}/${DIR}/bin/maven ${PREFIX}/bin
+ ${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)
@@ -45,6 +46,6 @@ post-install:
# This target is only meant to be used by the port maintainer.
x-generate-plist:
- (/usr/ports/Tools/scripts/plist -d -m /etc/mtree/BSD.local.dist ${PREFIX}|sed -E 's,^share/nls/.+$$,,g;s,${DIR},%%DIR%%,g'|tr -s '\n') > temp-pkg-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>