[129825] trunk/dports/databases
hum at macports.org
hum at macports.org
Sun Dec 21 00:07:11 PST 2014
Revision: 129825
https://trac.macports.org/changeset/129825
Author: hum at macports.org
Date: 2014-12-21 00:07:11 -0800 (Sun, 21 Dec 2014)
Log Message:
-----------
New port: lmdb @ 0.9.14 - Symas Lightning Memory-Mapped Database (LMDB)
Added Paths:
-----------
trunk/dports/databases/lmdb/
trunk/dports/databases/lmdb/Portfile
trunk/dports/databases/lmdb/files/
trunk/dports/databases/lmdb/files/patch-Makefile.diff
Added: trunk/dports/databases/lmdb/Portfile
===================================================================
--- trunk/dports/databases/lmdb/Portfile (rev 0)
+++ trunk/dports/databases/lmdb/Portfile 2014-12-21 08:07:11 UTC (rev 129825)
@@ -0,0 +1,64 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name lmdb
+version 0.9.14
+set commit 0018eeb2c3b2239c30def9d47c9d194a4ebf35fe
+categories database
+maintainers hum openmaintainer
+
+description Symas Lightning Memory-Mapped Database (LMDB)
+
+long_description LMDB is an ultra-fast, ultra-compact key-value embedded data \
+ store developed by Symas for the OpenLDAP Project. It uses \
+ memory-mapped files, so it has the read performance of a \
+ pure in-memory database while still offering the persistence \
+ of standard disk-based databases, and is only limited to the \
+ size of the virtual address space, (it is not limited to the \
+ size of physical RAM). Note: LMDB was originally called MDB, \
+ but was renamed to avoid confusion with other software \
+ associated with the name MDB.
+
+homepage http://symas.com/mdb/
+platforms darwin
+license OpenLDAP-2.8+
+
+set repo_url https://gitorious.org/mdb/mdb/
+master_sites ${repo_url}archive/
+checksums rmd160 4ae39e22f107a8a28ec4a95ed5a5443758c4f2f7 \
+ sha256 32ce685ccc621447f16a96e555d925802a61c115306ee983e9ff00fbc9b5fe1f
+
+patchfiles patch-Makefile.diff
+
+distname ${commit}
+
+worksrcdir mdb-mdb/libraries/liblmdb
+
+use_configure no
+
+variant universal {}
+
+build.args CC="${configure.cc}" \
+ CFLAGS="${configure.cflags} [get_canonical_archflags]"
+
+destroot.args-append prefix=${prefix}
+
+post-destroot {
+ # set install name to the library
+ set dylib ${prefix}/lib/liblmdb.dylib
+ system "install_name_tool -id ${dylib} ${destroot}${dylib}"
+
+ # install additional documents
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ CHANGES COPYRIGHT LICENSE \
+ ${destroot}${docdir}
+}
+
+livecheck.type regexm
+livecheck.version ${commit}
+livecheck.url ${repo_url}
+livecheck.regex archive/(\[0-9a-f\]*)${extract.suffix}
Added: trunk/dports/databases/lmdb/files/patch-Makefile.diff
===================================================================
--- trunk/dports/databases/lmdb/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/databases/lmdb/files/patch-Makefile.diff 2014-12-21 08:07:11 UTC (rev 129825)
@@ -0,0 +1,32 @@
+--- Makefile.orig 2014-12-20 00:46:16.000000000 +0900
++++ Makefile 2014-12-20 01:07:51.000000000 +0900
+@@ -28,7 +28,7 @@
+ ########################################################################
+
+ IHDRS = lmdb.h
+-ILIBS = liblmdb.a liblmdb.so
++ILIBS = liblmdb.a liblmdb.dylib
+ IPROGS = mdb_stat mdb_copy mdb_dump mdb_load
+ IDOCS = mdb_stat.1 mdb_copy.1 mdb_dump.1 mdb_load.1
+ PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5
+@@ -38,7 +38,7 @@
+ for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
+ for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
+ for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
+- for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
++ for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/share/man/man1; done
+
+ clean:
+ rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb
+@@ -50,9 +50,9 @@
+ liblmdb.a: mdb.o midl.o
+ ar rs $@ mdb.o midl.o
+
+-liblmdb.so: mdb.lo midl.lo
++liblmdb.dylib: mdb.lo midl.lo
+ # $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
+- $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS)
++ $(CC) $(LDFLAGS) -shared -o $@ mdb.lo midl.lo $(SOLIBS)
+
+ mdb_stat: mdb_stat.o liblmdb.a
+ mdb_copy: mdb_copy.o liblmdb.a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141221/f94dd8a0/attachment.html>
More information about the macports-changes
mailing list