| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/kde-base/kreversi/kreversi-4.8.5.ebuild,v 1.4 2012/09/03 12:20:39 scarabeus Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
KDE_HANDBOOK="optional"
|
| 8 |
KMNAME="kdegames"
|
| 9 |
KDE_SELINUX_MODULE="games"
|
| 10 |
inherit games-ggz kde4-meta
|
| 11 |
|
| 12 |
DESCRIPTION="KDE Board Game"
|
| 13 |
KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
|
| 14 |
IUSE="debug"
|
| 15 |
|
| 16 |
src_prepare() {
|
| 17 |
# cmake is doing this really weird
|
| 18 |
sed -i \
|
| 19 |
-e "s:register_ggz_module:#register_ggz_module:g" \
|
| 20 |
${PN}/CMakeLists.txt || die "ggz removal failed"
|
| 21 |
|
| 22 |
kde4-meta_src_prepare
|
| 23 |
}
|
| 24 |
|
| 25 |
src_install() {
|
| 26 |
kde4-meta_src_install
|
| 27 |
# and also we have to prepare the ggz dir
|
| 28 |
insinto "${GGZ_MODDIR}"
|
| 29 |
newins ${PN}/module.dsc ${P}.dsc
|
| 30 |
}
|
| 31 |
|
| 32 |
pkg_postinst() {
|
| 33 |
kde4-meta_pkg_postinst
|
| 34 |
games-ggz_pkg_postinst
|
| 35 |
}
|
| 36 |
|
| 37 |
pkg_postrm() {
|
| 38 |
kde4-meta_pkg_postrm
|
| 39 |
games-ggz_pkg_postrm
|
| 40 |
}
|