Ignore:
Timestamp:
Dec 3, 2012, 10:01:30 AM (7 years ago)
Author:
ryandesign@…
Message:

notmuch: update to 0.14 and fix livecheck (#33875); use patchfiles instead of reinplaces; prevent build conflict when previous version of notmuch is active; disable silent rules; remove python variant which does nothing and fix emacs variant to actually do something (#33876); fix license

Location:
trunk/dports/mail/notmuch
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/notmuch/Portfile

    r91481 r100191  
    33
    44PortSystem          1.0
     5PortGroup           conflicts_build 1.0
    56
    67name                notmuch
    7 version             0.11
     8version             0.14
    89categories          mail
    910platforms           darwin
    10 license             GPL-3
     11license             GPL-3+
    1112maintainers         yeled
    1213description         The mail indexer
     
    1819
    1920homepage            http://notmuchmail.org/
    20 master_sites        http://notmuchmail.org/releases/
    21 checksums           md5     f5d0d3de3b9948de11e48e3bbc849183 \
    22                     sha1    11eb1d967af089ed36f6816f61ebae308bc19339 \
    23                     rmd160  184ba8a7589d499ae18b8ec61c1cc05c1b1b2d1e
     21master_sites        ${homepage}releases/
     22
     23checksums           rmd160  afe86b644b29e57f2261cc19230435e8dcdd6841 \
     24                    sha256  095e191dc0f3125c4fd98440fdf55050cba01b8e9f68245ffe0190a7f39ca753
    2425
    2526depends_build       port:pkgconfig
     
    2930                    port:talloc
    3031
     32patchfiles          patch-lib-Makefile.local.diff \
     33                    patch-bindings-python-notmuch-globals.py.diff
     34
     35post-patch {
     36    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/bindings/python/notmuch/globals.py
     37}
     38
     39# 0.14 failed to build when 0.11 was active with this error:
     40# notmuch-count.c:70:44: error: too many arguments to function call, expected 2, have 3
     41#                                NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))
     42#                                                                 ^~~~~~~~
     43# /opt/local/include/notmuch.h:174:1: note: 'notmuch_database_open' declared here
     44# notmuch_database_t *
     45# ^
     46conflicts_build     ${name}
     47
    3148configure.args      --without-emacs
    3249
    33 post-configure  {
    34                     reinplace "s|install_name \$(SONAME)|install_name \$(libdir)/\$(SONAME)|g" "${worksrcpath}/lib/Makefile.local"
    35                     reinplace "s|libnotmuch.so.2|${prefix}/lib/libnotmuch.2.dylib|g" "${worksrcpath}/bindings/python/notmuch/globals.py"
     50# disable silent rules
     51build.args          V=1
     52
     53variant emacs description {EMACS support} {
     54    depends_lib-append      port:emacs
     55    configure.args-delete   --without-emacs
     56    configure.args-append   --with-emacs
    3657}
    3758
    38 variant emacs description {EMACS support} {
    39                     depends_lib-append      port:emacs
    40 }
    41 
    42 variant python description {install the python bindings } {
    43 }
     59livecheck.type      regex
     60livecheck.url       [lindex ${master_sites} 0]
     61livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.