Files

53 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2008-03-08 17:50:04 +00:00
PortSystem 1.0
name objenesis
version 1.1
categories java
platforms darwin
2019-07-07 20:34:31 -07:00
maintainers nomaintainer
2008-03-08 17:50:04 +00:00
description Library for instantiating Java objects
long_description It's pretty easy to instantiate objects in Java \
through standard reflection. However there are \
many cases where you need to go beyond what \
reflection provides. For example, if there's \
no public constructor, you want to bypass the \
constructor code, or set final fields. There \
are numerous clever (but fiddly) approaches to \
getting around this and this library provides \
a simple way to get at them.
2017-12-30 00:49:08 -08:00
homepage https://code.google.com/p/objenesis/
2008-03-08 17:50:04 +00:00
master_sites googlecode:${name}
dist_subdir ${name}
distname ${name}-${version}-bundle
checksums md5 5b9de0d8916d54add7bc8ae80cee539f \
sha1 efb78dd59bb27114da41d23fba5c3ddc8d0a2102 \
rmd160 3bb9b1f12c1c471d3f40abd7047807637148b4bf
extract.cmd jar
extract.pre_args xf
extract.post_args
extract.suffix .jar
worksrcdir .
depends_lib bin:java:kaffe
use_configure no
2019-07-19 13:40:08 +00:00
build {}
2008-03-08 17:50:04 +00:00
destroot {
set javadir ${destroot}${prefix}/share/java
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${javadir}
xinstall -d -m 755 ${docdir}/api
file copy ${workpath}/${name}-${version}.jar ${javadir}/${name}.jar
file copy ${workpath}/LICENSE.txt ${docdir}/
system "cd ${docdir}/api && jar xf ${workpath}/${name}-${version}-javadoc.jar"
delete ${docdir}/api/META-INF
}