dev-libs/libxlsxwriter: fixes pkg-config file ver

The problem is now fixed in upstream. I added a patch
to apply those changes until a new relese.

Closes: https://bugs.gentoo.org/859745
Signed-off-by: Dex Conner <cantcuckthis@danwin1210.de>
This commit is contained in:
Dex Conner
2022-07-22 05:51:15 -04:00
parent 46e0ac4b6c
commit 47e458fd20
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -202,9 +202,9 @@
# Configure pkg-config
file(READ "include/xlsxwriter.h" ver)
-string(REGEX MATCH "LXW_VERSION .*\"\(.*\)\".*" _ ${ver})
+string(REGEX MATCH "LXW_VERSION \"([^\"]+)\"" _ ${ver})
set(VERSION ${CMAKE_MATCH_1})
-string(REGEX MATCH "LXW_SOVERSION .*\"\(.*\)\".*" _ ${ver})
+string(REGEX MATCH "LXW_SOVERSION \"([^\"]+)\"" _ ${ver})
set(SOVERSION ${CMAKE_MATCH_1})
set(PREFIX ${CMAKE_INSTALL_PREFIX})

View File

@@ -20,6 +20,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fix-pkgconfig-version.patch
)
src_configure() {
DOUBLEFUNCTION=OFF
for x in $(plocale_get_locales); do