Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/opengfx/files/, games-misc/opengfx/
Date: Tue, 26 Mar 2019 14:15:54
Message-Id: 1553609744.3cfcb55139d4d882efa2cbc9143169c9ebec58d2.polynomial-c@gentoo
1 commit: 3cfcb55139d4d882efa2cbc9143169c9ebec58d2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 26 14:15:25 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 26 14:15:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cfcb551
7
8 games-misc/opengfx: Bump to version 0.5.5
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 games-misc/opengfx/Manifest | 1 +
14 .../opengfx/files/opengfx-0.5.5-Makefile.patch | 22 ++++++++++++++
15 games-misc/opengfx/opengfx-0.5.5.ebuild | 35 ++++++++++++++++++++++
16 3 files changed, 58 insertions(+)
17
18 diff --git a/games-misc/opengfx/Manifest b/games-misc/opengfx/Manifest
19 index 829d62e6fc8..cb8f5b3a92a 100644
20 --- a/games-misc/opengfx/Manifest
21 +++ b/games-misc/opengfx/Manifest
22 @@ -1 +1,2 @@
23 DIST opengfx-0.5.4-source.tar.xz 9638204 BLAKE2B bff7e5f7f72b62584c280ce2af2ad53df40027a7075ea5858a53f45a71be07db480cf61a603fc8e5df69b8c7d73284bf92e430a3fe130ae34ad1a921d8603925 SHA512 42f8438c747b42a77cf9d86c5da60ce3ce84ed347d714c345f3871806f9e35f2ed4729b445e0ee319f3e2edd53458dfbaad5ca42e389c3a2e800bce19223cdb1
24 +DIST opengfx-0.5.5-source.tar.xz 9639584 BLAKE2B 49af829802adf3756e89728697ea796b98422bd0e314cd21d34910f8f7428963c2d4799a933e861ae344a2e83dd748289bbe501bccb77aba647b484ed07de376 SHA512 952fb52e19bd790e335a9df0f11fa29b2fc570b49903419904956cc65883adde93d432160b16682366ab8b973b7852d2d30f574f1840f6fbd082e1addbe5bfe8
25
26 diff --git a/games-misc/opengfx/files/opengfx-0.5.5-Makefile.patch b/games-misc/opengfx/files/opengfx-0.5.5-Makefile.patch
27 new file mode 100644
28 index 00000000000..dca9615140d
29 --- /dev/null
30 +++ b/games-misc/opengfx/files/opengfx-0.5.5-Makefile.patch
31 @@ -0,0 +1,22 @@
32 +--- opengfx-0.5.5-source/Makefile
33 ++++ opengfx-0.5.5-source/Makefile
34 +@@ -99,8 +99,8 @@
35 + AWK ?= awk
36 + GREP ?= grep
37 + PYTHON ?= python
38 +-UNIX2DOS ?= $(shell which unix2dos)
39 +-UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS) ] && $(UNIX2DOS) -q --version 2>/dev/null && echo "-q" || echo "")
40 ++UNIX2DOS ?= $(shell which unix2dos 2>/dev/null)
41 ++UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS) ] && $(UNIX2DOS) -q --version 2>/dev/null >&2 && echo "-q" || echo "")
42 +
43 + # Graphics processing
44 + GIMP ?= gimp
45 +@@ -719,7 +719,7 @@
46 + $(_E)
47 + endif
48 + $(_E) "Release:"
49 +- $(_E) "bananas: Upload bundle to BaNaNaS
50 ++ $(_E) "bananas: Upload bundle to BaNaNaS"
51 + $(_E)
52 + $(_E) "Valid command line variables are:"
53 + $(_E) "Helper programmes:"
54
55 diff --git a/games-misc/opengfx/opengfx-0.5.5.ebuild b/games-misc/opengfx/opengfx-0.5.5.ebuild
56 new file mode 100644
57 index 00000000000..dc39acc0d27
58 --- /dev/null
59 +++ b/games-misc/opengfx/opengfx-0.5.5.ebuild
60 @@ -0,0 +1,35 @@
61 +# Copyright 1999-2019 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=7
65 +
66 +DESCRIPTION="OpenGFX data files for OpenTTD"
67 +HOMEPAGE="http://bundles.openttdcoop.org/opengfx/"
68 +SRC_URI="http://bundles.openttdcoop.org/opengfx/releases/${PV}/${P}-source.tar.xz"
69 +
70 +LICENSE="GPL-2"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~arm ~x86"
73 +IUSE=""
74 +RESTRICT="test" # nml version affects the checksums that the test uses (bug #451444)
75 +
76 +DEPEND=">=games-util/nml-0.4.0
77 + games-util/grfcodec"
78 +RDEPEND=""
79 +
80 +S="${WORKDIR}/${P}-source"
81 +
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-0.5.5-Makefile.patch"
84 +)
85 +
86 +src_compile() {
87 + emake GIMP="" help # print out the env to make bug reports better
88 + emake GIMP="" _V="" bundle_tar
89 +}
90 +
91 +src_install() {
92 + insinto "/usr/share/games/openttd/data/"
93 + doins *.grf opengfx.obg
94 + dodoc docs/{changelog.txt,readme.txt}
95 +}