1 |
commit: 55529e0658274200a9c56e7330c7843e10afa25a |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 21:59:01 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 12:26:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55529e06 |
7 |
|
8 |
games-misc/ballerburg: EAPI-7 bump, cmake.eclass, https |
9 |
|
10 |
Use nomancompress.patch and drop src_install. |
11 |
|
12 |
Need to set CMAKE_MAKEFILE_GENERATOR=emake, otherwise ninja fails with: |
13 |
ninja: error: '/var/tmp/portage/games-misc/ballerburg-1.2.0-r1/work/ballerburg-1.2.0/src/*.c', needed by 'po/ballerburg.pot', missing and no known rule to make it |
14 |
|
15 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
16 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
17 |
|
18 |
games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild | 20 +++++++++----------- |
19 |
.../files/ballerburg-1.2.0-nomancompress.patch | 12 ++++++++++++ |
20 |
2 files changed, 21 insertions(+), 11 deletions(-) |
21 |
|
22 |
diff --git a/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild b/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild |
23 |
index e4a98743301..6b15169bd6a 100644 |
24 |
--- a/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild |
25 |
+++ b/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild |
26 |
@@ -1,13 +1,14 @@ |
27 |
-# Copyright 1999-2020 Gentoo Authors |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
-EAPI=6 |
32 |
+EAPI=7 |
33 |
|
34 |
-inherit cmake-utils |
35 |
+CMAKE_MAKEFILE_GENERATOR=emake |
36 |
+inherit cmake |
37 |
|
38 |
DESCRIPTION="Linux port of the classical Atari ST game Ballerburg" |
39 |
-HOMEPAGE="http://baller.tuxfamily.org/" |
40 |
-SRC_URI="http://download.tuxfamily.org/baller/${P}.tar.gz" |
41 |
+HOMEPAGE="https://baller.tuxfamily.org/" |
42 |
+SRC_URI="https://download.tuxfamily.org/baller/${P}.tar.gz" |
43 |
|
44 |
LICENSE="GPL-3+" |
45 |
SLOT="0" |
46 |
@@ -16,14 +17,11 @@ KEYWORDS="~amd64" |
47 |
DEPEND="media-libs/libsdl" |
48 |
RDEPEND="${DEPEND}" |
49 |
|
50 |
+PATCHES=( "${FILESDIR}/${P}-nomancompress.patch" ) |
51 |
+ |
52 |
src_configure() { |
53 |
local mycmakeargs=( |
54 |
-DDOCDIR=share/doc/${PF} |
55 |
) |
56 |
- cmake-utils_src_configure |
57 |
-} |
58 |
- |
59 |
-src_install() { |
60 |
- cmake-utils_src_install |
61 |
- gunzip "${ED}usr/share/man/man6/ballerburg.6.gz" || die |
62 |
+ cmake_src_configure |
63 |
} |
64 |
|
65 |
diff --git a/games-misc/ballerburg/files/ballerburg-1.2.0-nomancompress.patch b/games-misc/ballerburg/files/ballerburg-1.2.0-nomancompress.patch |
66 |
new file mode 100644 |
67 |
index 00000000000..1d12b1b82e1 |
68 |
--- /dev/null |
69 |
+++ b/games-misc/ballerburg/files/ballerburg-1.2.0-nomancompress.patch |
70 |
@@ -0,0 +1,12 @@ |
71 |
+--- a/doc/CMakeLists.txt 2015-03-29 17:04:01.000000000 +0200 |
72 |
++++ b/doc/CMakeLists.txt 2021-02-27 22:56:13.025989166 +0100 |
73 |
+@@ -1,8 +1,3 @@ |
74 |
+ |
75 |
+ INSTALL(FILES de/anleitung.html en/manual.html DESTINATION ${DOCDIR}) |
76 |
+- |
77 |
+-add_custom_target(manpages ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.6.gz) |
78 |
+-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.6.gz |
79 |
+- COMMAND gzip -c -9 ${CMAKE_CURRENT_SOURCE_DIR}/ballerburg.6 > ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.6.gz |
80 |
+- DEPENDS ballerburg.6) |
81 |
+-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ballerburg.6.gz DESTINATION ${MANDIR}) |
82 |
++INSTALL(FILES ballerburg.6 DESTINATION ${MANDIR}) |