1 |
commit: 21280681ffddaadbb159e460ca95ffe37253bb47 |
2 |
Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
3 |
AuthorDate: Mon Dec 3 20:10:28 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 3 14:39:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21280681 |
7 |
|
8 |
games-strategy/hedgewars: version bump to 0.9.25 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/672592 |
11 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10553 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
games-strategy/hedgewars/Manifest | 1 + |
17 |
games-strategy/hedgewars/hedgewars-0.9.25.ebuild | 111 +++++++++++++++++++++++ |
18 |
2 files changed, 112 insertions(+) |
19 |
|
20 |
diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest |
21 |
index 37090b09032..3b070243189 100644 |
22 |
--- a/games-strategy/hedgewars/Manifest |
23 |
+++ b/games-strategy/hedgewars/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST hedgewars-src-0.9.24.1.tar.bz2 175069915 BLAKE2B 5c49b91b9a77a110a7bc8667f9621c92d638950071c8db7493b7797c2e504a214052fad6ae8554d844146eecabd794529891aebf4e54ee73f8a447ab11c6c7da SHA512 b0b166c807e0d08a763e5e88e178d6e629baa420685bbfe381db7b5ecf003175892f8c2e3b75f1f6d7663335bd5b417d1a2afdc89b9d56b348b056ee3490ed2f |
26 |
+DIST hedgewars-src-0.9.25.tar.bz2 175276967 BLAKE2B 8f0779ca05ffbf18f607716bbec03bf0d6633cd6c3594bcb94b78ba606ed8c36d418d7b5456574cc0a08489e143d2390ed7ebcc8637e7987231ba04c0d5b5331 SHA512 956c21a7203586485e885f98fa4eccdc2fd34b50c0f817c1f6f610af1b4f341a5bb32bb8e0ace13f78ce2fb79a489000034b89c1b56459a411c07a1809041968 |
27 |
DIST hedgewars_0.9.23-dfsg-2.debian.tar.xz 77488 BLAKE2B 5de6fa2ad91f1346f679d07b3b445bd119d2cdd3c715ace20fc36abe726330ccf9a9b69ec56c58cfca4cc6256ff248b0cc0b0e27caf2a79df0f1662ea7727e8e SHA512 03680446930279178ddff85a87fc27b7c26ad6d850c8f26571517ebbd6dff296db216da6b56d4bd55c659786bc5c76e2b67a63052ee38e150655e60c08f7c491 |
28 |
|
29 |
diff --git a/games-strategy/hedgewars/hedgewars-0.9.25.ebuild b/games-strategy/hedgewars/hedgewars-0.9.25.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d68363f14f7 |
32 |
--- /dev/null |
33 |
+++ b/games-strategy/hedgewars/hedgewars-0.9.25.ebuild |
34 |
@@ -0,0 +1,111 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+CMAKE_MAKEFILE_GENERATOR=emake |
41 |
+inherit cmake-utils xdg-utils |
42 |
+ |
43 |
+MY_P=${PN}-src-${PV} |
44 |
+DEB_PATCH_VER=2 |
45 |
+ |
46 |
+DESCRIPTION="A turn-based strategy, artillery, action and comedy game" |
47 |
+HOMEPAGE="https://www.hedgewars.org/" |
48 |
+SRC_URI="https://www.hedgewars.org/download/releases/${MY_P}.tar.bz2 |
49 |
+ mirror://debian/pool/main/h/${PN}/${PN}_0.9.23-dfsg-${DEB_PATCH_VER}.debian.tar.xz" |
50 |
+LICENSE="GPL-2 Apache-2.0 FDL-1.3" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="libav server" |
54 |
+ |
55 |
+QA_FLAGS_IGNORED="/usr/bin/hwengine" # pascal sucks |
56 |
+QA_PRESTRIPPED="/usr/bin/hwengine" # pascal sucks |
57 |
+ |
58 |
+# qtcore:5= - depends on private header |
59 |
+CDEPEND=" |
60 |
+ >=dev-games/physfs-3.0.1 |
61 |
+ dev-lang/lua:0= |
62 |
+ dev-qt/qtcore:5= |
63 |
+ dev-qt/qtgui:5 |
64 |
+ dev-qt/qtnetwork:5 |
65 |
+ dev-qt/qtwidgets:5 |
66 |
+ media-libs/libpng:0= |
67 |
+ media-libs/libsdl2:= |
68 |
+ media-libs/sdl2-image:= |
69 |
+ media-libs/sdl2-mixer:=[vorbis] |
70 |
+ media-libs/sdl2-net:= |
71 |
+ media-libs/sdl2-ttf:= |
72 |
+ sys-libs/zlib:= |
73 |
+ !x86? ( |
74 |
+ libav? ( media-video/libav:= ) |
75 |
+ !libav? ( media-video/ffmpeg:= ) |
76 |
+ )" |
77 |
+DEPEND="${CDEPEND} |
78 |
+ !x86? ( >=dev-lang/fpc-2.4 ) |
79 |
+ dev-qt/linguist-tools:5 |
80 |
+ server? ( |
81 |
+ >=dev-lang/ghc-6.10 |
82 |
+ dev-haskell/entropy |
83 |
+ dev-haskell/hslogger |
84 |
+ >=dev-haskell/mtl-2 |
85 |
+ >=dev-haskell/network-2.3 |
86 |
+ dev-haskell/random |
87 |
+ dev-haskell/regex-tdfa |
88 |
+ dev-haskell/sandi |
89 |
+ dev-haskell/sha |
90 |
+ dev-haskell/vector |
91 |
+ dev-haskell/utf8-string |
92 |
+ dev-haskell/yaml |
93 |
+ >=dev-haskell/zlib-0.5.3 <dev-haskell/zlib-0.6 |
94 |
+ ) |
95 |
+ x86? ( |
96 |
+ >=dev-lang/ghc-6.10 |
97 |
+ dev-haskell/parsec |
98 |
+ )" |
99 |
+RDEPEND="${CDEPEND} |
100 |
+ app-arch/xz-utils |
101 |
+ >=media-fonts/dejavu-2.28 |
102 |
+ media-fonts/wqy-zenhei" |
103 |
+ |
104 |
+S="${WORKDIR}"/${MY_P} |
105 |
+ |
106 |
+PATCHES=( |
107 |
+ "${FILESDIR}"/${PN}-0.9.22-rpath-fix.patch |
108 |
+) |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local mycmakeargs=( |
112 |
+ -DMINIMAL_FLAGS=ON |
113 |
+ -DDATA_INSTALL_DIR="${EPREFIX}/usr/share/${PN}" |
114 |
+ -Dtarget_binary_install_dir="${EPREFIX}/usr/bin" |
115 |
+ -Dtarget_library_install_dir="${EPREFIX}/usr/$(get_libdir)" |
116 |
+ -DNOSERVER=$(usex server FALSE TRUE) |
117 |
+ -DBUILD_ENGINE_C=$(usex x86 ON OFF) |
118 |
+ -DNOVIDEOREC=$(usex x86 TRUE FALSE) |
119 |
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE |
120 |
+ -DPHYSFS_SYSTEM=ON |
121 |
+ # Need to tell the build system where the fonts are located |
122 |
+ # as it uses PhysFS' symbolic link protection mode which |
123 |
+ # prevents us from symlinking the fonts into the right directory |
124 |
+ # https://hg.hedgewars.org/hedgewars/rev/76ad55807c24 |
125 |
+ # https://icculus.org/physfs/docs/html/physfs_8h.html#aad451d9b3f46f627a1be8caee2eef9b7 |
126 |
+ -DFONTS_DIRS="${EPREFIX}/usr/share/fonts/wqy-zenhei;${EPREFIX}/usr/share/fonts/dejavu" |
127 |
+ # upstream sets RPATH that leads to weird breakage |
128 |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1200193 |
129 |
+ -DCMAKE_SKIP_RPATH=ON |
130 |
+ ) |
131 |
+ cmake-utils_src_configure |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ cmake-utils_src_install |
136 |
+ doman man/${PN}.6 |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ xdg_desktop_database_update |
141 |
+} |
142 |
+ |
143 |
+pkg_postrm() { |
144 |
+ xdg_desktop_database_update |
145 |
+} |