Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, games-util/slade/files/, games-util/slade/
Date: Tue, 01 Dec 2020 13:23:21
Message-Id: 1606828988.42cc080b30071bc9a1cf866fe932e4619a726065.marecki@gentoo
1 commit: 42cc080b30071bc9a1cf866fe932e4619a726065
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 13:22:28 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 13:23:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42cc080b
7
8 games-util/slade: migrate to lua-single.eclass
9
10 Nothing special, just the usual CMake find_package(Lua) hackery.
11
12 Closes: https://bugs.gentoo.org/752732
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 .../files/slade-3.1.12a-cmake-lua-version.patch | 11 ++++
16 games-util/slade/slade-3.1.12a-r100.ebuild | 72 ++++++++++++++++++++++
17 profiles/package.mask | 1 +
18 3 files changed, 84 insertions(+)
19
20 diff --git a/games-util/slade/files/slade-3.1.12a-cmake-lua-version.patch b/games-util/slade/files/slade-3.1.12a-cmake-lua-version.patch
21 new file mode 100644
22 index 00000000000..ba7fba329c9
23 --- /dev/null
24 +++ b/games-util/slade/files/slade-3.1.12a-cmake-lua-version.patch
25 @@ -0,0 +1,11 @@
26 +--- a/src/CMakeLists.txt
27 ++++ b/src/CMakeLists.txt
28 +@@ -104,7 +104,7 @@
29 + find_package(OpenGL REQUIRED)
30 + find_package(GLEW REQUIRED)
31 + find_package(CURL REQUIRED)
32 +-find_package(Lua REQUIRED)
33 ++find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
34 + pkg_check_modules(DUMB REQUIRED dumb>=1.0)
35 + include_directories(
36 + ${FREEIMAGE_INCLUDE_DIR}
37
38 diff --git a/games-util/slade/slade-3.1.12a-r100.ebuild b/games-util/slade/slade-3.1.12a-r100.ebuild
39 new file mode 100644
40 index 00000000000..da73f5e0060
41 --- /dev/null
42 +++ b/games-util/slade/slade-3.1.12a-r100.ebuild
43 @@ -0,0 +1,72 @@
44 +# Copyright 1999-2020 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +
49 +LUA_COMPAT=( lua5-{1..3} )
50 +WX_GTK_VER="3.0-gtk3"
51 +
52 +inherit cmake lua-single wxwidgets
53 +
54 +DESCRIPTION="Modern editor for Doom-engine based games and source ports"
55 +HOMEPAGE="https://slade.mancubus.net/"
56 +SRC_URI="https://github.com/sirjuddington/${PN^^}/archive/${PV}.tar.gz -> ${P}.tar.gz"
57 +LICENSE="GPL-2 MIT"
58 +SLOT="0"
59 +KEYWORDS="~amd64"
60 +IUSE="fluidsynth timidity webkit"
61 +
62 +REQUIRED_USE="${LUA_REQUIRED_USE}"
63 +
64 +DEPEND="${LUA_DEPS}
65 + app-arch/bzip2:=
66 + >=media-libs/dumb-2:=
67 + media-libs/freeimage[jpeg,png,tiff]
68 + media-libs/glew:0=
69 + media-libs/libsfml:=
70 + net-misc/curl
71 + sys-libs/zlib
72 + x11-libs/wxGTK:${WX_GTK_VER}[gstreamer,opengl,webkit?,X]
73 + fluidsynth? ( media-sound/fluidsynth:= )
74 +"
75 +
76 +RDEPEND="
77 + ${DEPEND}
78 + timidity? ( media-sound/timidity++ )
79 +"
80 +
81 +BDEPEND="
82 + app-arch/p7zip
83 + virtual/pkgconfig
84 +"
85 +
86 +S="${WORKDIR}/${PN^^}-${PV}"
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${P}-bundled-libs.patch
90 + "${FILESDIR}"/${P}-sfml-gtk3.patch
91 + "${FILESDIR}"/${P}-wxGLCanvas.patch
92 + "${FILESDIR}"/${P}-freetype-deps.patch
93 + "${FILESDIR}"/${P}-fluidsynth-driver.patch
94 + "${FILESDIR}"/${PN}-3.1.12a-cmake-lua-version.patch
95 +)
96 +
97 +src_prepare() {
98 + cmake_src_prepare
99 +
100 + # Delete bundled libraries just in case.
101 + rm -r src/External/{dumb,glew,lua}/ || die
102 +
103 +}
104 +
105 +src_configure() {
106 + local mycmakeargs=(
107 + -DLUA_VERSION=$(lua_get_version)
108 + -DNO_FLUIDSYNTH=$(usex fluidsynth OFF ON)
109 + -DNO_WEBVIEW=$(usex webkit OFF ON)
110 + -DUSE_SFML_RENDERWINDOW=ON
111 + -DWX_GTK3=ON
112 + )
113 + setup-wxwidgets
114 + cmake_src_configure
115 +}
116
117 diff --git a/profiles/package.mask b/profiles/package.mask
118 index 64b96923cb5..9214771c144 100644
119 --- a/profiles/package.mask
120 +++ b/profiles/package.mask
121 @@ -583,6 +583,7 @@ dev-lua/luacrypto
122 >=games-rpg/sumwars-0.5.8-r100
123 >=games-simulation/corsix-th-0.64-r100
124 >=games-sports/xmoto-0.6.1-r100
125 +>=games-util/slade-3.1.12a-r100
126 >=mail-filter/imapfilter-2.6.16-r100
127 >=media-gfx/geeqie-1.5.1-r1
128 >=media-sound/aqualung-1.1-r100