From nobody Wed Sep 06 15:41:47 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rgmnm23shz4sNbG; Wed, 6 Sep 2023 15:41:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rgmnm1GRDz4cgr; Wed, 6 Sep 2023 15:41:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694014908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YkG70wxARnoUbeOvOC8jD1z7dFa6rRxXIVRZEzhkVl4=; b=qaNEMioCUI8P5aMB4RMo3PcwiOeG7G2F4YkQ7ZaGg7Vd0v2AXcI30Y2jlYpb4bFFnFzp1C SM5Sz5IIqVWMXXjuf+Yq+IzX8ynwKPMW38MWznERe7yCuPquUgXmCy3XWwXMbuXwC+DbtX gEPgfIzQjLKzRhmP6/oJ5o+3JBnUrxAR6GK8T4j9HO4WK+3IEd544pIihPSfAHmhbd8pof tUZ9TLSKkKNLmMOTIVPpiggyxLZD+Ch6LQ+FXfEFwsDZaR7g0hvfdliljV2Ru4bF4e0H8c QNxWpdOr6rZmFNWPm9QEOJLP7lsaLaZVKiGXr7OsOacUJwI7atzMhUbsqRm+dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694014908; a=rsa-sha256; cv=none; b=TemdYNzoODO3eo7CGdSiwXkFFlVNogd+gdh36RN4jqGPd80R2S2eeC8JHUtK+3izobUg5F kg6p4hJWq3ffB//ZycM6lR1mVGoUvO/TPUvSBS5ycqjfuCUP55+rz9hzVSK3XPNN6l4Kta bfD64lr8qZjTB3RobH02eckru2GdyEWrISfnZa9CuueUyhI3hGJ1CW9NdjeKJwLTsj6MDn 8S2qEGyrsQwkY8XrwRcRZdm2rds5rJV2G5taukvQp25xLYDTtixgvLHzx66n1bj7xbloG5 sX4TNpwZjF4cuIUt12XpV+wXP1RzSwsGWRLkEnQmjRe3DJuYdZjMKCi7K53P3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694014908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YkG70wxARnoUbeOvOC8jD1z7dFa6rRxXIVRZEzhkVl4=; b=wNR8WkG99Yqq+fiWTySKOphkAjxRlXAyPiUIVXx8OneMUsiGIfMmhUGu7AeKfWtd33eFBo 9dVpwwNWyqNpv07uCv60E/2J/pU3wzorM4XWGM6xBgOEZsz8QeXftPYnbPsC7iQq+0R+iE MkvyPHh85O5LrfcgMbCVVnhc1et4L1H2I/8+RPfHE5n7hHiH0gxLpwqLWurB96xzRSpThP pSL9KLzrwwXJ1tDpjKGOrk/Fao+7f91TAKBCYwPy40H4PKhWrebIM28FPGD0qH9TfzQf47 U+UcqqRQXbp8XoNGJd7F+ScnbRKN4xHuogG4gqn6lTnaLNe1EvY41nnzsf0mtw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rgmnm0Lh1z7BS; Wed, 6 Sep 2023 15:41:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 386Fflqf097849; Wed, 6 Sep 2023 15:41:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 386FflcU097846; Wed, 6 Sep 2023 15:41:47 GMT (envelope-from git) Date: Wed, 6 Sep 2023 15:41:47 GMT Message-Id: <202309061541.386FflcU097846@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Koichiro Iwao Subject: git: a70b25ff2f54 - main - devel/maven39: new port: version 3.9 of devel/maven List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: meta X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a70b25ff2f5451019085b6cd68f7aa2c05749d52 Auto-Submitted: auto-generated The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=a70b25ff2f5451019085b6cd68f7aa2c05749d52 commit a70b25ff2f5451019085b6cd68f7aa2c05749d52 Author: Michael Zhilin AuthorDate: 2023-08-01 10:05:35 +0000 Commit: Koichiro Iwao CommitDate: 2023-09-06 15:41:16 +0000 devel/maven39: new port: version 3.9 of devel/maven java/eclipse requires Maven 3.9+ and actual version of devel/maven is 3.8. This patch adds devel/maven39 to manage this requirement. Changelog: https://maven.apache.org/docs/3.9.4/release-notes.html Co-authored-by: Michael Osipov PR: 272863 --- devel/Makefile | 1 + devel/maven39/Makefile | 57 +++++++++++++++++++++++++++++++++ devel/maven39/distinfo | 3 ++ devel/maven39/pkg-descr | 3 ++ devel/maven39/pkg-plist | 85 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 149 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 35e9db4fc350..ff70b93e60bb 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1573,6 +1573,7 @@ SUBDIR += mate-common SUBDIR += maven SUBDIR += maven-wrapper + SUBDIR += maven39 SUBDIR += maven363 SUBDIR += mcpp SUBDIR += mdb diff --git a/devel/maven39/Makefile b/devel/maven39/Makefile new file mode 100644 index 000000000000..1d2f4f7d718e --- /dev/null +++ b/devel/maven39/Makefile @@ -0,0 +1,57 @@ +PORTNAME= maven +DISTVERSION= 3.9.4 +CATEGORIES= devel java +MASTER_SITES= APACHE/maven/maven-3/${DISTVERSION}/binaries +PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} +DISTNAME= apache-${PORTNAME}-${DISTVERSION}-bin + +MAINTAINER= michaelo@apache.org +COMMENT= Java project management tool +WWW= https://maven.apache.org/ + +LICENSE= APACHE20 + +RUN_DEPENDS= mvn:devel/maven-wrapper + +USES= cpe +CPE_VENDOR= apache +CPE_PRODUCT= maven +USE_JAVA= yes + +DATADIR= ${JAVASHAREDIR}/${INSTANCE_ID} +NO_ARCH= yes +NO_BUILD= yes +WRKSRC= ${WRKDIR}/${DISTNAME:S/-bin//} +PLIST_SUB= PORTVERSION=${PORTVERSION} \ + INSTANCE_ID=${INSTANCE_ID} \ + INSTANCES_DIR=${INSTANCES_DIR} +INSTANCE_ID= ${DISTNAME:S/-bin//:R} +INSTANCES_DIR= ${LOCALBASE}/etc/maven-wrapper/instances.d + +post-extract: + ${RM} -r ${WRKSRC}/lib/jansi-native ${WRKSRC}/bin/*.cmd + ${ECHO_CMD} "${DATADIR}" > ${WRKDIR}/${INSTANCE_ID} + +post-patch: + @${REINPLACE_CMD} \ + -e '37,40d;55,73d;76,77d' \ + -e 's|/usr/local|${LOCALBASE}|g' \ + -E -e 's|^MAVEN_HOME=.+$$|MAVEN_HOME="${DATADIR}"|g' ${WRKSRC}/bin/mvn + @${FIND} ${WRKSRC} -name '*.bak' -delete -o -name '*.orig' -delete + +do-install: + @cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} \ + ${STAGEDIR}${DATADIR}/{} \; + cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" \ + -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \; + @cd ${STAGEDIR}${DATADIR} && ${FIND} conf -type f -exec ${CP} \ + '{}' '{}'.sample \; + ${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/m2.conf.sample + ${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${STAGEDIR}${DATADIR}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/mvnDebug ${STAGEDIR}${DATADIR}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/mvnyjp ${STAGEDIR}${DATADIR}/bin + @${MKDIR} ${STAGEDIR}${INSTANCES_DIR} + ${INSTALL_DATA} ${WRKDIR}/${INSTANCE_ID} \ + ${STAGEDIR}${INSTANCES_DIR} + +.include diff --git a/devel/maven39/distinfo b/devel/maven39/distinfo new file mode 100644 index 000000000000..addba1ae8821 --- /dev/null +++ b/devel/maven39/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693510926 +SHA256 (apache-maven-3.9.4-bin.tar.gz) = ff66b70c830a38d331d44f6c25a37b582471def9a161c93902bac7bea3098319 +SIZE (apache-maven-3.9.4-bin.tar.gz) = 9336368 diff --git a/devel/maven39/pkg-descr b/devel/maven39/pkg-descr new file mode 100644 index 000000000000..996ec6af025f --- /dev/null +++ b/devel/maven39/pkg-descr @@ -0,0 +1,3 @@ +Apache Maven is a software project management and comprehension tool. Based on +the concept of a project object model (POM), Maven can manage a project's +build, reporting and documentation from a central piece of information. diff --git a/devel/maven39/pkg-plist b/devel/maven39/pkg-plist new file mode 100644 index 000000000000..7e5337ef1229 --- /dev/null +++ b/devel/maven39/pkg-plist @@ -0,0 +1,85 @@ +%%INSTANCES_DIR%%/%%INSTANCE_ID%% +%%DATADIR%%/LICENSE +%%DATADIR%%/NOTICE +%%DATADIR%%/README.txt +@sample %%DATADIR%%/bin/m2.conf.sample +%%DATADIR%%/bin/mvn +%%DATADIR%%/bin/mvnDebug +%%DATADIR%%/bin/mvnyjp +%%DATADIR%%/boot/plexus-classworlds-2.7.0.jar +%%DATADIR%%/boot/plexus-classworlds.license +@sample %%DATADIR%%/conf/logging/simplelogger.properties.sample +@sample %%DATADIR%%/conf/settings.xml.sample +@sample %%DATADIR%%/conf/toolchains.xml.sample +%%DATADIR%%/lib/aopalliance-1.0.jar +%%DATADIR%%/lib/aopalliance.license +%%DATADIR%%/lib/commons-cli-1.5.0.jar +%%DATADIR%%/lib/commons-cli.license +%%DATADIR%%/lib/commons-codec-1.11.jar +%%DATADIR%%/lib/commons-codec.license +%%DATADIR%%/lib/commons-lang3-3.12.0.jar +%%DATADIR%%/lib/commons-lang3.license +%%DATADIR%%/lib/failureaccess-1.0.1.jar +%%DATADIR%%/lib/failureaccess.license +%%DATADIR%%/lib/guava-32.0.1-jre.jar +%%DATADIR%%/lib/guava.license +%%DATADIR%%/lib/guice-5.1.0.jar +%%DATADIR%%/lib/guice.license +%%DATADIR%%/lib/httpclient-4.5.14.jar +%%DATADIR%%/lib/httpclient.license +%%DATADIR%%/lib/httpcore-4.4.16.jar +%%DATADIR%%/lib/httpcore.license +%%DATADIR%%/lib/jansi-2.4.0.jar +%%DATADIR%%/lib/jansi.license +%%DATADIR%%/lib/javax.annotation-api-1.3.2.jar +%%DATADIR%%/lib/javax.annotation-api.license +%%DATADIR%%/lib/javax.inject-1.jar +%%DATADIR%%/lib/javax.inject.license +%%DATADIR%%/lib/jcl-over-slf4j-1.7.36.jar +%%DATADIR%%/lib/jcl-over-slf4j.license +%%DATADIR%%/lib/maven-artifact-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-builder-support-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-compat-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-core-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-embedder-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-model-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-model-builder-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-plugin-api-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-repository-metadata-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-resolver-api-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-connector-basic-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-impl-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-named-locks-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-provider-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-resolver-spi-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-transport-file-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-transport-http-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-transport-wagon-1.9.14.jar +%%DATADIR%%/lib/maven-resolver-util-1.9.14.jar +%%DATADIR%%/lib/maven-settings-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-settings-builder-%%PORTVERSION%%.jar +%%DATADIR%%/lib/maven-shared-utils-3.3.4.jar +%%DATADIR%%/lib/maven-slf4j-provider-%%PORTVERSION%%.jar +%%DATADIR%%/lib/org.eclipse.sisu.inject-0.3.5.jar +%%DATADIR%%/lib/org.eclipse.sisu.inject.license +%%DATADIR%%/lib/org.eclipse.sisu.plexus-0.3.5.jar +%%DATADIR%%/lib/org.eclipse.sisu.plexus.license +%%DATADIR%%/lib/plexus-cipher-2.0.jar +%%DATADIR%%/lib/plexus-cipher.license +%%DATADIR%%/lib/plexus-component-annotations-2.1.0.jar +%%DATADIR%%/lib/plexus-component-annotations.license +%%DATADIR%%/lib/plexus-interpolation-1.26.jar +%%DATADIR%%/lib/plexus-interpolation.license +%%DATADIR%%/lib/plexus-sec-dispatcher-2.0.jar +%%DATADIR%%/lib/plexus-sec-dispatcher.license +%%DATADIR%%/lib/plexus-utils-3.5.1.jar +%%DATADIR%%/lib/plexus-utils.license +%%DATADIR%%/lib/slf4j-api-1.7.36.jar +%%DATADIR%%/lib/slf4j-api.license +%%DATADIR%%/lib/wagon-file-3.5.3.jar +%%DATADIR%%/lib/wagon-http-3.5.3.jar +%%DATADIR%%/lib/wagon-http-shared-3.5.3.jar +%%DATADIR%%/lib/wagon-provider-api-3.5.3.jar +%%DATADIR%%/lib/ext/README.txt +%%DATADIR%%/lib/ext/hazelcast/README.txt +%%DATADIR%%/lib/ext/redisson/README.txt