blob: 9cb8389b3d6f5d5d0d29f63546e4118b455e1788 (
plain)
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
|
# $NetBSD: Makefile,v 1.19 2022/12/08 12:28:41 schmonz Exp $
DISTNAME= apache-maven-3.8.6
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_APACHE:=maven/maven-3/${PKGVERSION_NOREV}/binaries/}
DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX}
MAINTAINER= yyamano@NetBSD.org
HOMEPAGE= https://maven.apache.org/
COMMENT= Apache Project's software project management and comprehension tool
LICENSE= apache-2.0
USE_JAVA= run
USE_JAVA2= 7
USE_TOOLS+= pax
NO_BUILD= yes
SUBST_CLASSES+= maven
SUBST_FILES.maven= bin/m2.conf bin/mvn
SUBST_STAGE.maven= pre-configure
SUBST_VARS.maven= PKG_JAVA_HOME PKG_SYSCONFDIR PREFIX
INSTALLATION_DIRS= bin etc/maven lib/java/maven lib/java/maven/boot \
share/doc/java/maven share/examples/maven \
share/examples/maven/logging
PKG_SYSCONFSUBDIR= maven
MAKE_DIRS+= ${PKG_SYSCONFDIR}/logging
CONF_FILES= share/examples/maven/m2.conf \
${PKG_SYSCONFDIR}/m2.conf
CONF_FILES+= share/examples/maven/settings.xml \
${PKG_SYSCONFDIR}/settings.xml
CONF_FILES+= share/examples/maven/logging/simplelogger.properties \
${PKG_SYSCONFDIR}/logging/simplelogger.properties
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${DESTDIR}${PREFIX}/share/examples/maven
${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${DESTDIR}${PREFIX}/share/examples/maven
${INSTALL_DATA} ${WRKSRC}/conf/logging/simplelogger.properties ${DESTDIR}${PREFIX}/share/examples/maven/logging
${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
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DESTDIR}${PREFIX}/share/doc/java/maven
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/java/maven
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|