Ticket #43254: gnucash-python.diff
File gnucash-python.diff, 2.1 KB (added by g5pw (Aljaž Srebrnič), 8 years ago) |
---|
-
Portfile
38 38 distname ${name}-${version}b 39 39 worksrcdir ${name}-${version} 40 40 41 patchfiles patch-configure.ac.diff42 43 41 post-patch { 44 42 # gnc-fq-dump needs to be patched to use MacPorts perl. 45 43 # (autoconf takes care of the other perl scripts.) … … 54 52 reinplace -locale C "s|<libguile/|<libguile18/|g" ${f} 55 53 } 56 54 } 55 56 if {[variant_isset python27]} { 57 # Fix python exec_prefix 58 reinplace "s|\\(PYTHON_EXEC_PREFIX=\\).*$|\\1${frameworks_dir}/Python.framework/Versions/2.7/|" \ 59 ${worksrcpath}/configure 60 } 57 61 } 58 62 59 63 depends_build port:pkgconfig \ … … 90 94 # aqbanking is not universal 91 95 universal_variant no 92 96 93 # reconfigure using upstream autogen.sh for intltool 0.51 compatibility94 95 post-patch {96 xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}97 }98 99 configure.cmd ./autogen.sh && ./configure100 101 97 configure.args --disable-dependency-tracking \ 102 98 --disable-aqbanking \ 103 99 --disable-ofx \ … … 132 128 133 129 default_variants +ofx +hbci 134 130 135 # variant python27 description {Install Python bindings for Python 2.7} { 136 # #patchfiles-append patch-configure-python.diff 137 # depends_lib-append port:python27 138 # configure.args-append --enable-python 139 # configure.python ${prefix}/bin/python2.7 140 # } 131 variant python27 description {Install Python bindings for Python 2.7} { 132 depends_lib-append port:python27 133 134 patchfiles-append patch-configure-python.diff 135 136 set python_bindir ${frameworks_dir}/Python.framework/Versions/2.7/bin/ 137 138 configure.args-append --enable-python \ 139 PYTHON_EXTRA_LDFLAGS=\"[exec ${python_bindir}/python2.7-config --ldflags]\" \ 140 PYTHON_CPPFLAGS=\"[exec ${python_bindir}/python2.7-config --cflags]\" 141 142 configure.python ${python_bindir}/python2.7 143 } 141 144 142 145 post-activate { 143 146 system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"