[30804] trunk/dports/databases
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 7 02:11:54 PST 2007
Revision: 30804
http://trac.macosforge.org/projects/macports/changeset/30804
Author: takanori at macports.org
Date: 2007-11-07 02:11:31 -0800 (Wed, 07 Nov 2007)
Log Message:
-----------
New port: tokyocabinet
Ticket: #13179
Submitted by: rsky0711 at gmail dot com
Added Paths:
-----------
trunk/dports/databases/tokyocabinet/
trunk/dports/databases/tokyocabinet/Portfile
trunk/dports/databases/tokyocabinet/files/
trunk/dports/databases/tokyocabinet/files/patch-Makefile.in
trunk/dports/databases/tokyocabinet/files/patch-configure
Added: trunk/dports/databases/tokyocabinet/Portfile
===================================================================
--- trunk/dports/databases/tokyocabinet/Portfile (rev 0)
+++ trunk/dports/databases/tokyocabinet/Portfile 2007-11-07 10:11:31 UTC (rev 30804)
@@ -0,0 +1,70 @@
+# $Id:#
+
+PortSystem 1.0
+name tokyocabinet
+version 1.0.2
+categories databases
+maintainers rsky0711 at gmail.com
+platforms darwin
+description Tokyo Cabinet is a library of routines for managing a database.
+long_description \
+ Tokyo Cabinet is a library of routines for managing a database. The database\
+ is a simple data file containing records, each is a pair of a key and a value.\
+ Every key and value is serial bytes with variable length. Both binary data and\
+ character string can be used as a key and a value. There is neither concept of\
+ data tables nor data types. Records are organized in hash table or B+ tree.
+homepage http://tokyocabinet.sourceforge.net/
+master_sites ${homepage} \
+ sourceforge:${name}
+checksums md5 8aeb7283c7bb91ea3069920fb3ee8a36 \
+ sha1 5403071c2260b8dfe527f707cbf23f21b6a4af65 \
+ rmd160 30b9d0a088180b295f68058f3b154599958e6d0b
+
+
+depends_lib port:zlib
+
+configure.args --mandir=${prefix}/share/man \
+ --datadir=${prefix}/share/doc\
+
+platform darwin {
+ patchfiles-append patch-Makefile.in patch-configure
+}
+
+post-patch {
+ # configure
+ reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure
+ # Makefile.in
+ reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in
+}
+
+post-configure {
+ # tokyocabinet.pc
+ reinplace "s|@MYLDOPTS@||g" ${worksrcpath}/tokyocabinet.pc
+}
+
+test.run yes
+test.target check
+
+#default_variants +fastest
+
+variant debug conflicts devel profile fastest description {build for debugging} {
+ configure.args-append --enable-debug
+}
+
+variant devel conflicts debug profile fastest description {build for development} {
+ configure.args-append --enable-devel
+}
+
+variant profile conflicts debug devel fastest description {build for profiling} {
+ configure.args-append --enable-profile
+}
+
+variant fastest conflicts debug devel profile description {build for fastest run} {
+ configure.args-append --enable-fastest
+}
+
+variant swap description {build for swapping byte-orders} {
+ configure.args-append --enable-swap
+}
+
+livecheck.check sourceforge
Property changes on: trunk/dports/databases/tokyocabinet/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/databases/tokyocabinet/files/patch-Makefile.in
===================================================================
--- trunk/dports/databases/tokyocabinet/files/patch-Makefile.in (rev 0)
+++ trunk/dports/databases/tokyocabinet/files/patch-Makefile.in 2007-11-07 10:11:31 UTC (rev 30804)
@@ -0,0 +1,41 @@
+--- Makefile.in.orig 2007-10-27 17:02:07.000000000 +0900
++++ Makefile.in 2007-11-02 22:34:14.000000000 +0900
+@@ -51,8 +51,8 @@
+ CFLAGS = @MYCFLAGS@
+ LDFLAGS = @MYLDFLAGS@
+ LIBS = @LIBS@
+-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
+-RUNENV = LD_LIBRARY_PATH=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
++LDENV =
++RUNENV = DYLD_LIBRARY_PATH=.:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
+ POSTCMD = @MYPOSTCMD@
+
+
+@@ -302,17 +302,20 @@
+ $(AR) $(ARFLAGS) $@ $(LIBOBJFILES)
+
+
+-libtokyocabinet.so.$(LIBVER).$(LIBREV).0 : $(LIBOBJFILES)
+- $(CC) -shared -Wl,-soname,libtokyocabinet.so.$(LIBVER) -o $@ $(LIBOBJFILES) \
+- $(LDFLAGS) $(LIBS)
++libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib : $(LIBOBJFILES)
++ $(CC) -dynamiclib \
++ -install_name $(DESTDIR)$(LIBDIR)/libtokyocabinet.$(LIBVER).dylib \
++ -current_version $(LIBVER).$(LIBREV).0 \
++ -compatibility_version $(LIBVER) \
++ -o $@ $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
+
+
+-libtokyocabinet.so.$(LIBVER) : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
+- ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
++libtokyocabinet.$(LIBVER).dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
++ ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
+
+
+-libtokyocabinet.so : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
+- ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
++libtokyocabinet.dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
++ ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
+
+
+ tcutest : tcutest.o $(LIBRARYFILES)
Added: trunk/dports/databases/tokyocabinet/files/patch-configure
===================================================================
--- trunk/dports/databases/tokyocabinet/files/patch-configure (rev 0)
+++ trunk/dports/databases/tokyocabinet/files/patch-configure 2007-11-07 10:11:31 UTC (rev 30804)
@@ -0,0 +1,15 @@
+--- configure.orig 2007-10-23 21:44:42.000000000 +0900
++++ configure 2007-10-28 14:13:47.000000000 +0900
+@@ -2862,9 +2862,9 @@
+ # shared libraries libraries
+ if test "$enable_shared" != "no" && test "$enable_profile" != "yes"
+ then
+- MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER.$MYLIBREV.0"
+- MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER"
+- MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so"
++ MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.$MYLIBREV.0.dylib"
++ MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.dylib"
++ MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.dylib"
+ fi
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071107/c43b8220/attachment.html
More information about the macports-changes
mailing list