Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/openmsx/, games-emulation/openmsx/files/
Date: Sun, 29 Apr 2018 13:07:01
Message-Id: 1525007187.4e970d590635d36ff686797b24b0bea7cb372139.pacho@gentoo
1 commit: 4e970d590635d36ff686797b24b0bea7cb372139
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 12:05:28 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 13:06:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e970d59
7
8 games-emulation/openmsx: Version bump
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-emulation/openmsx/Manifest | 1 +
13 .../openmsx/files/openmsx-0.9.1-verbose.patch | 4 +-
14 games-emulation/openmsx/openmsx-0.14.0.ebuild | 74 ++++++++++++++++++++++
15 3 files changed, 77 insertions(+), 2 deletions(-)
16
17 diff --git a/games-emulation/openmsx/Manifest b/games-emulation/openmsx/Manifest
18 index 4b511ea3445..8e53442a1e4 100644
19 --- a/games-emulation/openmsx/Manifest
20 +++ b/games-emulation/openmsx/Manifest
21 @@ -1 +1,2 @@
22 +DIST openmsx-0.14.0.tar.gz 3338719 BLAKE2B e9c09d29bb994f4f40e22271c090580688724cb7024910f0f829a59d0e65e6e70e1c037b943582aac644ee51a00b7e439e751bd84e5828168486b74ee09e8b78 SHA512 74a30de89b4a7cb4d8d5a0ad0c16ab6b58244251ebcbe470cc3cccec6a636492fa8779d1667d76646eabcf8d7d67c53094d5e0a313d452a4a679d797e9394a9b
23 DIST openmsx-0.9.1.tar.gz 2975351 BLAKE2B 6c571b1cc0039ea8e37af1d503260f21e6431d4403bb74a06fd60bfd1f1d3d0c1831c9e82ae2446dd8ff1bb7bd0cafcf8290306cb1d0bcc23cb7ba7cfebc3d1b SHA512 7c4d23963f33e3033dea1d0ad9351e4f38f7434e2e077b6f8fd00cf80e0160b45291ff19be71646178ecafa01e954267dfe4c815578d4abb14c8595a863f98ff
24
25 diff --git a/games-emulation/openmsx/files/openmsx-0.9.1-verbose.patch b/games-emulation/openmsx/files/openmsx-0.9.1-verbose.patch
26 index 18ac6fdc83b..e8007636f80 100644
27 --- a/games-emulation/openmsx/files/openmsx-0.9.1-verbose.patch
28 +++ b/games-emulation/openmsx/files/openmsx-0.9.1-verbose.patch
29 @@ -1,5 +1,5 @@
30 ---- build/main.mk.old 2015-01-18 12:18:50.608153217 +0100
31 -+++ build/main.mk 2015-01-18 12:20:00.352861984 +0100
32 +--- a/build/main.mk.old 2015-01-18 12:18:50.608153217 +0100
33 ++++ b/build/main.mk 2015-01-18 12:20:00.352861984 +0100
34 @@ -541,10 +541,9 @@
35 DEPEND_SUBST=$(patsubst $(SOURCES_PATH)/%.cc,$(DEPEND_PATH)/%.d,$<)
36 $(OBJECTS_FULL): $(INIT_DUMMY_FILE)
37
38 diff --git a/games-emulation/openmsx/openmsx-0.14.0.ebuild b/games-emulation/openmsx/openmsx-0.14.0.ebuild
39 new file mode 100644
40 index 00000000000..8b39565b4be
41 --- /dev/null
42 +++ b/games-emulation/openmsx/openmsx-0.14.0.ebuild
43 @@ -0,0 +1,74 @@
44 +# Copyright 1999-2018 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=6
48 +inherit desktop readme.gentoo-r1
49 +
50 +DESCRIPTION="MSX emulator that aims for perfection"
51 +HOMEPAGE="http://openmsx.org/"
52 +SRC_URI="https://github.com/openMSX/openMSX/releases/download/RELEASE_0_14_0/${P}.tar.gz"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~ppc64 ~x86"
57 +IUSE=""
58 +
59 +RDEPEND="
60 + dev-lang/tcl:0=
61 + dev-libs/libxml2
62 + media-libs/libpng:0=
63 + media-libs/libsdl[sound,video]
64 + >=media-libs/glew-1.3.2:0=
65 + media-libs/sdl-image[png]
66 + media-libs/sdl-ttf
67 + virtual/opengl
68 +"
69 +DEPEND="${RDEPEND}"
70 +
71 +DOC_CONTENTS="
72 +If you want to if you want to emulate real MSX systems and not
73 +only the free C-BIOS machines, put the system ROMs in one of
74 +the following directories: /usr/share/${PN}/systemroms
75 +or ~/.openMSX/share/systemroms
76 +"
77 +
78 +src_prepare() {
79 + default
80 + sed -i \
81 + -e '/^LDFLAGS:=/d' \
82 + -e '/LINK_FLAGS_PREFIX/d' \
83 + -e '/LINK_FLAGS+=/s/-s//' \
84 + -e '/LINK_FLAGS+=\$(TARGET_FLAGS)/s/$/ $(LDFLAGS)/' \
85 + build/main.mk \
86 + || die
87 + sed -i -e '/SYMLINK/s:true:false:' build/custom.mk || die
88 + sed -i -e 's/GPL.txt//' doc/node.mk || die
89 +}
90 +
91 +src_compile() {
92 + emake \
93 + CXXFLAGS="${CXXFLAGS}" \
94 + INSTALL_SHARE_DIR=/usr/share/${PN} \
95 + V=1
96 +}
97 +
98 +src_install() {
99 + emake \
100 + V=1 \
101 + INSTALL_BINARY_DIR="${ED}/usr/bin" \
102 + INSTALL_SHARE_DIR="${ED}/usr/share/${PN}" \
103 + INSTALL_DOC_DIR="${D}"/usr/share/doc/${PF} \
104 + install
105 +
106 + einstalldocs
107 + readme.gentoo_create_doc
108 +
109 + for i in 16 32 48 64 128 256 ; do
110 + newicon -s "${i}" "share/icons/openMSX-logo-${i}.png" "${PN}.png"
111 + done
112 + make_desktop_entry "${PN}" "openMSX"
113 +}
114 +
115 +pkg_postinst() {
116 + readme.gentoo_print_elog
117 +}