dev-libs/zziplib: fix pkgconfig location

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-04-28 03:26:27 +01:00
parent 1520094cb6
commit 7228e48069
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
https://github.com/gdraheim/zziplib/commit/4b2b33f379e508a41a9e43009db921866955a02f#diff-01635cf996d8145e5ff10b21b8f04bcc57377a750cb77d4107086dbdb2c67b05R307
--- a/zzip/CMakeLists.txt
+++ b/zzip/CMakeLists.txt
@@ -304,7 +304,7 @@ set(outdir ${CMAKE_CURRENT_BINARY_DIR})
if(ZZIP_PKGCONFIG)
install(FILES ${outdir}/zziplib.pc ${outdir}/zzipmmapped.pc ${outdir}/zzipfseeko.pc
- DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" )
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" )
endif()
install(FILES ${libzzip_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/zzip )

View File

@@ -40,6 +40,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-0.13.79-cmake-pkgconfig-libdir.patch
)
src_prepare() {
# This test assumes being built with automake (checks for .libs/x).
sed -i -e 's/test_81000_zzshowme_check_sfx/skip_&/' test/zziptests.py || die