svn commit: r392435 - in head/devel/re2: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Jul 18 17:06:28 UTC 2015


Author: sunpoet
Date: Sat Jul 18 17:06:25 2015
New Revision: 392435
URL: https://svnweb.freebsd.org/changeset/ports/392435

Log:
  - Update to 20150601
  - Use USE_GITHUB
  - Cleanup Makefile
  - Update WWW
  
  Changes:	https://github.com/google/re2/commits/master
  PR:		201159
  Submitted by:	sunpoet (myself)
  Approved by:	maintainer (timeout, 20 days)

Added:
  head/devel/re2/files/
  head/devel/re2/files/patch-Makefile   (contents, props changed)
Modified:
  head/devel/re2/Makefile
  head/devel/re2/distinfo
  head/devel/re2/pkg-descr
  head/devel/re2/pkg-plist

Modified: head/devel/re2/Makefile
==============================================================================
--- head/devel/re2/Makefile	Sat Jul 18 17:06:09 2015	(r392434)
+++ head/devel/re2/Makefile	Sat Jul 18 17:06:25 2015	(r392435)
@@ -2,9 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	re2
-PORTVERSION=	20140304
+PORTVERSION=	20150601
 CATEGORIES=	devel
-MASTER_SITES=	GOOGLE_CODE
 
 MAINTAINER=	jlaffaye at FreeBSD.org
 COMMENT=	Fast C++ regex library
@@ -13,19 +12,13 @@ LICENSE=	BSD3CLAUSE
 
 MAKE_ARGS=	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" prefix=${PREFIX}
 USE_LDCONFIG=	yes
-USES=		compiler:c++11-lang gmake tar:tgz
+USES=		compiler:c++11-lang gmake pathfix
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-.include <bsd.port.pre.mk>
-
-post-patch:
-# remove tr1 if using libc++
-.if ${COMPILER_FEATURES:Mlibc++}
-	@${REINPLACE_CMD} -e 's|tr1/||; s|tr1::||' ${WRKSRC}/util/util.h
-.endif
+GH_ACCOUNT=	google
+GH_TAGNAME=	${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}
+USE_GITHUB=	yes
 
 post-build:
 	@${STRIP_CMD} ${WRKSRC}/obj/so/libre2.so
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/re2/distinfo
==============================================================================
--- head/devel/re2/distinfo	Sat Jul 18 17:06:09 2015	(r392434)
+++ head/devel/re2/distinfo	Sat Jul 18 17:06:25 2015	(r392435)
@@ -1,2 +1,2 @@
-SHA256 (re2-20140304.tgz) = 0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7
-SIZE (re2-20140304.tgz) = 1050493
+SHA256 (google-re2-20150601-2015-06-01_GH0.tar.gz) = 90b4f48c26b1f33f4df5f86406d8c663c8a44b103a5554387ce3c53228abf20e
+SIZE (google-re2-20150601-2015-06-01_GH0.tar.gz) = 385441

Added: head/devel/re2/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/re2/files/patch-Makefile	Sat Jul 18 17:06:25 2015	(r392435)
@@ -0,0 +1,26 @@
+--- Makefile.orig	2015-05-29 02:13:42 UTC
++++ Makefile
+@@ -25,6 +25,7 @@ exec_prefix=$(prefix)
+ bindir=$(exec_prefix)/bin
+ includedir=$(prefix)/include
+ libdir=$(exec_prefix)/lib
++libdatadir=$(exec_prefix)/libdata
+ INSTALL=install
+ INSTALL_PROGRAM=$(INSTALL)
+ INSTALL_DATA=$(INSTALL) -m 644
+@@ -245,13 +246,13 @@ shared-bigtest: $(STESTS) $(SBIGTESTS)
+ benchmark: obj/test/regexp_benchmark
+ 
+ install: obj/libre2.a obj/so/libre2.so
+-	mkdir -p $(DESTDIR)$(includedir)/re2 $(DESTDIR)$(libdir)/pkgconfig
++	mkdir -p $(DESTDIR)$(includedir)/re2 $(DESTDIR)$(libdatadir)/pkgconfig
+ 	$(INSTALL_DATA) $(INSTALL_HFILES) $(DESTDIR)$(includedir)/re2
+ 	$(INSTALL) obj/libre2.a $(DESTDIR)$(libdir)/libre2.a
+ 	$(INSTALL) obj/so/libre2.so $(DESTDIR)$(libdir)/libre2.so.$(SONAME).0.0
+ 	ln -sf libre2.so.$(SONAME).0.0 $(DESTDIR)$(libdir)/libre2.so.$(SONAME)
+ 	ln -sf libre2.so.$(SONAME).0.0 $(DESTDIR)$(libdir)/libre2.so
+-	sed -e "s#@prefix@#${prefix}#" re2.pc >$(DESTDIR)$(libdir)/pkgconfig/re2.pc
++	sed -e "s#@prefix@#${prefix}#" re2.pc >$(DESTDIR)$(libdatadir)/pkgconfig/re2.pc
+ 
+ testinstall:
+ 	@mkdir -p obj

Modified: head/devel/re2/pkg-descr
==============================================================================
--- head/devel/re2/pkg-descr	Sat Jul 18 17:06:09 2015	(r392434)
+++ head/devel/re2/pkg-descr	Sat Jul 18 17:06:25 2015	(r392435)
@@ -8,4 +8,4 @@ use a small fixed C++ stack footprint no
 expressions it must process; thus RE2 is useful in multithreaded environments
 where thread stacks cannot grow arbitrarily large.
 
-WWW: http://code.google.com/p/re2/
+WWW: https://github.com/google/re2

Modified: head/devel/re2/pkg-plist
==============================================================================
--- head/devel/re2/pkg-plist	Sat Jul 18 17:06:09 2015	(r392434)
+++ head/devel/re2/pkg-plist	Sat Jul 18 17:06:25 2015	(r392435)
@@ -7,3 +7,4 @@ lib/libre2.a
 lib/libre2.so
 lib/libre2.so.0
 lib/libre2.so.0.0.0
+libdata/pkgconfig/re2.pc


More information about the svn-ports-all mailing list