Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2019 15:40:08 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518247 - in head/archivers/snappy: . files
Message-ID:  <201911231540.xANFe8Pf005922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sat Nov 23 15:40:08 2019
New Revision: 518247
URL: https://svnweb.freebsd.org/changeset/ports/518247

Log:
  1: update to 1.1.7.
  2: install snappy.pc for backward compatible.
  
  PR:		227220
  Submitted by:	tcovert+freebsd@sahuagin.net

Added:
  head/archivers/snappy/files/
  head/archivers/snappy/files/snappy.pc.in   (contents, props changed)
Modified:
  head/archivers/snappy/Makefile
  head/archivers/snappy/distinfo
  head/archivers/snappy/pkg-plist

Modified: head/archivers/snappy/Makefile
==============================================================================
--- head/archivers/snappy/Makefile	Sat Nov 23 15:23:24 2019	(r518246)
+++ head/archivers/snappy/Makefile	Sat Nov 23 15:40:08 2019	(r518247)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	snappy
-PORTVERSION=	1.1.6
-PORTREVISION=	1
+PORTVERSION=	1.1.7
 CATEGORIES=	archivers
 
 MAINTAINER=	vanilla@FreeBSD.org
@@ -11,18 +10,19 @@ COMMENT=	Fast compressor/decompressor library
 
 LICENSE=	BSD3CLAUSE
 
-USES=		autoreconf compiler:c++11-lang libtool pathfix pkgconfig
-CONFIGURE_ARGS=	--disable-gtest
-GNU_CONFIGURE=	yes
+USES=		cmake compiler:c++11-lang
 USE_LDCONFIG=	yes
-CFLAGS+=	-DNDEBUG
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_OFF=	SNAPPY_BUILD_TESTS
+CMAKE_BUILD_TYPE=	Release
 USE_GITHUB=	yes
 GH_ACCOUNT=	google
-TEST_TARGET=	check
+PLIST_SUB+=	PORTVERSION=${PORTVERSION}
+SUB_FILES+=	snappy.pc
+SUB_LIST+=	PORTVERSION=${PORTVERSION}
 
-OPTIONS_DEFINE=	DOCS
-
 post-install:
-	@${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.1.1.6
+	@${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.${PORTVERSION}
+	${INSTALL_DATA} ${WRKDIR}/snappy.pc ${STAGEDIR}${LOCALBASE}/libdata/pkgconfig
 
 .include <bsd.port.mk>

Modified: head/archivers/snappy/distinfo
==============================================================================
--- head/archivers/snappy/distinfo	Sat Nov 23 15:23:24 2019	(r518246)
+++ head/archivers/snappy/distinfo	Sat Nov 23 15:40:08 2019	(r518247)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1501830268
-SHA256 (google-snappy-1.1.6_GH0.tar.gz) = 6fa92cde5b2caefd0d9a60336991ba42e5a7ddc3bdc36c5610451373751d0495
-SIZE (google-snappy-1.1.6_GH0.tar.gz) = 1128388
+TIMESTAMP = 1534410160
+SHA256 (google-snappy-1.1.7_GH0.tar.gz) = 3dfa02e873ff51a11ee02b9ca391807f0c8ea0529a4924afa645fbf97163f9d4
+SIZE (google-snappy-1.1.7_GH0.tar.gz) = 1090550

Added: head/archivers/snappy/files/snappy.pc.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/snappy/files/snappy.pc.in	Sat Nov 23 15:40:08 2019	(r518247)
@@ -0,0 +1,10 @@
+prefix=%%PREFIX%%
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: snappy
+Description: A fast compression/decompression library
+Version: %%PORTVERSION%%
+Libs: -L${libdir} -lsnappy
+Cflags: -I${includedir}

Modified: head/archivers/snappy/pkg-plist
==============================================================================
--- head/archivers/snappy/pkg-plist	Sat Nov 23 15:23:24 2019	(r518246)
+++ head/archivers/snappy/pkg-plist	Sat Nov 23 15:40:08 2019	(r518247)
@@ -2,15 +2,11 @@ include/snappy-c.h
 include/snappy-sinksource.h
 include/snappy-stubs-public.h
 include/snappy.h
-lib/libsnappy.a
+lib/cmake/Snappy/SnappyConfig.cmake
+lib/cmake/Snappy/SnappyConfigVersion.cmake
+lib/cmake/Snappy/SnappyTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Snappy/SnappyTargets.cmake
 lib/libsnappy.so
 lib/libsnappy.so.1
-lib/libsnappy.so.1.1.6
+lib/libsnappy.so.%%PORTVERSION%%
 libdata/pkgconfig/snappy.pc
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/format_description.txt
-%%PORTDOCS%%%%DOCSDIR%%/framing_format.txt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911231540.xANFe8Pf005922>