# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 154393 2016-10-28 22:10:07Z mojca@macports.org $ PortSystem 1.0 name subversion-perlbindings version 1.9.4 revision 1 categories devel perl platforms darwin maintainers geeklair.net:dluke blair description Perl bindings for the subversion version control system (svn) license Apache-2 long_description Subversion (svn) is a version control system designed to be \ as similar to cvs(1) as possible, while fixing many \ outstanding problems with cvs(1). The perl bindings \ provide access to subversion API from perl. homepage http://subversion.apache.org/ set perl5.branches {5.24} foreach branch ${perl5.branches} { set p_idx [lsearch ${perl5.branches} ${branch}] set other_perls [lreplace ${perl5.branches} $p_idx $p_idx] subport ${name}-${branch} { set perl5.branch $branch foreach c_perl ${other_perls} { conflicts-append ${name}-${c_perl} } } } if {${subport} eq ${name}} { distfiles supported_archs noarch # depend on a default perl version depends_lib port:${name}-5.24 # avoid conflict with old version when upgrading replaced_by ${name}-5.24 use_configure no build {} destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README" } livecheck.type regex livecheck.url http://svn.apache.org/repos/asf/subversion/tags/ livecheck.regex "(\\d+\\.\\d+\\.\\d+)/" } else { master_sites apache:subversion use_bzip2 yes checksums sha1 bc7d51fdda43bea01e1272dfe9d23d0a9d6cd11c \ rmd160 9ea97e177a673f7b64f6f4ea8848b8640918387f distname subversion-${version} dist_subdir subversion test.run yes test.target check-swig-pl use_parallel_build no depends_lib port:apr \ port:apr-util \ port:cyrus-sasl2 \ port:db46 \ port:expat \ port:gettext \ port:libcomerr \ port:libiconv \ port:libmagic \ port:perl${perl5.branch} \ port:serf1 \ port:sqlite3 \ port:subversion \ port:zlib configure.args --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 \ --with-apr=${prefix}/bin/apr-1-config \ --with-apr-util=${prefix}/bin/apu-1-config --without-apxs \ --mandir=\\\${prefix}/share/man \ --with-serf=${prefix} \ --with-sasl=${prefix} \ --with-libmagic=${prefix} \ --without-gnome-keyring configure.env ac_cv_path_PERL=${prefix}/bin/perl${perl5.branch} build.target swig-pl destroot.target install-swig-pl-lib DESTDIR=${destroot} && \ cd "${worksrcpath}/subversion/bindings/swig/perl/native" &&\ make pure_install destroot.args INSTALLDIRS=vendor 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 configure.args-delete --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 configure.args-append --without-berkeley-db } post-destroot { foreach packlist [exec find ${destroot} -name .packlist] { ui_info "Fixing packlist ${packlist}" reinplace "s|${destroot}||" ${packlist} } } # CarbonCore/MacTypes.h: No such file or directory platform puredarwin { configure.args-append --disable-keychain } livecheck.type none }