summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2017-04-09 18:22:03 +0200
committerAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2017-04-09 18:23:08 +0200
commitfeb123126157a04f70bf359e29a51f2354b5fa20 (patch)
tree30c92bfbf49b1bf6caa6b55cd4803bf1822b3a77
parentc2fec31661cc4ef0f2c19482f6811d9ac7faaad8 (diff)
downloadjava-feb123126157a04f70bf359e29a51f2354b5fa20.tar.gz
java-feb123126157a04f70bf359e29a51f2354b5fa20.tar.xz
mave: bump to 3.5.0
Signed-off-by: Marc-Antoine Perennou <keruspe@exherbo.org>
-rw-r--r--packages/dev-java/maven/maven-3.5.0.exheres-0139
1 files changed, 2 insertions, 137 deletions
diff --git a/packages/dev-java/maven/maven-3.5.0.exheres-0 b/packages/dev-java/maven/maven-3.5.0.exheres-0
index 4652ed1..9930cee 100644
--- a/packages/dev-java/maven/maven-3.5.0.exheres-0
+++ b/packages/dev-java/maven/maven-3.5.0.exheres-0
@@ -6,50 +6,6 @@ require java
MY_PN="apache-${PN}"
MY_PNV="${MY_PN}-${PV}"
-# These artifacts are for building maven (mostly) from source. Lots are missing
-# here for now.
-ARTIFACTS=(
- 'aopalliance:aopalliance:1.0:jar pom'
- 'com/google/guava:guava:14.0.1:jar pom'
- 'javax/annotation/jsr250-api:1.0:jar pom'
- 'javax/inject/javax.inject:1:jar pom'
- 'org/sonatype/plexus:plexus-cipher:1.7:jar pom'
- 'org/sonatype/plexus:plexus-sec-dispatcher:1.3:jar pom'
- 'org/codehaus/plexus:plexus-classworlds:2.5.1:jar pom'
- 'org/codehaus/plexus:plexus-component-annotations:1.5.5:jar pom'
- 'org/codehaus/plexus:plexus-interpolation:1.19:jar pom'
- 'org/codehaus/plexus:plexus-utils:3.0.17:jar pom'
- 'org/sonatype/sisu:sisu-guice:3.1.3:jar pom'
- 'org/jsoup:jsoup:1.7.2:jar pom'
- 'org/slf4j:slf4j-api:1.7.5:jar pom'
- 'org/slf4j:slf4j-simple:1.7.5:jar pom'
- 'javax/enterprise:cdi-api:1.0:jar pom'
- 'commons-cli:commons-cli:1.2:jar pom'
- 'commons-io:commons-io:2.2:jar pom'
- 'commons-lang:commons-lang:2.6:jar pom'
- 'org/apache/maven:maven-aether-provider:3.2.1:jar pom'
- 'org/apache/maven:maven-artifact:3.2.1:jar pom'
- 'org/apache/maven:maven-compat:3.2.1:jar pom'
- 'org/apache/maven:maven-core:3.2.1:jar pom'
- 'org/apache/maven:maven-embedder:3.2.1:jar pom'
- 'org/apache/maven:maven-model:3.2.1:jar pom'
- 'org/apache/maven:maven-model-builder:3.2.1:jar pom'
- 'org/apache/maven:maven-parent:23:pom'
- 'org/apache/maven:maven-plugin-api:3.2.1:jar pom'
- 'org/apache/maven:maven-repository-metadata:3.2.1:jar pom'
- 'org/apache/maven:maven-settings:3.2.1:jar pom'
- 'org/apache/maven:maven-settings-builder:3.2.1:jar pom'
- 'org/apache/maven/wagon/wagon-file/2.6:2.6:jar pom'
- 'org/apache.maven/wagon/wagon-http/2.6:2.6:jar pom'
- 'org/apache.maven/wagon/wagon-http-shared/2.6:2.6:jar pom'
- 'org/apache.maven/wagon/wagon-provider-api/2.6:2.6:jar pom'
- 'org/eclipse/aether:aether-api:0.9.0.M2:jar pom'
- 'org/eclipse/aether:aether-connector-wagon:0.9.0.M2:jar pom'
- 'org/eclipse/aether:aether-impl:0.9.0.M2:jar pom'
- 'org/eclipse/aether:aether-spi:0.9.0.M2:jar pom'
- 'org/eclipse/aether:aether-util:0.9.0.M2:jar pom'
-)
-
SUMMARY="Apache Maven - Project Management and Comprehension Tool"
DESCRIPTION="
Apache Maven is a software project management and comprehension tool. Based on the concept of a
@@ -57,39 +13,11 @@ project object model (POM), Maven can manage a project's build, reporting and do
central piece of information.
"
HOMEPAGE="http://${PN}.apache.org"
-
-set_downloads() {
- DOWNLOADS="
- bootstrap? ( mirror://apache/${PN}/${PN}-$(ever major)/${PV}/binaries/${MY_PNV}-bin.tar.gz )
- !bootstrap? ( mirror://apache/${PN}/${PN}-$(ever major)/${PV}/source/${MY_PNV}-src.tar.gz
- "
- local groupId= artifactId= versions= exts= suffix=
- for artifact in "${ARTIFACTS[@]}" ; do
- IFS=":" read -rs groupId artifactId versions exts suffix <<< "${artifact}"
- for version in ${versions}; do
- for ext in ${exts}; do
- if [[ "${ext}" == "jar" && -n "${suffix}" ]]; then
- DOWNLOADS+="mirror://maven2/${groupId}/${artifactId}/${version}/${artifactId}-${version}-${suffix}.${ext}
- "
- else
- DOWNLOADS+="mirror://maven2/${groupId}/${artifactId}/${version}/${artifactId}-${version}.${ext}
- "
- fi
- done
- done
- done
- DOWNLOADS+=" )"
-}
-
-#set_downloads
-
DOWNLOADS="mirror://apache/${PN}/${PN}-$(ever major)/${PV}/binaries/${MY_PNV}-bin.tar.gz"
LICENCES="Apache-2.0"
SLOT="0"
PLATFORMS="~amd64"
-# Till someone figures out all artifacts, bootstrapping is required.
-#MYOPTIONS="bootstrap [[ description = [ Bootstrap ${PN} with a pre-compiled binary rather than an already installed ${PN}. ] ]]"
MYOPTIONS=""
UPSTREAM_DOCUMENTATION="${HOMEPAGE}/guides/index.html"
@@ -105,72 +33,9 @@ emvn() {
"-D${PN}.repo.local=${M2_REPOSITORY}" "${@}"
}
-_pkg_pretend() {
- if ! option bootstrap ; then
- if ! has_version dev-java/maven ; then
- ewarn "You need ${PN} installed to compile ${PN} from source."
- ewarn "Try installing ${PN}[bootstrap]"
- die "Could not find ${PN} to bootstrap with"
- else
- ewarn "The maven mirror you will use may hate wget as download agent."
- ewarn "Make sure you put \"EXTRA_WGET=--user-agent=NoSuchBrowser/1.0\""
- ewarn "or something similar in your bashrc to avoid download problems."
- fi
- fi
-}
-
-_src_unpack() {
- if option bootstrap ; then
- default
- else
- # Prevent unpacking of jar files
- unpack "${MY_PNV}-src.tar.gz"
- fi
-}
-
-_src_prepare() {
- if ! option bootstrap ; then
- edo mkdir -p "${M2_REPOSITORY}"
- local groupId= artifactId= versions= exts= suffix= repository_path=
- for artifact in "${ARTIFACTS[@]}" ; do
- IFS=":" read -rs groupId artifactId versions exts suffix <<< "${artifact}"
- for version in ${versions}; do
- repository_path="${M2_REPOSITORY}/${groupId}/${artifactId}/${version}"
- edo mkdir -p "${repository_path}"
- for ext in ${exts}; do
- if [[ "${ext}" == "jar" && -n "${suffix}" ]]; then
- edo cp "${FETCHEDDIR}/${artifactId}-${version}-${suffix}.${ext}" "${repository_path}"
- else
- edo cp "${FETCHEDDIR}/${artifactId}-${version}.${ext}" "${repository_path}"
- fi
- done
- done
- done
- fi
-}
-
-src_compile() {
- #if ! option bootstrap ; then
- #emvn compile
- #fi
- :
-}
-
-_src_test() {
- if ! option bootstrap ; then
- emvn test
- fi
-}
-
src_install() {
-# if option bootstrap ; then
- dodir /usr/share
- edo cp -r "${WORK}" "${IMAGE}"/usr/share/
-# else
-# emvn -Dmaven.test.skip=true install
-# dodir /usr/share
-# edo tar zxf "${WORK}"/"${MY_PN}"/target/"${MY_PNV}"-bin.tar.gz --no-same-owner -C "${IMAGE}"/usr/share
-# fi
+ dodir /usr/share
+ edo cp -r "${WORK}" "${IMAGE}"/usr/share/
dodir /usr/$(exhost --target)/bin
dosym /usr/{share/"${MY_PNV}",$(exhost --target)}/bin/mvn
}