source: trunk/dports/java/objenesis/Portfile

Last change on this file was 34841, checked in by blair@…, 9 years ago

New port for objenesis 1.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 34841 2008-03-08 17:50:04Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    objenesis
6version                 1.1
7categories              java
8platforms               darwin
9maintainers             blair
10
11description             Library for instantiating Java objects
12long_description        It's pretty easy to instantiate objects in Java \
13                        through standard reflection.  However there are \
14                        many cases where you need to go beyond what \
15                        reflection provides.  For example, if there's \
16                        no public constructor, you want to bypass the \
17                        constructor code, or set final fields.  There \
18                        are numerous clever (but fiddly) approaches to \
19                        getting around this and this library provides \
20                        a simple way to get at them.
21
22homepage                http://code.google.com/p/objenesis/
23
24master_sites            googlecode:${name}
25dist_subdir             ${name}
26distname                ${name}-${version}-bundle
27checksums               md5 5b9de0d8916d54add7bc8ae80cee539f \
28                        sha1 efb78dd59bb27114da41d23fba5c3ddc8d0a2102 \
29                        rmd160 3bb9b1f12c1c471d3f40abd7047807637148b4bf
30extract.cmd             jar
31extract.pre_args        xf
32extract.post_args
33extract.suffix          .jar
34
35worksrcdir              .
36
37depends_lib             bin:java:kaffe
38
39use_configure           no
40
41build.cmd               true
42
43destroot {
44        set javadir ${destroot}${prefix}/share/java
45        set docdir ${destroot}${prefix}/share/doc/${name}
46
47        xinstall -d -m 755 ${javadir}
48        xinstall -d -m 755 ${docdir}/api
49
50        file copy ${workpath}/${name}-${version}.jar ${javadir}/${name}.jar
51        file copy ${workpath}/LICENSE.txt ${docdir}/
52        system "cd ${docdir}/api && jar xf ${workpath}/${name}-${version}-javadoc.jar"
53        delete ${docdir}/api/META-INF
54}
Note: See TracBrowser for help on using the repository browser.