pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/leveldb



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Mar 14 13:12:28 UTC 2017

Added Files:
        pkgsrc/databases/leveldb: DESCR Makefile PLIST buildlink3.mk distinfo
            options.mk
        pkgsrc/databases/leveldb/patches: patch-aa

Log Message:
Import leveldb-1.20 as databases/leveldb.

Packaged for wip by Mike M. Volokhov and myself.

LevelDB is a fast key-value storage library written at Google that
provides an ordered mapping from string keys to string values.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/leveldb/DESCR \
    pkgsrc/databases/leveldb/Makefile pkgsrc/databases/leveldb/PLIST \
    pkgsrc/databases/leveldb/buildlink3.mk pkgsrc/databases/leveldb/distinfo \
    pkgsrc/databases/leveldb/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/leveldb/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/databases/leveldb/DESCR
diff -u /dev/null pkgsrc/databases/leveldb/DESCR:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/DESCR      Tue Mar 14 13:12:28 2017
@@ -0,0 +1,2 @@
+LevelDB is a fast key-value storage library written at Google that
+provides an ordered mapping from string keys to string values.
Index: pkgsrc/databases/leveldb/Makefile
diff -u /dev/null pkgsrc/databases/leveldb/Makefile:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/Makefile   Tue Mar 14 13:12:28 2017
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2017/03/14 13:12:28 wiz Exp $
+
+DISTNAME=      leveldb-1.20
+CATEGORIES=    databases
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=google/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    mishka%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/google/leveldb
+COMMENT=       Fast and lightweight key/value database library by Google
+LICENSE=       modified-bsd
+
+USE_LANGUAGES+=        c c++
+USE_TOOLS+=    gmake pax
+
+INSTALLATION_DIRS+=    bin include/leveldb lib share/doc/leveldb
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+SS=            dylib
+.else
+SS=            so
+.endif
+
+MAJOR=         ${PKGVERSION_NOREV:R}
+MINOR=         ${PKGVERSION_NOREV:E}
+
+# N.B.: leveldb Darwin support follows popular Unix .so naming convention
+SS.M=          ${SS}.${MAJOR}
+SS.M.N=                ${SS}.${MAJOR}.${MINOR}
+
+PLIST_SUBST+=  SS=${SS:Q} SS.M=${SS.M:Q} SS.M.N=${SS.M.N:Q}
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/out-static/leveldbutil ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/out-static/db_bench                                \
+               ${DESTDIR}${PREFIX}/bin/leveldb_bench
+
+       ${INSTALL_LIB} ${WRKSRC}/out-static/libleveldb.a ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_LIB} ${WRKSRC}/out-shared/libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib
+       ${LN} -s libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS.M}
+       ${LN} -s libleveldb.${SS.M} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS}
+
+       ${INSTALL_DATA} ${WRKSRC}/include/leveldb/*                     \
+               ${DESTDIR}${PREFIX}/include/leveldb
+
+       cd ${WRKSRC}/doc && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/leveldb
+
+.include "options.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/leveldb/PLIST
diff -u /dev/null pkgsrc/databases/leveldb/PLIST:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/PLIST      Tue Mar 14 13:12:28 2017
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1 2017/03/14 13:12:28 wiz Exp $
+bin/leveldb_bench
+bin/leveldbutil
+include/leveldb/c.h
+include/leveldb/cache.h
+include/leveldb/comparator.h
+include/leveldb/db.h
+include/leveldb/dumpfile.h
+include/leveldb/env.h
+include/leveldb/filter_policy.h
+include/leveldb/iterator.h
+include/leveldb/options.h
+include/leveldb/slice.h
+include/leveldb/status.h
+include/leveldb/table.h
+include/leveldb/table_builder.h
+include/leveldb/write_batch.h
+lib/libleveldb.a
+lib/libleveldb.${SS}
+lib/libleveldb.${SS.M}
+lib/libleveldb.${SS.M.N}
+share/doc/leveldb/bench/db_bench_sqlite3.cc
+share/doc/leveldb/bench/db_bench_tree_db.cc
+share/doc/leveldb/benchmark.html
+share/doc/leveldb/impl.md
+share/doc/leveldb/index.md
+share/doc/leveldb/log_format.md
+share/doc/leveldb/table_format.md
Index: pkgsrc/databases/leveldb/buildlink3.mk
diff -u /dev/null pkgsrc/databases/leveldb/buildlink3.mk:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/buildlink3.mk      Tue Mar 14 13:12:28 2017
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/03/14 13:12:28 wiz Exp $
+
+BUILDLINK_TREE+=       leveldb
+
+.if !defined(LEVELDB_BUILDLINK3_MK)
+LEVELDB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.leveldb+=        leveldb>=1.5
+BUILDLINK_PKGSRCDIR.leveldb?=  ../../databases/leveldb
+.endif # LEVELDB_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -leveldb
Index: pkgsrc/databases/leveldb/distinfo
diff -u /dev/null pkgsrc/databases/leveldb/distinfo:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/distinfo   Tue Mar 14 13:12:28 2017
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/03/14 13:12:28 wiz Exp $
+
+SHA1 (leveldb-1.20.tar.gz) = df11440c30deed5987263730180225db98de9f57
+RMD160 (leveldb-1.20.tar.gz) = 9cc7db3d8c80e11659bafe02e3efe7a03f98369d
+SHA512 (leveldb-1.20.tar.gz) = c59258f2f58ce2d5680e9ab3da4ab0923d91cd4648dcf63cdaa26cdde92bf45e094544539ad11d8e09a4a4813435286143ed0e86c21c6c31a0596903ed4744d2
+Size (leveldb-1.20.tar.gz) = 223141 bytes
+SHA1 (patch-aa) = 66a727ab380538bf01f4d472cdad0eeccddff544
Index: pkgsrc/databases/leveldb/options.mk
diff -u /dev/null pkgsrc/databases/leveldb/options.mk:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/options.mk Tue Mar 14 13:12:28 2017
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2017/03/14 13:12:28 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.leveldb
+PKG_SUPPORTED_OPTIONS= snappy
+PKG_SUGGESTED_OPTIONS= snappy
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           snappy
+
+.if !empty(PKG_OPTIONS:Msnappy)
+.include "../../devel/snappy/buildlink3.mk"
+.endif

Index: pkgsrc/databases/leveldb/patches/patch-aa
diff -u /dev/null pkgsrc/databases/leveldb/patches/patch-aa:1.1
--- /dev/null   Tue Mar 14 13:12:28 2017
+++ pkgsrc/databases/leveldb/patches/patch-aa   Tue Mar 14 13:12:28 2017
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1 2017/03/14 13:12:28 wiz Exp $
+
+Try to be platform agnostic during endianness detection.
+https://code.google.com/p/leveldb/issues/detail?id=137
+
+--- port/port_posix.h.orig     2012-12-27 18:32:31.000000000 +0000
++++ port/port_posix.h
+@@ -7,6 +7,13 @@
+ #ifndef STORAGE_LEVELDB_PORT_PORT_POSIX_H_
+ #define STORAGE_LEVELDB_PORT_PORT_POSIX_H_
+ 
++#ifndef __BYTE_ORDER
++#define __BYTE_ORDER  _BYTE_ORDER
++#endif
++#ifndef __LITTLE_ENDIAN
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#endif
++
+ #undef PLATFORM_IS_LITTLE_ENDIAN
+ #if defined(OS_MACOSX)
+   #include <machine/endian.h>



Home | Main Index | Thread Index | Old Index