pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/leveldb Import leveldb-1.20 as databases/lev...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c135af03e3bf
branches: trunk
changeset: 359619:c135af03e3bf
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Mar 14 13:12:28 2017 +0000
description:
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.
diffstat:
databases/leveldb/DESCR | 2 +
databases/leveldb/Makefile | 51 ++++++++++++++++++++++++++++++++++++++
databases/leveldb/PLIST | 28 ++++++++++++++++++++
databases/leveldb/buildlink3.mk | 12 ++++++++
databases/leveldb/distinfo | 7 +++++
databases/leveldb/options.mk | 13 +++++++++
databases/leveldb/patches/patch-aa | 21 +++++++++++++++
7 files changed, 134 insertions(+), 0 deletions(-)
diffs (162 lines):
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/DESCR Tue Mar 14 13:12:28 2017 +0000
@@ -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.
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/Makefile Tue Mar 14 13:12:28 2017 +0000
@@ -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"
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/PLIST Tue Mar 14 13:12:28 2017 +0000
@@ -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
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/buildlink3.mk Tue Mar 14 13:12:28 2017 +0000
@@ -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
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/distinfo Tue Mar 14 13:12:28 2017 +0000
@@ -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
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/options.mk Tue Mar 14 13:12:28 2017 +0000
@@ -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
diff -r b1b672864346 -r c135af03e3bf databases/leveldb/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/leveldb/patches/patch-aa Tue Mar 14 13:12:28 2017 +0000
@@ -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