blob: 0887c5788d86bbf27d78a3d794557b9fe57d6464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake prefix
MY_PN="marsshooter"
MY_P="${MY_PN}-${PV}"
COMMIT="84664cda094efe6e49d9b1550e4f4f98c33eefa2"
DESCRIPTION="M.A.R.S. a ridiculous shooter"
HOMEPAGE="http://mars-game.sourceforge.net"
SRC_URI="https://github.com/thelaui/M.A.R.S./archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
DEPEND="
dev-libs/fribidi
media-libs/libsfml:=
media-libs/taglib
virtual/opengl
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/M.A.R.S.-${COMMIT}"
src_prepare() {
cmake_src_prepare
hprefixify src/System/settings.cpp
sed -i -e 's|${CMAKE_INSTALL_FULL_DATAROOTDIR}/appdata|${CMAKE_INSTALL_FULL_DATAROOTDIR}/metainfo|g' \
src/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-Dmars_DATA_DEST_DIR="${EPREFIX}/usr/share/${MY_PN}"
-Dmars_EXE_DEST_DIR="${EPREFIX}/usr/bin"
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
)
cmake_src_configure
}
|