2008-03-26 09:07:04 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2008/03/26 13:07:04 sturm Exp $
|
2005-12-08 04:48:02 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= software project management and comprehension tool
|
2005-12-08 04:48:02 -05:00
|
|
|
|
|
|
|
DISTNAME= maven-2.0
|
2008-03-26 09:07:04 -04:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
2005-12-08 04:48:02 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://maven.apache.org/
|
|
|
|
|
|
|
|
# Apache Software License 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=maven/binaries/} \
|
|
|
|
http://archive.apache.org/dist/maven/binaries/
|
|
|
|
|
|
|
|
|
|
|
|
EXTRACT_SUFX= -bin.tar.gz
|
|
|
|
|
|
|
|
MODULES= java
|
|
|
|
MODJAVA_VER= 1.4+
|
|
|
|
BUILD_DEPENDS= ::archivers/gtar
|
2006-08-07 15:30:52 -04:00
|
|
|
RUN_DEPENDS= ::java/javaPathHelper
|
2005-12-08 04:48:02 -05:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
MAVEN_HOME= ${LOCALBASE}/${DISTNAME}
|
|
|
|
SAMPLEDIR= ${PREFIX}/share/examples/maven
|
|
|
|
TAR= ${LOCALBASE}/bin/gtar
|
|
|
|
SUBST_VARS+= DISTNAME
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DISTNAME}
|
|
|
|
${INSTALL_DATA_DIR} ${SAMPLEDIR}
|
|
|
|
cd ${WRKDIST} && \
|
|
|
|
tar -cf - bin core lib `find * -prune -type f` | \
|
|
|
|
tar -C ${PREFIX}/${DISTNAME} -xf -
|
|
|
|
find ${WRKINST} -name \*.orig -or -name \*.bat -or -name \*.exe | \
|
|
|
|
xargs rm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${SAMPLEDIR}/
|
|
|
|
ln -s ${SYSCONFDIR}/maven ${PREFIX}/${DISTNAME}/conf
|
|
|
|
@perl -pi -e 's,%%SYSCONFDIR%%,${SYSCONFDIR},' \
|
|
|
|
${PREFIX}/${DISTNAME}/bin/mvn
|
2006-08-07 15:30:52 -04:00
|
|
|
@sed -e 's,%%MAVEN_HOME%%,${MAVEN_HOME},' \
|
2005-12-08 04:48:02 -05:00
|
|
|
< ${FILESDIR}/maven.rc \
|
|
|
|
> ${SAMPLEDIR}/maven.rc
|
|
|
|
@sed -e 's,%%DISTNAME%%,${DISTNAME},' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
< ${FILESDIR}/mvn \
|
|
|
|
> ${WRKSRC}/bin/mvn
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${PREFIX}/bin/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|