# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ PortSystem 1.0 name subversion-rubybindings version 1.6.2 categories devel ruby platforms darwin maintainers geeklair.net:dluke description Ruby 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 ruby bindings \ provide access to subversion API from ruby. homepage http://subversion.tigris.org/ master_sites ${homepage}/downloads/ use_bzip2 yes checksums md5 ebb1cecd313533ca0876f9bfc86bd5d9 \ sha1 f3b7f35dee4772a25646fe1fbb5108a6569803d1 \ rmd160 b20b4950188f2482984a1e7b0e5e0bdfccb06b09 distname subversion-${version} dist_subdir subversion test.run yes test.target check-swig-rb depends_lib port:expat port:neon \ port:apr port:apr-util \ port:db46 port:subversion \ port:ruby port:sqlite3 \ port:gettext port:libiconv \ port:serf port:cyrus-sasl2 configure.env RUBY=${prefix}/bin/ruby 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} build.target swig-rb destroot.target install-swig-rb pre-test { set x {} fs-traverse dir ${worksrcpath}/subversion { if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} { lappend x ${dir} continue } } test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"] } pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \ ${worksrcpath}/configure } 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} } # 10.3 says -> CarbonCore/MacTypes.h: No such file or directory platform darwin 7 { configure.args-append \ --disable-keychain }