# -*- 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$

PortSystem          1.0
PortGroup           github 1.0
PortGroup           qmake5 1.0

github.setup        svn-all-fast-export svn2git 437beb493db3b1cb532ca5807264cd4403a44157
version             20160822
revision            1
categories          devel
platforms           darwin
maintainers         ryandesign openmaintainer
license             GPL-3+

description         converts a Subversion repository into one or more Git repositories

long_description    svn2git provides the svn-all-fast-export program which ${description}.

checksums           rmd160  dd30ef586fd47a5998b125f5a3f3ca73691a595b \
                    sha256  470edaeb6917c0539a913aa063ae1326914500e7b5ede8be5058d430c7354bc0

depends_lib-append  port:apr \
                    port:subversion

# muniversal destroot requires a Makefile
post-extract {
    copy ${filespath}/Makefile-Install.in ${worksrcpath}/Makefile-Install
}

patchfiles          fix-case-export-on-osx.patch

post-patch {
    xinstall -m 644 ${filespath}/local-config.pri.in ${worksrcpath}/src/local-config.pri
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile-Install ${worksrcpath}/src/local-config.pri
}

configure.args-append \
                    CONFIG-=app_bundle

destroot.args-append \
                    -f Makefile-Install