games-action/trine-bin: use QA_PREBUILT and usex
authorMichael Sterrett <mr_bones_@gentoo.org>
Wed, 13 Jan 2016 19:35:54 +0000 (14:35 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Wed, 13 Jan 2016 20:52:34 +0000 (15:52 -0500)
Package-Manager: portage-2.2.26

games-action/trine-bin/Manifest
games-action/trine-bin/trine-bin-1.08.ebuild

index 7fc382041eed3fbb310ccaf56bd93d6ea51cde5f..0362ae96dbc3f94ae94f48c28c2551bc3414c6dd 100644 (file)
@@ -1 +1 @@
-DIST Trine.64.run 648471997 SHA256 1c9067cb19e3c954b460b4df27e6ca5d80b31c7ead49bd5779dcbce5528177db
+DIST Trine.64.run 648471997 SHA256 1c9067cb19e3c954b460b4df27e6ca5d80b31c7ead49bd5779dcbce5528177db SHA512 400200a3ebc6003545df460f9a8af7fe4f6f370655432c66ca8a5ceb10e40bf205e81f70cfbe3fe7386de9ec0aeb5e23f02590776c2b0f35a32f9fbc1012ea3a WHIRLPOOL b6610f53e8e4079383de9a664b8cb019fbe9daa7cdbb204116c3e34b27327325dfdc39649185076524429f8ba2fc1a0889f9006e6873db65c3f73784f440e1e9
index a4d3d63715f197db5d3489613d216907ee47fab1..f05fbc40450393f7a9cb1e1b15d4293ff5d3dd33 100644 (file)
@@ -9,7 +9,7 @@
 # the same zip appended, so only need to hash one of them.
 
 EAPI=5
-inherit unpacker games eutils
+inherit unpacker eutils games
 
 DESCRIPTION="a physics-based action game where diff characters allow diff solutions to challenges"
 HOMEPAGE="http://trine-thegame.com/"
@@ -30,8 +30,7 @@ RDEPEND=">=sys-libs/glibc-2.4
 S=${WORKDIR}
 
 d=${GAMES_PREFIX_OPT}/${PN}
-QA_PRESTRIPPED="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*"
-QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`"
+QA_PREBUILT="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*"
 
 pkg_nofetch() {
        einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
@@ -46,7 +45,7 @@ src_unpack() {
 
 src_install() {
        local b bb
-       local sfx=$(use x86 && echo 32 || echo 64)
+       local sfx=$(usex x86 32 64)
 
        doicon Trine.xpm
        for b in bin launcher ; do