aboutsummaryrefslogtreecommitdiffstats
path: root/databases/leveldb
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-09-16 01:40:41 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-09-16 01:40:41 +0800
commit9d889802142a7f3a5a1d8302ffccaf0f643f024d (patch)
tree60c2b835f7baa98df38881bc8599611e244b90c2 /databases/leveldb
parent981834dc6d2748f13021134de6e75da399d452a9 (diff)
downloadfreebsd-ports-gnome-9d889802142a7f3a5a1d8302ffccaf0f643f024d.tar.gz
freebsd-ports-gnome-9d889802142a7f3a5a1d8302ffccaf0f643f024d.tar.zst
freebsd-ports-gnome-9d889802142a7f3a5a1d8302ffccaf0f643f024d.zip
- Change upstream to GitHub
- Use ECHO_CMD
Diffstat (limited to 'databases/leveldb')
-rw-r--r--databases/leveldb/Makefile11
-rw-r--r--databases/leveldb/distinfo4
2 files changed, 10 insertions, 5 deletions
diff --git a/databases/leveldb/Makefile b/databases/leveldb/Makefile
index 6bd1febd19e1..3af16aeb76d4 100644
--- a/databases/leveldb/Makefile
+++ b/databases/leveldb/Makefile
@@ -4,7 +4,6 @@
PORTNAME= leveldb
PORTVERSION= 1.17
CATEGORIES= databases
-MASTER_SITES= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Fast and lightweight key/value database library by Google
@@ -16,7 +15,7 @@ OPTIONS_DEFAULT=SNAPPY
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
-USES= gmake tar:xz
+USES= gmake
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR} \
SHLIB_MINOR=${SHLIB_MINOR}
@@ -27,6 +26,12 @@ NOT_FOR_ARCHS_REASON= not yet ported to this platform
SHLIB_MAJOR= ${PORTVERSION:R}
SHLIB_MINOR= ${PORTVERSION:E}
+USE_GITHUB= yes
+GH_ACCOUNT= google
+GH_COMMIT= e353fbc
+GH_PROJECT= ${PORTNAME}
+GH_TAGNAME= v${PORTVERSION}
+
GPERFTOOLS_LIB_DEPENDS= libtcmalloc.so:${PORTSDIR}/devel/google-perftools
SNAPPY_LIB_DEPENDS= libsnappy.so:${PORTSDIR}/archivers/snappy
@@ -61,7 +66,7 @@ do-install:
${LN} -fs libmemenv.so.${SHLIB_MAJOR} ${STAGEDIR}${PREFIX}/lib/libmemenv.so
${LN} -fs libmemenv.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libmemenv.so.${SHLIB_MAJOR}
# backward compatibility
- ${ECHO} "SNAPPY=${SNAPPY}" >> ${WRKSRC}/build_config.mk
+ ${ECHO_CMD} "SNAPPY=${SNAPPY}" >> ${WRKSRC}/build_config.mk
${GREP} '^PLATFORM_CXXFLAGS=' ${WRKSRC}/build_config.mk | ${SED} 's|PLATFORM_CXXFLAGS|PORT_CFLAGS|' >> ${WRKSRC}/build_config.mk
${GREP} '^PLATFORM_CXXFLAGS=' ${WRKSRC}/build_config.mk | ${SED} 's|PLATFORM_CXXFLAGS|PLATFORM_CFLAGS|' >> ${WRKSRC}/build_config.mk
${INSTALL_DATA} ${WRKSRC}/build_config.mk ${STAGEDIR}${DATADIR}/
diff --git a/databases/leveldb/distinfo b/databases/leveldb/distinfo
index de0260df7694..e9ace89a0af7 100644
--- a/databases/leveldb/distinfo
+++ b/databases/leveldb/distinfo
@@ -1,2 +1,2 @@
-SHA256 (leveldb-1.17.tar.xz) = 3d9840d9cf1bde548bd2af55f565fc87adea38fe54681e04de5a463884e14ef8
-SIZE (leveldb-1.17.tar.xz) = 160896
+SHA256 (leveldb-1.17.tar.gz) = df38f890e0ba5e8f746e33a15151f1fbc580210b61b94025dfef574543ed2d35
+SIZE (leveldb-1.17.tar.gz) = 205828