You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
65 lines
2.3 KiB
Tcl
65 lines
2.3 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup java 1.0
|
|
|
|
name commons-lang3
|
|
version 3.20.0
|
|
|
|
checksums rmd160 c60d8376b3e29b50927041e62f9e7f2cdf94015d \
|
|
sha256 ca736b78a140fdc83a8d23572ad0521a30d0239c5f8c7ddcb7cbf8c0abfb6215 \
|
|
size 1338908
|
|
|
|
categories java
|
|
license Apache-2
|
|
maintainers nomaintainer
|
|
platforms any
|
|
supported_archs noarch
|
|
|
|
description Apache Commons Lang
|
|
long_description The Lang Component provides a host of helper utilities for \
|
|
the java.lang API, notably String manipulation methods, basic \
|
|
numerical methods, object reflection, creation and serialization, \
|
|
and System properties. Additionally it contains an inheritable \
|
|
enum type, an exception structure that supports multiple types \
|
|
of nested-Exceptions, basic enhancements to java.util.Date and \
|
|
a series of utlities dedicated to help with building methods, \
|
|
such as hashCode, toString and equals.
|
|
homepage https://commons.apache.org/lang/
|
|
|
|
distname ${name}-${version}-src
|
|
master_sites apache:commons/lang/source/
|
|
|
|
java.version 11+
|
|
# Use latest LTS Java as fallback
|
|
java.fallback openjdk11
|
|
|
|
depends_build bin:mvn3:maven3
|
|
|
|
use_configure no
|
|
|
|
set maven_local_repository ${worksrcpath}/.m2/repository
|
|
pre-build {
|
|
file mkdir ${maven_local_repository}
|
|
}
|
|
|
|
build.cmd mvn3
|
|
build.target site
|
|
build.pre_args -Dmaven.repo.local=${maven_local_repository} \
|
|
-Drat.ignoreErrors=true \
|
|
-DskipTests
|
|
|
|
destroot {
|
|
# Ensure needed directories
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/java \
|
|
${destroot}${prefix}/share/doc
|
|
|
|
# Install jar
|
|
xinstall -m 644 ${worksrcpath}/target/${name}-${version}.jar \
|
|
${destroot}${prefix}/share/java/${name}.jar
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url https://commons.apache.org/proper/commons-lang/download_lang.cgi
|
|
livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"
|