forked from ports/contrib
maven: initial commit, version 3.6.3
This commit is contained in:
parent
f4aa867e93
commit
449ecf8621
74
maven/.footprint
Normal file
74
maven/.footprint
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/bin/
|
||||||
|
-rw-r--r-- root/root usr/bin/m2.conf
|
||||||
|
-rwxr-xr-x root/root usr/bin/mvn
|
||||||
|
-rw-r--r-- root/root usr/bin/mvn.cmd
|
||||||
|
-rwxr-xr-x root/root usr/bin/mvnDebug
|
||||||
|
-rw-r--r-- root/root usr/bin/mvnDebug.cmd
|
||||||
|
-rwxr-xr-x root/root usr/bin/mvnyjp
|
||||||
|
drwxr-xr-x root/root usr/boot/
|
||||||
|
-rw-r--r-- root/root usr/boot/plexus-classworlds-2.6.0.jar
|
||||||
|
drwxr-xr-x root/root usr/conf/
|
||||||
|
drwxr-xr-x root/root usr/conf/logging/
|
||||||
|
-rw-r--r-- root/root usr/conf/logging/simplelogger.properties
|
||||||
|
-rw-r--r-- root/root usr/conf/settings.xml
|
||||||
|
-rw-r--r-- root/root usr/conf/toolchains.xml
|
||||||
|
drwxr-xr-x root/root usr/lib/
|
||||||
|
-rw-r--r-- root/root usr/lib/cdi-api-1.0.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/commons-cli-1.4.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/commons-io-2.5.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/commons-lang3-3.8.1.jar
|
||||||
|
drwxr-xr-x root/root usr/lib/ext/
|
||||||
|
-rw-r--r-- root/root usr/lib/guava-25.1-android.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/guice-4.2.1-no_aop.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/jansi-1.17.1.jar
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/freebsd32/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/freebsd32/libjansi.so
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/freebsd64/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/freebsd64/libjansi.so
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/linux32/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/linux32/libjansi.so
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/linux64/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/linux64/libjansi.so
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/osx/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/osx/libjansi.jnilib
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/windows32/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/windows32/jansi.dll
|
||||||
|
drwxr-xr-x root/root usr/lib/jansi-native/windows64/
|
||||||
|
-rwxr-xr-x root/root usr/lib/jansi-native/windows64/jansi.dll
|
||||||
|
-rw-r--r-- root/root usr/lib/javax.inject-1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/jcl-over-slf4j-1.7.29.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/jsoup-1.12.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/jsr250-api-1.0.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-artifact-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-builder-support-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-compat-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-core-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-embedder-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-model-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-model-builder-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-plugin-api-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-repository-metadata-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-api-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-connector-basic-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-impl-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-provider-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-spi-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-transport-wagon-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-resolver-util-1.4.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-settings-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-settings-builder-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-shared-utils-3.2.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/maven-slf4j-provider-3.6.3.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/org.eclipse.sisu.inject-0.3.4.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/org.eclipse.sisu.plexus-0.3.4.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/plexus-cipher-1.7.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/plexus-component-annotations-2.1.0.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/plexus-interpolation-1.25.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/plexus-sec-dispatcher-1.4.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/plexus-utils-3.2.1.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/slf4j-api-1.7.29.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/wagon-file-3.3.4.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/wagon-http-3.3.4-shaded.jar
|
||||||
|
-rw-r--r-- root/root usr/lib/wagon-provider-api-3.3.4.jar
|
5
maven/.signature
Normal file
5
maven/.signature
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
|
RWSagIOpLGJF32TQDfEflVfuocx7ii7+dXMYiqyLtKdoOEiiFjtrok5T5fr2etsephN+Ym5DqZxHuBIvYvcON7PW9Z3SdUz4PAw=
|
||||||
|
SHA256 (Pkgfile) = 547fb83312c32e11a7928e43e9357986fbd602932850b0b1381a98306dc7aac1
|
||||||
|
SHA256 (.footprint) = 76493f4ca4f889f245ed1bd556d39bf5f92759de06bdf4d75cbe0694fe0240b7
|
||||||
|
SHA256 (apache-maven-3.6.3-src.tar.gz) = 7c1c990ba64dd4f88688120cc2ec93bf33dd500d2a62ae5cd57bd4b7f6335c07
|
57
maven/Pkgfile
Normal file
57
maven/Pkgfile
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Description: Java project management and project comprehension tool
|
||||||
|
# URL: https://maven.apache.org/
|
||||||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
|
# Depends on: openjdk8
|
||||||
|
|
||||||
|
name=maven
|
||||||
|
version=3.6.3
|
||||||
|
release=1
|
||||||
|
source=(https://www-eu.apache.org/dist/maven/maven-3/$version/source/apache-$name-$version-src.tar.gz)
|
||||||
|
bin_source=(https://archive.apache.org/dist/maven/maven-3/$version/binaries/apache-$name-$version-bin.tar.gz)
|
||||||
|
_bootstrapsum=26ad91d751b3a9a53087aefa743f4e16a17741d3915b219cf74112bf87a438c5
|
||||||
|
|
||||||
|
bootstrap_mvn() {
|
||||||
|
# check if the binary is already available
|
||||||
|
if [ ! -f "$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" ];
|
||||||
|
then
|
||||||
|
wget $bin_source \
|
||||||
|
--output-document="$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check checksum of the binary package
|
||||||
|
if [ $_bootstrapsum != $(sha256sum \
|
||||||
|
"$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" | cut -d' ' \
|
||||||
|
-f1) ];
|
||||||
|
then
|
||||||
|
echo "Error Bootstrap file $PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz failed sha256sum"
|
||||||
|
exit $E_GENERAL
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir binary
|
||||||
|
cd binary
|
||||||
|
bsdtar -xf "$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz"
|
||||||
|
|
||||||
|
# append binary to our PATH
|
||||||
|
export PATH="$SRC/binary/apache-$name-$version/bin:${PATH}"
|
||||||
|
cd $SRC
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
# if we don't have maven on our system already, bootstrap it
|
||||||
|
if [ ! -e "/usr/bin/mvn" ]; then
|
||||||
|
bootstrap_mvn
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd apache-$name-$version
|
||||||
|
export PATH="/usr/lib/java/openjdk8/bin:${PATH}"
|
||||||
|
mvn -DdistributionTargetDir=$PKG/usr \
|
||||||
|
-Dproject.build.sourceEncoding=UTF-8 -e \
|
||||||
|
-Dmaven.repo.local=$PKGMK_SOURCE_DIR/maven-repo \
|
||||||
|
-DskipTests -Dmaven.test.skip=true \
|
||||||
|
install
|
||||||
|
find $PKG \( \
|
||||||
|
-iname "*readme*" -o \
|
||||||
|
-iname "*notice*" -o \
|
||||||
|
-iname "*license*" -o \
|
||||||
|
-iname "*licence*" \) -exec rm -fr '{}' \+
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user