Opened 20 years ago

Last modified 9 years ago

#2649 closed enhancement

UPDATE: subversion-1.1.3 — at Initial Version

Reported by: jay@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: subversion

Description

This patch adds a java variant which builds and installs the javahl bindings. A couple of thoughts: I wasn't sure if a separate port was preferred (python bindings are a variant, but perl is a separate port). Also, this probalby won't work on anything other than OS X b/c of the java location. (It's likely not hard to create the bsd and linux variants, but I don't have the systems to test that.) Also, I wonder about my use of a reinplace to change one line, I'm a tcl / portfile newbie. One final thing is that I left the jar out in /opt/local/lib/svn-javahl; I for one don't take lightly to things getting shoved into system dirs unless absolutely necessary (which is necessary for the .jnilib file in /Libraray/Java/Extensions, unfortunately).

--- /opt/darwinports/dports/devel/subversion/Portfile Sun Jan 30 16:15:39 2005 +++ dports/devel/subversion/Portfile Sun Jan 30 16:16:32 2005 @@ -34,6 +34,23 @@

post-configure { reinplace "s|need_relink=yes|need_relink=no|g" \

${worksrcpath}/libtool

}

+ +variant java darwin { + configure.args-append --enable-javahl --without-jikes + build.args-append javahl + destroot.target-append install-javahl + pre-configure { + reinplace "s|
(LINK_JAVAHL_CXX.*
)-rpath|
1-dynamiclib -rpath|g" \ + ${worksrcpath}/Makefile.in + reinplace "s|libsvnjavahl-1.la|libsvnjavahl.jnilib|g" \ + ${worksrcpath}/build-outputs.mk + } + post-destroot { + file mkdir ${destroot}/Library/Java/Extensions + file copy ${destroot}${prefix}/lib/libsvnjavahl.jnilib \ + ${destroot}/Library/Java/Extensions + } +}

variant mod_dav_svn { depends_build path:${prefix}/apache2/bin/apxs:apache2

configure.args-append \

Change History (1)

Changed 20 years ago by jay@…

Attachment: subjava.patch added

Patch for java bindings variant

Note: See TracTickets for help on using tickets.