dev-games/mygui: [QA] Run cmake-utils_src_prepare
authorDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 10:38:03 +0000 (11:38 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 25 Dec 2017 10:43:15 +0000 (11:43 +0100)
Closes: https://bugs.gentoo.org/639436
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-games/mygui/mygui-3.2.2.ebuild

index 60ec5b14954f1d6472d8c1ac46c8bda0e610c206..3755ef1f7122c0a9f9960f54fac2deadc88caa48 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -36,6 +36,12 @@ DEPEND="${RDEPEND}
 S=${WORKDIR}/mygui-${MY_P}
 STATIC_BUILD=${WORKDIR}/${P}_build_static
 
+PATCHES=(
+       "${FILESDIR}"/${P}-underlinking.patch
+       "${FILESDIR}"/${P}-build.patch
+       "${FILESDIR}"/${P}-FHS.patch
+)
+
 pkg_setup() {
        if use samples && use !ogre ; then
                ewarn "Samples disabled, because they only work with ogre!"
@@ -43,12 +49,6 @@ pkg_setup() {
        fi
 }
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-underlinking.patch \
-               "${FILESDIR}"/${P}-build.patch \
-               "${FILESDIR}"/${P}-FHS.patch
-}
-
 src_configure() {
        use debug && append-cppflags -DDEBUG
 
@@ -129,14 +129,14 @@ src_install() {
        fperms o+w /etc/MYGUI
 
        # test media not needed at runtime
-       rm -rf "${D}"/usr/share/MYGUI/Media/UnitTests
+       rm -rf "${ED%/}"/usr/share/MYGUI/Media/UnitTests || die
        # wrapper not available for linux, remove related media
-       rm -rf "${D}"/usr/share/MYGUI/Media/Wrapper
+       rm -rf "${ED%/}"/usr/share/MYGUI/Media/Wrapper || die
 }
 
 pkg_postinst() {
-       einfo
+       elog
        elog "ogre.cfg and Ogre.log are created as"
-       elog "/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log"
-       einfo
+       elog "${EROOT%/}/etc/MYGUI/mygui-ogre.cfg and /etc/MYGUI/mygui-Ogre.log"
+       elog
 }