Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/arx-libertatis/
Date: Sun, 14 Oct 2018 23:36:29
Message-Id: 1539560171.84173de27fa7179c6dbbb9f18927363162f8891e.asturm@gentoo
1 commit: 84173de27fa7179c6dbbb9f18927363162f8891e
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 23:26:00 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 23:36:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84173de2
7
8 games-rpg/arx-libertatis: EAPI-6 bump, drop games.eclass
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 .../arx-libertatis/arx-libertatis-1.1.2-r2.ebuild | 83 ++++++++++++++++++++++
14 1 file changed, 83 insertions(+)
15
16 diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.2-r2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.1.2-r2.ebuild
17 new file mode 100644
18 index 00000000000..5d5f2d64dac
19 --- /dev/null
20 +++ b/games-rpg/arx-libertatis/arx-libertatis-1.1.2-r2.ebuild
21 @@ -0,0 +1,83 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +CMAKE_WARN_UNUSED_CLI=yes
28 +inherit cmake-utils gnome2-utils
29 +
30 +DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
31 +HOMEPAGE="https://arx-libertatis.org/"
32 +SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="c++0x crash-reporter debug static tools +unity-build"
38 +
39 +COMMON_DEPEND="
40 + media-libs/freetype
41 + media-libs/libsdl[X,video,opengl]
42 + media-libs/openal
43 + sys-libs/zlib
44 + virtual/opengl
45 + crash-reporter? (
46 + dev-qt/qtcore:5
47 + dev-qt/qtgui:5
48 + dev-qt/qtnetwork:5[ssl]
49 + dev-qt/qtwidgets:5
50 + )
51 + !static? ( media-libs/glew:= )"
52 +RDEPEND="${COMMON_DEPEND}
53 + crash-reporter? ( sys-devel/gdb )"
54 +DEPEND="${COMMON_DEPEND}
55 + dev-libs/boost
56 + virtual/pkgconfig
57 + static? ( media-libs/glew[static-libs] )"
58 +
59 +DOCS=( README.md AUTHORS CHANGELOG )
60 +
61 +PATCHES=( "${FILESDIR}"/${P}-cmake-3.5.patch )
62 +
63 +src_configure() {
64 + # editor does not build
65 + local mycmakeargs=(
66 + -DBUILD_EDITOR=OFF
67 + -DBUILD_TOOLS=$(usex tools)
68 + -DDEBUG=$(usex debug)
69 + -DICONDIR=/usr/share/icons/hicolor/128x128/apps
70 + -DINSTALL_SCRIPTS=ON
71 + -DSET_OPTIMIZATION_FLAGS=OFF
72 + -DSTRICT_USE=ON
73 + -DUNITY_BUILD=$(usex unity-build)
74 + -DUSE_CXX11=$(usex c++0x)
75 + -DUSE_NATIVE_FS=ON
76 + -DUSE_OPENAL=ON
77 + -DUSE_OPENGL=ON
78 + -DUSE_SDL=ON
79 + -DBUILD_CRASHREPORTER=$(usex crash-reporter)
80 + $(usex crash-reporter "-DUSE_QT5=ON" "")
81 + -DUSE_STATIC_LIBS=$(usex static)
82 + )
83 +
84 + cmake-utils_src_configure
85 +}
86 +
87 +pkg_postinst() {
88 + elog "optional dependencies:"
89 + elog " games-rpg/arx-fatalis-data (from CD or GOG)"
90 + elog " games-rpg/arx-fatalis-demo (free demo)"
91 + elog
92 + elog "This package only installs the game binary."
93 + elog "You need the demo or full game data. Also see:"
94 + elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
95 + elog
96 + elog "If you have already installed the game or use the STEAM version,"
97 + elog "run \"/usr/bin/arx-install-data\""
98 +
99 + gnome2_icon_cache_update
100 +}
101 +
102 +pkg_postrm() {
103 + gnome2_icon_cache_update
104 +}