source: trunk/dports/databases/lmdb/Portfile @ 137840

Last change on this file since 137840 was 137840, checked in by larryv@…, 4 years ago

lmdb, py-leveldb: Move to "databases" category

File size: 2.3 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                lmdb
7version             0.9.14
8set commit          985bbbbdd5d64e57f55249ffdeb7c08035b240b2
9categories          databases
10maintainers         hum openmaintainer
11
12description         Symas Lightning Memory-Mapped Database (LMDB)
13
14long_description    LMDB is an ultra-fast, ultra-compact key-value embedded data \
15                    store developed by Symas for the OpenLDAP Project. It uses \
16                    memory-mapped files, so it has the read performance of a \
17                    pure in-memory database while still offering the persistence \
18                    of standard disk-based databases, and is only limited to the \
19                    size of the virtual address space, (it is not limited to the \
20                    size of physical RAM). Note: LMDB was originally called MDB, \
21                    but was renamed to avoid confusion with other software \
22                    associated with the name MDB.
23
24homepage            http://symas.com/mdb/
25platforms           darwin
26license             OpenLDAP-2.8+
27
28set repo_url        https://gitorious.org/mdb/mdb/
29master_sites        ${repo_url}archive/
30checksums           rmd160  6a4c63e972b79e17560c1de028f6fb44aa588328 \
31                    sha256  95a134d97ef9f03682fbc9ae4c8dfd724b623d0ee6470b3d70491e8cdc82e4f3
32
33patchfiles          patch-Makefile.diff
34
35distname            ${commit}
36
37worksrcdir          mdb-mdb/libraries/liblmdb
38
39use_configure       no
40
41variant universal {}
42
43build.args          CC="${configure.cc}" \
44                    CFLAGS="${configure.cflags} [get_canonical_archflags]"
45
46destroot.args-append  prefix=${prefix}
47                   
48post-destroot {
49    # set install name to the library
50    set dylib ${prefix}/lib/liblmdb.dylib
51    system "install_name_tool -id ${dylib} ${destroot}${dylib}"
52
53    # install additional documents
54    set docdir ${prefix}/share/doc/${name}
55    xinstall -d ${destroot}${docdir}
56    xinstall -m 644 -W ${worksrcpath} \
57        CHANGES COPYRIGHT LICENSE \
58        ${destroot}${docdir}
59}
60
61livecheck.type      regexm
62livecheck.version   ${commit}
63livecheck.url       ${repo_url}
64livecheck.regex     archive/(\[0-9a-f\]*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.