mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
- 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)
This commit is contained in:
parent
6487af5153
commit
5dd23952db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=392435
@ -2,9 +2,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= re2
|
||||
PORTVERSION= 20140304
|
||||
PORTVERSION= 20150601
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= GOOGLE_CODE
|
||||
|
||||
MAINTAINER= jlaffaye@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>
|
||||
|
@ -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
|
||||
|
26
devel/re2/files/patch-Makefile
Normal file
26
devel/re2/files/patch-Makefile
Normal file
@ -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
|
@ -8,4 +8,4 @@ use a small fixed C++ stack footprint no matter what inputs or regular
|
||||
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
|
||||
|
@ -7,3 +7,4 @@ lib/libre2.a
|
||||
lib/libre2.so
|
||||
lib/libre2.so.0
|
||||
lib/libre2.so.0.0.0
|
||||
libdata/pkgconfig/re2.pc
|
||||
|
Loading…
Reference in New Issue
Block a user