Ticket #43254: gnucash-python27.2.diff

File gnucash-python27.2.diff, 1.5 KB (added by david.spreen+macports@…, 8 years ago)

Execute python2.7-config during configure, not in Portfile

  • Portfile

    old new  
    8888
    8989post-patch {
    9090    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
     91    system "cd ${worksrcpath} && ./autogen.sh"
     92    if {[variant_isset python27]} {
     93        # Fix python exec_prefix
     94        reinplace "s|\\(PYTHON_EXEC_PREFIX=\\).*$|\\1${frameworks_dir}/Python.framework/Versions/2.7/|" \
     95            ${worksrcpath}/configure
     96        reinplace "s|\\(PYTHON_PREFIX=\\).*$|\\1${frameworks_dir}/Python.framework/Versions/2.7/|" \
     97            ${worksrcpath}/configure
     98    }
    9199}
    92100
    93 configure.cmd     ./autogen.sh && ./configure
    94 
    95101configure.args    --disable-dependency-tracking \
    96102                  --disable-aqbanking \
    97103                  --disable-ofx \
     
    126132
    127133default_variants +ofx +hbci
    128134
     135variant python27 description {Install Python bindings for Python 2.7} {
     136    depends_lib-append  port:python27
     137#    patchfiles-append  patch-configure-python.diff
     138    set python_bindir ${frameworks_dir}/Python.framework/Versions/2.7/bin/
     139    configure.args-append --enable-python \
     140                          PYTHON_EXTRA_LDFLAGS=\"\`${python_bindir}/python2.7-config --ldflags\`\" \
     141                          PYTHON_CPPFLAGS=\"\`${python_bindir}/python2.7-config --cflags\`\"
     142    configure.python    ${python_bindir}/python2.7
     143}
     144
    129145# variant python27 description {Install Python bindings for Python 2.7} {
    130146#     #patchfiles-append patch-configure-python.diff
    131147#     depends_lib-append port:python27