mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
commons-logging: update to 1.3.5
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
PortSystem 1.0
|
||||
PortGroup java 1.0
|
||||
|
||||
name commons-logging
|
||||
version 1.2
|
||||
version 1.3.5
|
||||
|
||||
categories java
|
||||
license Apache-2
|
||||
@@ -16,41 +15,35 @@ homepage https://commons.apache.org/logging/
|
||||
|
||||
distname ${name}-${version}-src
|
||||
master_sites apache:commons/logging/source/
|
||||
checksums rmd160 ff628c8de57f7da8572de3554196ee033e255312 \
|
||||
sha256 49665da5a60d033e6dff40fe0a7f9173e886ae859ce6096c1afe34c48b677c81 \
|
||||
size 188536
|
||||
checksums rmd160 28d88c0219999490b114f2d03655c91f02d15450 \
|
||||
sha256 52acdfbc1a1b916d7445bdb225e8d826fbdc99d381ccb43384fc7ae42cdaf3aa \
|
||||
size 196373
|
||||
|
||||
# This port would normally be compatible with Java 1.2+,
|
||||
# but because it doesn't build with JDK 9 or higher,
|
||||
# and there is currently no way to specify a maximum JDK version
|
||||
# for the Java portgroup, force JDK 8 to be used.
|
||||
#java.version 1.2+
|
||||
java.version 1.8
|
||||
java.fallback openjdk8
|
||||
|
||||
depends_build bin:ant:apache-ant \
|
||||
port:junit
|
||||
depends_lib port:jakarta-log4j \
|
||||
port:servlet23-api
|
||||
depends_build bin:mvn3:maven3
|
||||
|
||||
use_configure no
|
||||
set maven_local_repository ${worksrcpath}/.m2/repository
|
||||
|
||||
build.cmd ant
|
||||
build.target all
|
||||
build.args -lib ${prefix}/share/java/junit.jar \
|
||||
-Dcomponent.version=${version} \
|
||||
-Dlog4j12.jar=${prefix}/share/java/jakarta-log4j.jar \
|
||||
-Dlogkit.jar=NONE \
|
||||
-Davalon-framework.jar=NONE \
|
||||
-Dservletapi.jar=${prefix}/share/java/servlet23-api.jar
|
||||
pre-build {
|
||||
file mkdir ${maven_local_repository}
|
||||
}
|
||||
|
||||
build.cmd mvn3
|
||||
build.target "package"
|
||||
build.pre_args-append \
|
||||
-Dmaven.repo.local=${maven_local_repository} \
|
||||
-DskipTests \
|
||||
-Drat.skip=true
|
||||
|
||||
destroot {
|
||||
xinstall -m 755 -d ${destroot}${prefix}/share/java \
|
||||
${destroot}${prefix}/share/doc
|
||||
xinstall -m 644 ${worksrcpath}/target/commons-logging-${version}.jar \
|
||||
${destroot}${prefix}/share/java/commons-logging.jar
|
||||
xinstall -m 644 ${worksrcpath}/target/commons-logging-api-${version}.jar \
|
||||
xinstall -m 644 ${worksrcpath}/target/commons-logging-${version}-api.jar \
|
||||
${destroot}${prefix}/share/java/commons-logging-api.jar
|
||||
xinstall -m 644 ${worksrcpath}/target/commons-logging-${version}-adapters.jar \
|
||||
${destroot}${prefix}/share/java/commons-logging-adapters.jar
|
||||
}
|
||||
|
||||
livecheck.type regex
|
||||
|
||||
Reference in New Issue
Block a user