re2, remove static library (#8071)

This commit is contained in:
Schrijvers Luc
2023-03-23 12:42:11 +01:00
committed by GitHub
parent 92be5c9e77
commit 0edcf67153

View File

@@ -5,7 +5,7 @@ C++ library."
HOMEPAGE="https://github.com/google/re2"
COPYRIGHT="2009-2018 The RE2 Authors"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
RE_VERSION="${portVersion//./-}"
SOURCE_URI="https://github.com/google/re2/archive/$RE_VERSION.tar.gz"
CHECKSUM_SHA256="f89c61410a072e5cbcf8c27e3a778da7d6fd2f2b5b1445cd4f4508bee946ab0f"
@@ -60,6 +60,9 @@ INSTALL()
mv $prefix/include/* $includeDir
rmdir $prefix/include
# remove static library
rm $libDir/libre2.a
echo -e "prefix=$prefix\n$(cat $libDir/pkgconfig/re2.pc)" \
> $libDir/pkgconfig/re2.pc
sed -i -e "s/\-pthread//g" $libDir/pkgconfig/re2.pc