Ticket #48668: add-python-variant.diff

File add-python-variant.diff, 1.8 KB (added by cceleri@…, 9 years ago)
  • Portfile

    diff --git a/Portfile b/Portfile
    index 28f2c17..09fb185 100644
    a b configure.args --without-emacs 
    5050# disable silent rules
    5151build.args          V=1
    5252
     53variant python27 description {Python 2.7 bindings support} {
     54    depends_lib-append      port:python27
     55    post-destroot {
     56        system -W ${worksrcpath}/bindings/python \
     57            "${prefix}/bin/python2.7 setup.py build\
     58            && ${prefix}/bin/python2.7 setup.py install\
     59                --prefix ${frameworks_dir}/Python.framework/Versions/2.7\
     60                --root=${destroot}"
     61    }
     62}
     63
    5364variant emacs description {EMACS support} {
    5465    depends_lib-append      port:emacs
    5566    configure.args-delete   --without-emacs
  • files/patch-bindings-python-notmuch-globals.py.diff

    diff --git a/files/patch-bindings-python-notmuch-globals.py.diff b/files/patch-bindings-python-notmuch-globals.py.diff
    index bcc1ace..e9bfe7d 100644
    a b  
    1 --- bindings/python/notmuch/globals.py.orig     2013-08-03 06:29:40.000000000 -0500
    2 +++ bindings/python/notmuch/globals.py  2013-08-04 21:09:48.000000000 -0500
    3 @@ -24,7 +24,7 @@
     1--- bindings/python/notmuch/globals.py.orig     2015-08-21 11:13:03.000000000 -0400
     2+++ bindings/python/notmuch/globals.py  2015-08-21 12:13:27.000000000 -0400
     3@@ -25,7 +25,7 @@
    44 try:
    55     from os import uname
    66     if uname()[0] == 'Darwin':
    7 -        nmlib = CDLL("libnotmuch.4.dylib")
    8 +        nmlib = CDLL("@PREFIX@/lib/libnotmuch.4.dylib")
     7-        nmlib = CDLL("libnotmuch.{0:s}.dylib".format(SOVERSION))
     8+        nmlib = CDLL("@PREFIX@/lib/"+"libnotmuch.{0:s}.dylib".format(SOVERSION))
    99     else:
    10          nmlib = CDLL("libnotmuch.so.4")
     10         nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION))
    1111 except: