source: trunk/dports/java/jfreechart/Portfile

Last change on this file was 96123, checked in by jmr@…, 5 years ago

jfreechart: set license, fix post-extract code when deps are not installed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 96123 2012-08-01 14:00:38Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    jfreechart
6version                 1.0.0-pre2
7categories              java graphics
8license                 LGPL-2.1+
9platforms               darwin
10maintainers             nomaintainer
11description             JFreeChart is a free Java class library for generating charts.
12long_description        ${description}
13
14homepage                http://www.jfree.org/jfreechart/
15master_sites    sourceforge
16checksums               md5 60c284085ffaa9c077215b8cfff91d52
17
18depends_build   bin:ant:apache-ant
19depends_lib             bin:java:kaffe \
20                                port:junit \
21                                port:servlet24-api
22
23extract.post_args       "| tar -xf - --exclude 'junit.jar' --exclude 'servlet.jar'"
24post-extract {
25        ln -s ${prefix}/share/java/junit.jar ${worksrcpath}/lib/junit.jar
26        ln -s ${prefix}/share/java/servlet24-api.jar \
27                  ${worksrcpath}/lib/servlet.jar
28}
29
30use_configure   no
31
32build.dir               ${worksrcpath}/ant
33build.cmd               ant
34build.target    all
35
36destroot {
37        xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
38                ${destroot}${prefix}/share/doc/
39        xinstall -m 644 ${worksrcpath}/jfreechart-${version}.jar \
40                ${destroot}${prefix}/share/java/jfreechart.jar
41        file copy ${worksrcpath}/javadoc ${destroot}${prefix}/share/doc/${name}
42}
Note: See TracBrowser for help on using the repository browser.