- Update to 20170301

- Strip shared library in post-install

PR:		218368
Submitted by:	sunpoet
This commit is contained in:
Julien Laffaye 2017-04-07 14:12:20 +00:00
parent 9e6c772c19
commit 9cc9b58b08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437925
4 changed files with 9 additions and 34 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= re2
PORTVERSION= 20151101
PORTREVISION= 1
PORTVERSION= 20170301
CATEGORIES= devel
MAINTAINER= jlaffaye@FreeBSD.org
@ -11,15 +10,17 @@ COMMENT= Fast C++ regex library
LICENSE= BSD3CLAUSE
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" prefix=${PREFIX}
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" SED_INPLACE="${SED} -i ''" prefix=${PREFIX}
USE_LDCONFIG= yes
USES= compiler:c++11-lang gmake pathfix
PATHFIX_MAKEFILEIN= Makefile
GH_ACCOUNT= google
GH_TAGNAME= ${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}
USE_GITHUB= yes
post-build:
@${STRIP_CMD} ${WRKSRC}/obj/so/libre2.so
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libre2.so
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (google-re2-20151101-2015-11-01_GH0.tar.gz) = 4aeca04541b63af1e38682b20440fcde2207a4a8a04466359dd113c8a7d4657e
SIZE (google-re2-20151101-2015-11-01_GH0.tar.gz) = 390537
TIMESTAMP = 1491311008
SHA256 (google-re2-20170301-2017-03-01_GH0.tar.gz) = 19db0b87bdc22e7e4c66af17f3170167a1b9cb9e32fd6b26189157f1336b73e8
SIZE (google-re2-20170301-2017-03-01_GH0.tar.gz) = 382241

View File

@ -1,26 +0,0 @@
--- Makefile.orig 2015-08-01 03:10:18 UTC
+++ Makefile
@@ -23,6 +23,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
@@ -258,13 +259,13 @@ shared-bigtest: $(STESTS) $(SBIGTESTS)
benchmark: obj/test/regexp_benchmark
install: obj/libre2.a obj/so/libre2.$(SOEXT)
- 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.$(SOEXT) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER00)
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER)
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXT)
- 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

View File

@ -2,7 +2,6 @@ include/re2/filtered_re2.h
include/re2/re2.h
include/re2/set.h
include/re2/stringpiece.h
include/re2/variadic_function.h
lib/libre2.a
lib/libre2.so
lib/libre2.so.0