Opened 8 years ago
Closed 8 years ago
#52293 closed defect (fixed)
neomutt: update db4, add lmdb, simplify header cache implementation handling
Reported by: | neverpanic (Clemens Lang) | Owned by: | lbschenkel (Leonardo Brondani Schenkel) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | haspatch | Cc: | |
Port: | neomutt |
Description (last modified by neverpanic (Clemens Lang))
Here's a patch that adds a variant for LMDB, updates the DB4 version used to the latest compatible version and removes an unneeded -L/usr/lib
for the header cache variant.
OK to commit?
-
Portfile
5 5 PortGroup github 1.0 6 6 7 7 github.setup neomutt neomutt 20160916 neomutt- 8 revision 18 revision 2 9 9 categories mail 10 10 platforms darwin 11 11 license GPL-2 … … 52 52 --without-gnutls \ 53 53 --without-gss \ 54 54 --without-idn \ 55 --without-lmdb \ 55 56 --without-qdbm \ 56 57 --without-regex \ 57 58 --without-sasl \ … … 60 61 61 62 default_variants +idn +imap +pop +ssl 62 63 63 if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} { 64 variant_set gdbm 64 set hcache_variants {db4 qdbm tokyocabinet gdbm lmdb} 65 if {[variant_isset headercache]} { 66 set found no 67 foreach hcache_impl {db4 qdbm tokyocabinet gdbm lmdb} { 68 if {[variant_isset $hcache_impl]} { 69 set found yes 70 } 71 } 72 if {!$found} { 73 # If no variant was chosen, choose one for the user 74 variant_set lmdb 75 } 65 76 } 66 77 67 78 post-destroot { … … 73 84 variant compress description {Compressed folders} { 74 85 configure.args-replace --disable-compressed --enable-compressed 75 86 } 76 variant db4 conflicts qdbm gdbm tokyocabinetdescription {Use Berkeley DB database} {87 variant db4 conflicts {*}[lsearch -all -inline -not $hcache_variants db4] description {Use Berkeley DB database} { 77 88 configure.args-replace --without-bdb --with-bdb=${prefix} 78 configure.cppflags-append "-I${prefix}/include/db4 4"79 configure.ldflags-append "-L${prefix}/lib/db4 4"80 depends_lib-append port:db4 489 configure.cppflags-append "-I${prefix}/include/db48" 90 configure.ldflags-append "-L${prefix}/lib/db48" 91 depends_lib-append port:db48 81 92 } 82 93 variant debug description {Debugging support} { 83 94 configure.args-append --enable-debug 84 95 } 85 variant gdbm conflicts db4 qdbm tokyocabinetdescription {Use GNU dbm database} {96 variant gdbm conflicts {*}[lsearch -all -inline -not $hcache_variants gdbm] description {Use GNU dbm database} { 86 97 configure.args-replace --without-gdbm --with-gdbm=${prefix} 87 98 depends_lib-append port:gdbm 88 99 } … … 95 106 configure.args-append --with-gpgme-prefix=${prefix} 96 107 depends_lib-append port:gpgme 97 108 } 98 variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm,or tokyocabinet)} {109 variant headercache description {Enable header caching (requires db4, gdbm, qdbm, lmdb or tokyocabinet)} { 99 110 configure.args-replace --disable-hcache --enable-hcache 100 configure.ldflags-append "-L/usr/lib"101 111 } 102 112 variant idn description {Internationalized Domain Name support} { 103 113 configure.args-replace --without-idn --with-idn=${prefix} … … 106 116 variant imap description {IMAP support} { 107 117 configure.args-replace --disable-imap --enable-imap 108 118 } 119 variant lmdb conflicts {*}[lsearch -all -inline -not $hcache_variants lmdb] description {Use LMDB database} { 120 configure.args-replace --without-lmdb --with-lmdb=${prefix} 121 depends_lib-append port:lmdb 122 } 109 123 variant nntp description {NNTP support} { 110 124 configure.args-replace --disable-nntp --enable-nntp 111 125 } 112 126 variant pop description {POP support} { 113 127 configure.args-replace --disable-pop --enable-pop 114 128 } 115 variant qdbm conflicts db4 gdbm tokyocabinetdescription {Use QDBM database} {129 variant qdbm conflicts {*}[lsearch -all -inline -not $hcache_variants qdbm] description {Use QDBM database} { 116 130 configure.args-replace --without-qdbm --with-qdbm=${prefix} 117 131 depends_lib-append port:qdbm 118 132 } … … 130 144 configure.args-replace --without-ssl --with-ssl=${prefix} 131 145 depends_lib-append path:lib/libssl.dylib:openssl 132 146 } 133 variant tokyocabinet conflicts db4 gdbm qdbmdescription {Use Tokyo Cabinet database} {147 variant tokyocabinet conflicts {*}[lsearch -all -inline -not $hcache_variants tokyocabinet] description {Use Tokyo Cabinet database} { 134 148 configure.args-replace --without-tokyocabinet --with-tokyocabinet=${prefix} 135 149 depends_lib-append port:tokyocabinet 136 150 }
Change History (3)
comment:1 Changed 8 years ago by neverpanic (Clemens Lang)
Description: | modified (diff) |
---|
comment:2 Changed 8 years ago by lbschenkel (Leonardo Brondani Schenkel)
comment:3 Changed 8 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed in r152965.
Note: See
TracTickets for help on using
tickets.
Yes, please, and thanks.