View | Details | Raw Unified | Return to bug 254697
Collapse All | Expand All

(-)b/devel/re2/Makefile (-9 / +4 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	re2
4
PORTNAME=	re2
5
PORTVERSION=	20210202
5
PORTVERSION=	20210401
6
PORTREVISION=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
7
9
MAINTAINER=	sunpoet@FreeBSD.org
8
MAINTAINER=	sunpoet@FreeBSD.org
Lines 12-29 COMMENT= Fast C++ regex library Link Here
12
LICENSE=	BSD3CLAUSE
11
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
14
13
15
USES=		compiler:c++11-lang gmake pathfix
14
USES=		cmake compiler:c++11-lang
16
17
MAKE_ARGS=	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" SED_INPLACE="${SED} -i ''" prefix=${PREFIX}
18
USE_LDCONFIG=	yes
15
USE_LDCONFIG=	yes
19
16
20
PATHFIX_MAKEFILEIN=	Makefile
21
22
GH_ACCOUNT=	google
17
GH_ACCOUNT=	google
23
GH_TAGNAME=	${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}
18
GH_TAGNAME=	${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}
24
USE_GITHUB=	yes
19
USE_GITHUB=	yes
25
20
26
post-install:
21
CMAKE_ON=	BUILD_SHARED_LIBS
27
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libre2.so
22
CMAKE_OFF=	RE2_BUILD_TESTING
28
23
29
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)b/devel/re2/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1612466789
1
TIMESTAMP = 1617294370
2
SHA256 (google-re2-20210202-2021-02-02_GH0.tar.gz) = 1396ab50c06c1a8885fb68bf49a5ecfd989163015fd96699a180d6414937f33f
2
SHA256 (google-re2-20210401-2021-04-01_GH0.tar.gz) = 358aedf71dbf26506848905f5d4417b7adba5cf44d3bbcf70bf4ef68ccb0871e
3
SIZE (google-re2-20210202-2021-02-02_GH0.tar.gz) = 402958
3
SIZE (google-re2-20210401-2021-04-01_GH0.tar.gz) = 403354
(-)b/devel/re2/files/patch-CMakeLists.txt (+19 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2021-04-01 16:27:40 UTC
2
+++ CMakeLists.txt
3
@@ -152,6 +152,10 @@ set(RE2_HEADERS
4
     re2/stringpiece.h
5
     )
6
 
7
+set(includedir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR})
8
+set(libdir     ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
9
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/re2.pc ${CMAKE_CURRENT_BINARY_DIR}/re2.pc @ONLY)
10
+
11
 install(FILES ${RE2_HEADERS}
12
         DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/re2)
13
 install(TARGETS re2 EXPORT re2Config
14
@@ -161,3 +165,5 @@ install(TARGETS re2 EXPORT re2Config
15
         INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
16
 install(EXPORT re2Config
17
         DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/re2 NAMESPACE re2::)
18
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/re2.pc
19
+	DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig)
(-)b/devel/re2/pkg-plist (-2 / +2 lines)
Lines 2-8 include/re2/filtered_re2.h Link Here
2
include/re2/re2.h
2
include/re2/re2.h
3
include/re2/set.h
3
include/re2/set.h
4
include/re2/stringpiece.h
4
include/re2/stringpiece.h
5
lib/libre2.a
5
lib/cmake/re2/re2Config-%%CMAKE_BUILD_TYPE%%.cmake
6
lib/cmake/re2/re2Config.cmake
6
lib/libre2.so
7
lib/libre2.so
7
lib/libre2.so.9
8
lib/libre2.so.9
8
lib/libre2.so.9.0.0
9
lib/libre2.so.9.0.0
9
- 

Return to bug 254697