Ticket #19247: Portfile.diff

File Portfile.diff, 1.4 KB (added by jmroot (Joshua Root), 12 years ago)

subversion portfile patch

  • Portfile

     
    44
    55name                    subversion
    66version                 1.7.3
     7revision                1
    78categories              devel
    89platforms               darwin
    910maintainers             geeklair.net:dluke blair
     
    2627                        port:db46 port:sqlite3 \
    2728                        port:gettext port:libiconv \
    2829                        port:serf1 port:cyrus-sasl2
     30depends_run             port:curl-ca-bundle
    2931
    3032test.run                yes
    3133test.target             check
    3234test.env                CLEANUP=true
    3335
    34 patchfiles              patch-Makefile.in.diff
     36patchfiles              patch-Makefile.in.diff config_impl.h.patch
     37post-patch {
     38    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/subversion/libsvn_subr/config_impl.h
     39}
    3540
    3641configure.args          --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 \
    3742                        --with-neon=${prefix} --with-apr=${prefix}/bin/apr-1-config \
     
    6368                                ${worksrcpath}/libtool
    6469                        }
    6570
     71post-destroot {
     72    # install global config file so curl-ca-bundle certs are used
     73    xinstall -d ${destroot}${prefix}/etc/subversion
     74    xinstall -m 644 ${filespath}/servers.default ${destroot}${prefix}/etc/subversion
     75}
     76post-activate {
     77    if {![file exists ${prefix}/etc/subversion/servers]} {
     78        copy ${prefix}/etc/subversion/servers.default ${prefix}/etc/subversion/servers
     79    }
     80}
     81
    6682variant mod_dav_svn     description {Install the subversion apache module (mod_dav_svn)} {
    6783                        depends_build path:apache2/bin/apxs:apache2
    6884                        configure.args-append \