games-arcade/performous: fix building with USE=tools by further commiting to use...
authorMichael Sterrett <mr_bones_@gentoo.org>
Mon, 16 May 2016 15:53:41 +0000 (11:53 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Mon, 16 May 2016 15:54:30 +0000 (11:54 -0400)
Package-Manager: portage-2.2.28

games-arcade/performous/performous-1.0.ebuild
games-arcade/performous/performous-1.1.ebuild

index 9fa6cdf80dacac1290703e0a1c5d49ac32e3d169..fbdaa56aeedf708b6d6e67b560a8a78c76d2ce87 100644 (file)
@@ -66,9 +66,11 @@ src_prepare() {
        sed -i \
                -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
                -e '/ Z /s/ Z / ZLIB /' \
+               -e 's/Z_FOUND/ZLIB_FOUND/g' \
+               -e 's/Z_LIBRARIES/ZLIB_LIBRARIES/g' \
                -e 's/Jpeg/JPEG/' \
                -e 's/Png/PNG/' \
-               game/CMakeLists.txt || die
+               {game,tools}/CMakeLists.txt || die
 
        strip-linguas -u lang
 }
index 9d54a662e18e6fd687bfdc4d6fd0f236eab7d510..1fcd585c42afb0c0cefc9e6c51d7608d87f5e7f0 100644 (file)
@@ -63,10 +63,12 @@ src_prepare() {
                "${FILESDIR}"/${P}-linguas.patch
        sed -i \
                -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
-               -e '/ Z /s/ Z / ZLIB /' \
+               -e '/ Z /s/ Z/ ZLIB/g' \
+               -e 's/Z_FOUND/ZLIB_FOUND/g' \
+               -e 's/Z_LIBRARIES/ZLIB_LIBRARIES/g' \
                -e 's/Jpeg/JPEG/' \
                -e 's/Png/PNG/' \
-               game/CMakeLists.txt || die
+               {game,tools}/CMakeLists.txt || die
 
        strip-linguas -u lang
 }