Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/nestopia/
Date: Thu, 05 Jan 2017 13:30:29
Message-Id: 1483623003.7ef4424f16e54d7c4b72d88b8c7bbc27d1394005.soap@gentoo
1 commit: 7ef4424f16e54d7c4b72d88b8c7bbc27d1394005
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 5 13:09:45 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 5 13:30:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ef4424f
7
8 games-emulation/nestopia: Add new snapshot
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 games-emulation/nestopia/Manifest | 1 +
13 games-emulation/nestopia/metadata.xml | 5 +-
14 .../nestopia/nestopia-1.47_p20170105.ebuild | 54 ++++++++++++++++++++++
15 3 files changed, 59 insertions(+), 1 deletion(-)
16
17 diff --git a/games-emulation/nestopia/Manifest b/games-emulation/nestopia/Manifest
18 index a13c7e2..bd71c59 100644
19 --- a/games-emulation/nestopia/Manifest
20 +++ b/games-emulation/nestopia/Manifest
21 @@ -1,2 +1,3 @@
22 DIST nestopia-1.46.2.tgz 1223407 SHA256 4a5065726ad9e7a120a2c6aa39b9c0904090119998a4d690d4deb5e374118fc0 SHA512 3aa87e98aa24b71e5feac5ffe8229e97d407fc0b14567b0ddbe7cc1eaca08a08f435a6fe294fbbd7066054befdfd27602db7c3c0577246b0e8addfe296404a23 WHIRLPOOL 25c43194797e5edca3abc5cb75dba126d9d246e9ab12270521e7fe6c13427b371ba9f92a71ed557271f159711411286b5ac5ab3fe06144760320531c33bf0c02
23 DIST nestopia-1.47.tgz 1306183 SHA256 84624d30ab05d609db2734db0065616b268f79d4aa35f1cd90cb35ee8d96be0c SHA512 27155a82ca9631623c4800110371ec374de2c3d649d3274c9495b58ddede36bfb4a6f52e39552d55e0e90795cd779c3331c488c557aba6b738998e19f1d3bf72 WHIRLPOOL 4f30b66e1eb229419fa4862db2b3828cb983dcba9f0cac531f84e45a885db2bfdbb24cc33a87729f524922c42aa761d0294e53c5ffa00540dd20765a79e08c41
24 +DIST nestopia-1.47_p20170105.tar.gz 1283456 SHA256 621b5f686d98b81ce9a720be40083b80a76d2ebae0089556cf5dc7df2b26d4f4 SHA512 58d1a932a6b90589c66503b2013b1a8162072e77e0416851a1430fa146e7fd85ff7363b70292c69d4c4513e3750aa53436a312c0240a843e42fbb89b554e7a70 WHIRLPOOL 14b3bc921f0f57a8049a02b863d3a25f017f31668875f02ec4472f877d248fdfd9c1325930b5138e17bf24adc92c76fdf399abcb9deab4d1155572c5f774e942
25
26 diff --git a/games-emulation/nestopia/metadata.xml b/games-emulation/nestopia/metadata.xml
27 index d64dbba..6c6cefd 100644
28 --- a/games-emulation/nestopia/metadata.xml
29 +++ b/games-emulation/nestopia/metadata.xml
30 @@ -6,6 +6,9 @@
31 <name>Gentoo Games Project</name>
32 </maintainer>
33 <upstream>
34 - <remote-id type="sourceforge">nestopiaue</remote-id>
35 + <remote-id type="github">rdanbrook/nestopia</remote-id>
36 </upstream>
37 + <use>
38 + <flag name="gui">Enable GUI</flag>
39 + </use>
40 </pkgmetadata>
41
42 diff --git a/games-emulation/nestopia/nestopia-1.47_p20170105.ebuild b/games-emulation/nestopia/nestopia-1.47_p20170105.ebuild
43 new file mode 100644
44 index 00000000..9e91e2b
45 --- /dev/null
46 +++ b/games-emulation/nestopia/nestopia-1.47_p20170105.ebuild
47 @@ -0,0 +1,54 @@
48 +# Copyright 1999-2017 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +# $Id$
51 +
52 +EAPI=6
53 +
54 +inherit cmake-utils gnome2-utils
55 +
56 +DESCRIPTION="A portable Nintendo Entertainment System emulator written in C++"
57 +HOMEPAGE="http://0ldsk00l.ca/nestopia/"
58 +
59 +if [[ ${PV} == *9999 ]]; then
60 + inherit git-r3
61 + EGIT_REPO_URI="https://github.com/rdanbrook/nestopia.git"
62 +else
63 + inherit vcs-snapshot
64 + SRC_URI="https://github.com/rdanbrook/${PN}/archive/d7fae2aff1a93eac997d2b480652a1d068a2b6cf.tar.gz -> ${P}.tar.gz"
65 + KEYWORDS="~amd64 ~x86"
66 +fi
67 +
68 +LICENSE="GPL-2+"
69 +SLOT="0"
70 +IUSE="doc gui"
71 +
72 +RDEPEND="
73 + app-arch/libarchive:=
74 + media-libs/libao
75 + media-libs/libepoxy
76 + media-libs/libsdl2[sound,joystick,video]
77 + sys-libs/zlib
78 + gui? ( x11-libs/gtk+:3 )"
79 +DEPEND="${RDEPEND}
80 + virtual/pkgconfig"
81 +
82 +src_configure() {
83 + local mycmakeargs=(
84 + -DENABLE_GTK=$(usex gui)
85 + -DENABLE_DOC=$(usex doc)
86 + -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
87 + )
88 + cmake-utils_src_configure
89 +}
90 +
91 +pkg_preinst() {
92 + gnome2_icon_savelist
93 +}
94 +
95 +pkg_postinst() {
96 + gnome2_icon_cache_update
97 +}
98 +
99 +pkg_postrm() {
100 + gnome2_icon_cache_update
101 +}