forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
40 lines (33 loc) · 1.06 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
PortSystem 1.0
name jfreechart
version 1.0.0-pre2
categories java graphics
license LGPL-2.1+
platforms darwin
maintainers nomaintainer
description JFreeChart is a free Java class library for generating charts.
long_description ${description}
homepage http://www.jfree.org/jfreechart/
master_sites sourceforge
checksums md5 60c284085ffaa9c077215b8cfff91d52
depends_build bin:ant:apache-ant
depends_lib bin:java:kaffe \
port:junit \
port:servlet24-api
extract.post_args "| tar -xf - --exclude 'junit.jar' --exclude 'servlet.jar'"
post-extract {
ln -s ${prefix}/share/java/junit.jar ${worksrcpath}/lib/junit.jar
ln -s ${prefix}/share/java/servlet24-api.jar \
${worksrcpath}/lib/servlet.jar
}
use_configure no
build.dir ${worksrcpath}/ant
build.cmd ant
build.target all
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
${destroot}${prefix}/share/doc/
xinstall -m 644 ${worksrcpath}/jfreechart-${version}.jar \
${destroot}${prefix}/share/java/jfreechart.jar
file copy ${worksrcpath}/javadoc ${destroot}${prefix}/share/doc/${name}
}