summaryrefslogtreecommitdiff
path: root/packaging/gentoo
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/gentoo')
-rw-r--r--packaging/gentoo/tuxanci-9999.ebuild17
1 files changed, 1 insertions, 16 deletions
diff --git a/packaging/gentoo/tuxanci-9999.ebuild b/packaging/gentoo/tuxanci-9999.ebuild
index 2255c0f..a05cbaa 100644
--- a/packaging/gentoo/tuxanci-9999.ebuild
+++ b/packaging/gentoo/tuxanci-9999.ebuild
@@ -26,26 +26,11 @@ DEPEND="!dedicated? (
S="${WORKDIR}"/"${PN}"
-src_unpack() {
- subversion_src_unpack
- cd "${S}"
- # setting proper prefix
- sed -i \
- -e "s:PATH_DIR\tPREFIX:PATH_DIR:" src/base/path.h \
- || die "sed config.h failed!"
- sed -i \
- -e "s:share/tuxanci:"${GAMES_DATADIR}"/"${PN}":" src/base/path.h \
- || die "sed config.h failed!"
- sed -i \
- -e "s:CMAKE_INSTALL_DATADIR share/:CMAKE_INSTALL_DATADIR /usr/share/games/:" CMakeLists.txt \
- || die "sed CMakeLists.txt failed!"
-}
-
src_compile() {
local mycmakeargs
use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1"
use dedicated && mycmakeargs="${mycmakeargs} -DServer=1"
- mycmakeargs="${mycmakeargs} -DPREFIX=\\\"/usr/games\\\" -DCMAKE_INSTALL_PREFIX:PATH=/usr/games"
+ mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=/usr/games -DCMAKE_DATA_PATH=/usr/share/games/"
cmake-utils_src_compile
}