Ticket #27583: git-core-python27.diff

File git-core-python27.diff, 1.9 KB (added by dackze+macports@…, 14 years ago)
  • trunk/dports/devel/git-core/Portfile

     
    55
    66name              git-core
    77version           1.7.3.2
     8revision          1
    89description       A fast version control system
    910long_description  Git is a fast, scalable, distributed open source version \
    1011                  control system focusing on speed and efficiency.
     
    2829                    rmd160  2a3e82a28bc955ffadfa91c5459f992ed17fa9f2
    2930
    3031depends_run  port:rsync port:p5-error
    31 depends_lib  path:bin/perl:perl5 port:curl port:zlib port:openssl port:expat port:libiconv port:python26
     32depends_lib  path:bin/perl:perl5 port:curl port:zlib port:openssl port:expat port:libiconv
    3233
    3334patchfiles   patch-Makefile.diff
    3435
     
    4344build.args     CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
    4445               CC=${configure.cc} \
    4546               prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} \
    46                PERL_PATH="${prefix}/bin/perl" PYTHON_PATH="${prefix}/bin/python2.6" NO_FINK=1 NO_DARWIN_PORTS=1 \
     47               PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 \
    4748               NO_R_TO_GCC_LINKER=1
    4849
    4950test.run       yes
     
    8687    }
    8788}
    8889
     90if {![variant_isset python26] && ![variant_isset python27]} {
     91    default_variants    +python26
     92}
     93
     94variant python26 conflicts python27 description {Use Python 2.6} {
     95    build.args-append   PYTHON_PATH="${prefix}/bin/python2.6"
     96    depends_lib-append  port:python26
     97}
     98
     99variant python27 conflicts python26 description {Use Python 2.7} {
     100    build.args-append   PYTHON_PATH="${prefix}/bin/python2.7"
     101    depends_lib-append  port:python27
     102}
     103
    89104variant doc description {Install HTML and plaintext documentation} {
    90105    distfiles-append    git-htmldocs-${version}${extract.suffix}
    91106    checksums-append    git-htmldocs-${version}${extract.suffix} \