Ticket #43254: gnucash-python27.2.diff
File gnucash-python27.2.diff, 1.5 KB (added by david.spreen+macports@…, 8 years ago) |
---|
-
Portfile
old new 88 88 89 89 post-patch { 90 90 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 } 91 99 } 92 100 93 configure.cmd ./autogen.sh && ./configure94 95 101 configure.args --disable-dependency-tracking \ 96 102 --disable-aqbanking \ 97 103 --disable-ofx \ … … 126 132 127 133 default_variants +ofx +hbci 128 134 135 variant 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 129 145 # variant python27 description {Install Python bindings for Python 2.7} { 130 146 # #patchfiles-append patch-configure-python.diff 131 147 # depends_lib-append port:python27