/
Portfile
52 lines (41 loc) · 1.57 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
PortSystem 1.0
name commons-lang
version 2.4
categories java
license Apache-2
maintainers nomaintainer
platforms darwin
description Jakarta 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/
checksums md5 625ff5f2f968dd908bca43c9469d6e6b \
sha1 61ec8be8c2cf8f4c4272545666f936dd9f7e2a29
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe
use_configure no
build.cmd ant
build.target dist
build.args -Dfinal.name=${name}
destroot {
# Ensure needed directories
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
# Install jar
xinstall -m 644 ${worksrcpath}/${name}.jar \
${destroot}${prefix}/share/java
# Install docs
file copy ${worksrcpath}/xdocs \
${destroot}${prefix}/share/doc/${name}
}
livecheck.type regex
livecheck.url https://commons.apache.org/downloads/download_lang.cgi
livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)-src.tar.gz"