/
Portfile
59 lines (46 loc) · 1.71 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
53
54
55
56
57
58
59
# $Id: Portfile,v 1.5 2005/11/18 14:20:32 jberry Exp $
PortSystem 1.0
name jakarta-bcel
version 5.1
revision 1
categories java
maintainers jberry@opendarwin.org
platforms darwin
description Jakarta BCEL -- Java Byte Code Engineering Library
long_description The Byte Code Engineering Library is intended to give \
users a convenient possibility to analyze, create, and \
manipulate (binary) Java class files (those ending with \
.class). Classes are represented by objects which contain \
all the symbolic information of the given class: methods, \
fields and byte code instructions, in particular.
homepage http://jakarta.apache.org/bcel/
master_sites apache:jakarta/bcel/source/
checksums md5 31ebbd7738325c775bd3ad5ce90dc263
distname bcel-${version}-src
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe \
port:jakarta-regexp
worksrcdir bcel-${version}
patchfiles patch-Pass2Verifier.java.diff \
patch-StringRepresentation.java.diff
post-extract {
# Cleanup becl's sloppy distribution
system "cd ${workpath} && unzip bcel-${version}.zip && unzip -o ${distname}.zip"
file delete ${worksrcpath}/bcel-${version}.jar
file mkdir ${worksrcpath}/examples
# There is no manifest in the source distribution
reinplace /manifest/d ${worksrcpath}/build.xml
}
use_configure no
build.cmd ant
build.target jar
build.args -Dname=${name} \
-Dclass.path=${prefix}/share/java/jakarta-regexp.jar
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java \
${destroot}${prefix}/share/doc
xinstall -m 644 \
${worksrcpath}/bin/jakarta-bcel.jar \
${destroot}${prefix}/share/java/
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}