2014-05-15 13:17:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2014/05/15 11:17:29 fhajny Exp $
|
2008-12-16 08:39:41 +01:00
|
|
|
#
|
|
|
|
|
2014-05-15 13:17:29 +02:00
|
|
|
DISTNAME= apache-maven-3.2.1
|
2008-12-16 08:39:41 +01:00
|
|
|
CATEGORIES= devel java
|
2013-02-17 18:37:41 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=maven/maven-3/${PKGVERSION_NOREV}/binaries/}
|
2008-12-16 08:39:41 +01:00
|
|
|
DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= yyamano@NetBSD.org
|
|
|
|
HOMEPAGE= http://maven.apache.org/
|
|
|
|
COMMENT= Apache Project's software project management and comprehension tool
|
2013-02-17 18:37:41 +01:00
|
|
|
LICENSE= apache-2.0
|
2008-12-16 08:39:41 +01:00
|
|
|
|
|
|
|
USE_JAVA= run
|
2009-07-29 19:45:59 +02:00
|
|
|
USE_JAVA2= 1.5
|
2008-12-16 08:39:41 +01:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
SUBST_CLASSES+= maven
|
|
|
|
SUBST_FILES.maven= bin/mvn
|
|
|
|
SUBST_STAGE.maven= pre-configure
|
|
|
|
SUBST_SED.maven= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
|
|
|
|
SUBST_SED.maven+= -e 's,@PREFIX@,${PREFIX},g'
|
2013-05-18 07:37:03 +02:00
|
|
|
SUBST_SED.maven+= -e 's,@SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
2008-12-16 08:39:41 +01:00
|
|
|
|
2013-02-17 18:37:41 +01:00
|
|
|
INSTALLATION_DIRS= bin etc/maven lib/java/maven lib/java/maven/boot
|
|
|
|
INSTALLATION_DIRS+= share/doc/java/maven share/examples/maven
|
|
|
|
|
2013-03-03 17:53:42 +01:00
|
|
|
PKG_SYSCONFSUBDIR= maven
|
2013-02-17 18:37:41 +01:00
|
|
|
CONF_FILES+= share/examples/maven/m2.conf ${PKG_SYSCONFDIR}/m2.conf
|
|
|
|
CONF_FILES+= share/examples/maven/settings.xml ${PKG_SYSCONFDIR}/settings.xml
|
2008-12-16 08:39:41 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${DESTDIR}${PREFIX}/bin
|
2013-02-17 18:37:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${DESTDIR}${PREFIX}/share/examples/maven
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${DESTDIR}${PREFIX}/share/examples/maven
|
2008-12-16 08:39:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/boot/*.jar ${DESTDIR}${PREFIX}/lib/java/maven/boot
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DESTDIR}${PREFIX}/lib/java/maven
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/java/maven
|
2014-05-15 13:17:29 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DESTDIR}${PREFIX}/share/doc/java/maven
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/java/maven
|
2008-12-16 08:39:41 +01:00
|
|
|
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|