summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-02-12 20:41:47 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-02-12 20:41:47 +0000
commitc60cc9feb124f316cdc97fb706cf0da32bd8d20d (patch)
treee9c35703c228ad7f4c76b8305f4d11ba8d28a1b1 /games-strategy
parentrevert back to our init script, bug 238278 (diff)
downloadgentoo-2-c60cc9feb124f316cdc97fb706cf0da32bd8d20d.tar.gz
gentoo-2-c60cc9feb124f316cdc97fb706cf0da32bd8d20d.tar.bz2
gentoo-2-c60cc9feb124f316cdc97fb706cf0da32bd8d20d.zip
use cmake-utils funcs
(Portage version: 2.1.6.4/cvs/Linux 2.6.28.1 i686)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/hedgewars/ChangeLog6
-rw-r--r--games-strategy/hedgewars/hedgewars-0.9.9.ebuild18
2 files changed, 14 insertions, 10 deletions
diff --git a/games-strategy/hedgewars/ChangeLog b/games-strategy/hedgewars/ChangeLog
index b52da9d1c209..0548dc1ca738 100644
--- a/games-strategy/hedgewars/ChangeLog
+++ b/games-strategy/hedgewars/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-strategy/hedgewars
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/ChangeLog,v 1.13 2009/01/29 19:58:09 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/ChangeLog,v 1.14 2009/02/12 20:41:47 mr_bones_ Exp $
+
+ 12 Feb 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ hedgewars-0.9.9.ebuild:
+ use cmake-utils funcs
*hedgewars-0.9.9 (29 Jan 2009)
diff --git a/games-strategy/hedgewars/hedgewars-0.9.9.ebuild b/games-strategy/hedgewars/hedgewars-0.9.9.ebuild
index 460a9be32781..fbb81ac0f52a 100644
--- a/games-strategy/hedgewars/hedgewars-0.9.9.ebuild
+++ b/games-strategy/hedgewars/hedgewars-0.9.9.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/hedgewars-0.9.9.ebuild,v 1.1 2009/01/29 19:58:09 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/hedgewars-0.9.9.ebuild,v 1.2 2009/02/12 20:41:47 mr_bones_ Exp $
EAPI=2
-inherit eutils games
+inherit cmake-utils eutils games
MY_P=${PN}-src-${PV}
DESCRIPTION="Free Worms-like turn based strategy game"
@@ -31,18 +31,18 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
src_configure() {
- cmake \
- -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
- -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" \
- -DDATA_INSTALL_DIR="${GAMES_DATADIR}" \
- . || die "cmake failed"
+ mycmakeargs="-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} -DDATA_INSTALL_DIR=${GAMES_DATADIR}"
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
+ DOCS="ChangeLog.txt README" cmake-utils_src_install
newicon QTfrontend/res/hh25x25.png ${PN}.png
make_desktop_entry ${PN} Hedgewars
- dodoc ChangeLog.txt README
doman man/${PN}.6
prepgamesdirs
}