# $Id: Portfile 48387 2009-03-20 19:14:10Z dluke@macports.org $ PortSystem 1.0 name subversion-javahlbindings version 1.6.0 categories devel java platforms darwin maintainers dluke@geeklair.net description Java (javahl) bindings for the subversion version control system. long_description Subversion is a version control system designed to be \ as similar to cvs(1) as possible, while fixing many \ outstanding problems with cvs(1). The java bindings \ provide access to subversion API from java. homepage http://subversion.tigris.org/ master_sites ${homepage}/downloads/ use_bzip2 yes checksums md5 db9f19671c1f5286be3a930c0a7d18f3 \ sha1 a8088dd170ea38f6d175c6b009352922bc808013 \ rmd160 c59162ea82e9c3e789ef6376c00bfdcf07b9a205 distname subversion-${version} dist_subdir subversion depends_lib port:expat port:neon \ port:apr port:apr-util \ port:db46 port:subversion \ port:junit \ port:gettext port:libiconv \ port:serf port:cyrus-sasl2 configure.cxx g++ configure.args --with-berkeley-db=yes \ --with-neon=${prefix} --with-apr=${prefix}/bin/apr-1-config \ --with-apr-util=${prefix}/bin/apu-1-config --without-apxs \ --mandir=\\\${prefix}/share/man \ --disable-neon-version-check --with-serf=${prefix} \ --with-sasl=${prefix} \ --with-javahl --without-jikes \ --with-junit=${prefix}/share/java/junit.jar build.target javahl destroot.target install-javahl test.run yes test.target check-javahl destroot.violate_mtree yes patchfiles patch-configure.diff pre-test { reinplace "s|-Djava.library.path=:\$(libdir)|-Djava.library.path=:${worksrcpath}/subversion/bindings/javahl/native/.libs|g" \ ${worksrcpath}/Makefile system "ln -sf ${worksrcpath}/subversion/bindings/javahl/native/.libs/libsvnjavahl-1.dylib ${worksrcpath}/subversion/bindings/javahl/native/.libs/libsvnjavahl.jnilib" } pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \ ${worksrcpath}/configure reinplace "s|\\(LINK_JAVAHL_CXX.*\\)-rpath|\\1-dynamiclib -rpath|g" \ ${worksrcpath}/Makefile.in } post-configure { reinplace "s|need_relink=yes|need_relink=no|g" \ ${worksrcpath}/libtool } variant no_bdb description {Build without support for BerkeleyDB repositories} { depends_lib-delete port:db46 port:py-bsddb configure.args-delete --with-berkeley-db=yes configure.args-append --without-berkeley-db } variant no_neon description {Build without neon (http/https support)} { depends_lib-delete port:neon configure.args-append --without-neon configure.args-delete --with-neon=${prefix} } post-destroot { file mkdir ${destroot}/Library/Java/Extensions system "ln -sf ${prefix}/lib/libsvnjavahl-1.dylib ${destroot}/Library/Java/Extensions/libsvnjavahl.jnilib" file mkdir ${destroot}${prefix}/share/java system "ln -sf ${prefix}/lib/svn-javahl/svn-javahl.jar ${destroot}/${prefix}/share/java/svn-javahl.jar" } # 10.3 says -> CarbonCore/MacTypes.h: No such file or directory platform darwin 7 { configure.args-append \ --disable-keychain }