/[gentoo-x86]/kde-base/knavalbattle/knavalbattle-4.9.3.ebuild
Gentoo

Diff of /kde-base/knavalbattle/knavalbattle-4.9.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/kde-base/knavalbattle/Attic/knavalbattle-4.9.3.ebuild,v 1.1 2012/11/08 23:26:59 creffett Exp $ 3# $Header: /var/cvsroot/gentoo-x86/kde-base/knavalbattle/Attic/knavalbattle-4.9.3.ebuild,v 1.2 2012/11/13 18:05:39 kensington Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [[ ${PV} == *9999 ]]; then 7if [[ ${PV} == *9999 ]]; then
8 eclass="kde4-base" 8 eclass="kde4-base"
9else 9else
10 eclass="kde4-meta" 10 eclass="kde4-meta"
11 KMNAME="kdegames" 11 KMNAME="kdegames"
12fi 12fi
13KDE_HANDBOOK="optional" 13KDE_HANDBOOK="optional"
14inherit games-ggz ${eclass} 14inherit ${eclass}
15 15
16DESCRIPTION="The KDE Battleship clone" 16DESCRIPTION="The KDE Battleship clone"
17KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" 17KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18IUSE="debug" 18IUSE="debug"
19 19
20DEPEND="$(add_kdebase_dep libkdegames)" 20DEPEND="$(add_kdebase_dep libkdegames)"
21RDEPEND="${DEPEND}" 21RDEPEND="${DEPEND}"
22 22
23add_blocker kbattleship 23add_blocker kbattleship
24
25src_prepare() {
26 # cmake is doing this really weird
27 if [[ ${PV} == *9999 ]]; then
28 sed -i \
29 -e "s:register_ggz_module:#register_ggz_module:g" \
30 src/CMakeLists.txt || die "ggz removal failed"
31 else
32 sed -i \
33 -e "s:register_ggz_module:#register_ggz_module:g" \
34 "${PN}"/src/CMakeLists.txt || die "ggz removal failed"
35 fi
36
37 ${eclass}_src_prepare
38}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20