summaryrefslogtreecommitdiff
path: root/packaging/gentoo/tuxanci-9999.ebuild
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-02-19 15:31:13 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2009-02-19 15:31:13 +0100
commit933d44841ed4e85e03c930df95c1ef39c19fe95c (patch)
tree226417defd77e3d787f7e13091270668d24d72e0 /packaging/gentoo/tuxanci-9999.ebuild
parent0afd9923e7124158baf7f28203682dc7a15a74ef (diff)
Update gentoo ebuild correctly.
Diffstat (limited to 'packaging/gentoo/tuxanci-9999.ebuild')
-rw-r--r--packaging/gentoo/tuxanci-9999.ebuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/packaging/gentoo/tuxanci-9999.ebuild b/packaging/gentoo/tuxanci-9999.ebuild
index 778f8e4..773ded1 100644
--- a/packaging/gentoo/tuxanci-9999.ebuild
+++ b/packaging/gentoo/tuxanci-9999.ebuild
@@ -33,17 +33,18 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"/"${PN}"
src_configure() {
- local mycmakeargs
- use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1"
- use debug && mycmakeargs="${mycmakeargs} -DDebug=1"
- use dedicated && mycmakeargs="${mycmakeargs} -DServer=1"
- use nls || mycmakeargs="${mycmakeargs} -DNO_NLS=1"
- use opengl || mycmakeargs="${mycmakeargs} -DNO_OPENGL=1"
- mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}
+ local mycmakeargs="$(cmake-utils_use_with alsa AUDIO)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_with dedicated SERVER)
+ $(cmake-utils_use_with nls NLS)
+ $(cmake-utils_use_with opengl OPENGL)"
+ mycmakeargs="${mycmakeargs}
+ -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}
-DCMAKE_DATA_PATH=${GAMES_DATADIR}
-DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/
-DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/${PF}
- -DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR} -DLIB_INSTALL_DIR=$(games_get_libdir)"
+ -DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR}
+ -DLIB_INSTALL_DIR=$(games_get_libdir)"
cmake-utils_src_configure
}