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:30
Message-Id: 1483623006.982741c1a313feab0d5d03b46fb84467c089afdc.soap@gentoo
1 commit: 982741c1a313feab0d5d03b46fb84467c089afdc
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 5 13:21:13 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 5 13:30:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=982741c1
7
8 games-emulation/nestopia: Add live ebuild
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 games-emulation/nestopia/nestopia-9999.ebuild | 54 +++++++++++++++++++++++++++
13 1 file changed, 54 insertions(+)
14
15 diff --git a/games-emulation/nestopia/nestopia-9999.ebuild b/games-emulation/nestopia/nestopia-9999.ebuild
16 new file mode 100644
17 index 00000000..9e91e2b
18 --- /dev/null
19 +++ b/games-emulation/nestopia/nestopia-9999.ebuild
20 @@ -0,0 +1,54 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +inherit cmake-utils gnome2-utils
28 +
29 +DESCRIPTION="A portable Nintendo Entertainment System emulator written in C++"
30 +HOMEPAGE="http://0ldsk00l.ca/nestopia/"
31 +
32 +if [[ ${PV} == *9999 ]]; then
33 + inherit git-r3
34 + EGIT_REPO_URI="https://github.com/rdanbrook/nestopia.git"
35 +else
36 + inherit vcs-snapshot
37 + SRC_URI="https://github.com/rdanbrook/${PN}/archive/d7fae2aff1a93eac997d2b480652a1d068a2b6cf.tar.gz -> ${P}.tar.gz"
38 + KEYWORDS="~amd64 ~x86"
39 +fi
40 +
41 +LICENSE="GPL-2+"
42 +SLOT="0"
43 +IUSE="doc gui"
44 +
45 +RDEPEND="
46 + app-arch/libarchive:=
47 + media-libs/libao
48 + media-libs/libepoxy
49 + media-libs/libsdl2[sound,joystick,video]
50 + sys-libs/zlib
51 + gui? ( x11-libs/gtk+:3 )"
52 +DEPEND="${RDEPEND}
53 + virtual/pkgconfig"
54 +
55 +src_configure() {
56 + local mycmakeargs=(
57 + -DENABLE_GTK=$(usex gui)
58 + -DENABLE_DOC=$(usex doc)
59 + -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
60 + )
61 + cmake-utils_src_configure
62 +}
63 +
64 +pkg_preinst() {
65 + gnome2_icon_savelist
66 +}
67 +
68 +pkg_postinst() {
69 + gnome2_icon_cache_update
70 +}
71 +
72 +pkg_postrm() {
73 + gnome2_icon_cache_update
74 +}