Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/punes/
Date: Fri, 26 Jan 2018 21:23:13
Message-Id: 1517001780.11d59ce716b33e5ec2c44fa2bb020fa7e2909cde.monsieurp@gentoo
1 commit: 11d59ce716b33e5ec2c44fa2bb020fa7e2909cde
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 12 05:55:57 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 26 21:23:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11d59ce7
7
8 app-emulation/punes: new package.
9
10 puNES is Nintendo Entertainment System emulator.
11
12 Package-Manager: Portage-2.3.13, Repoman-2.3.3
13 Closes: https://github.com/gentoo/gentoo/pull/6838
14
15 app-emulation/punes/Manifest | 1 +
16 app-emulation/punes/metadata.xml | 21 ++++++++++++++
17 app-emulation/punes/punes-0.102.ebuild | 53 ++++++++++++++++++++++++++++++++++
18 3 files changed, 75 insertions(+)
19
20 diff --git a/app-emulation/punes/Manifest b/app-emulation/punes/Manifest
21 new file mode 100644
22 index 00000000000..d9771043899
23 --- /dev/null
24 +++ b/app-emulation/punes/Manifest
25 @@ -0,0 +1 @@
26 +DIST punes-0.102.tar.gz 4670534 BLAKE2B 04576110e4fcd9aeaa3dfb6812ab7a21305200c82651be00defcb59b91374b155b279818f2e09d217841aa8567c41e06067252538fb68b7b907d5ab29b02c678 SHA512 dff95b25f64ed03060b6dd187d7a283acfddb6bea4168df5be4d309bd6aabdcaa5d0ea0312d0824205bf134cd0ddabf014e82a81c8a901a59258475ec24bd394
27
28 diff --git a/app-emulation/punes/metadata.xml b/app-emulation/punes/metadata.xml
29 new file mode 100644
30 index 00000000000..c8d6de05051
31 --- /dev/null
32 +++ b/app-emulation/punes/metadata.xml
33 @@ -0,0 +1,21 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>azamat.hackimov@×××××.com</email>
39 + <name>Azamat H. Hackimov</name>
40 + </maintainer>
41 + <maintainer type="project">
42 + <email>proxy-maint@g.o</email>
43 + <name>Proxy Maintainers</name>
44 + </maintainer>
45 + <longdescription lang="en">
46 + Nintendo Entertainment System (NES) emulator
47 + </longdescription>
48 + <use>
49 + <flag name="cg">Add support for Nvidia CG Toolkit</flag>
50 + </use>
51 + <upstream>
52 + <remote-id type="github">punesemu/puNES</remote-id>
53 + </upstream>
54 +</pkgmetadata>
55
56 diff --git a/app-emulation/punes/punes-0.102.ebuild b/app-emulation/punes/punes-0.102.ebuild
57 new file mode 100644
58 index 00000000000..cb13a854923
59 --- /dev/null
60 +++ b/app-emulation/punes/punes-0.102.ebuild
61 @@ -0,0 +1,53 @@
62 +# Copyright 1999-2018 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=6
66 +inherit autotools xdg-utils
67 +
68 +DESCRIPTION="Nintendo Entertainment System (NES) emulator"
69 +HOMEPAGE="https://github.com/punesemu/puNES"
70 +SRC_URI="https://github.com/punesemu/puNES/archive/v${PV}.tar.gz -> ${P}.tar.gz"
71 +
72 +LICENSE="GPL-2"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~x86"
75 +IUSE="cg"
76 +
77 +RDEPEND="
78 + dev-qt/qtcore:5
79 + dev-qt/qtgui:5
80 + dev-qt/qtwidgets:5
81 + cg? ( media-gfx/nvidia-cg-toolkit )
82 + media-libs/alsa-lib
83 + media-libs/libsdl[opengl]
84 + virtual/opengl"
85 +
86 +DEPEND="
87 + ${RDEPEND}
88 + virtual/pkgconfig"
89 +
90 +S="${WORKDIR}/puNES-${PV}"
91 +
92 +src_prepare() {
93 + default
94 +
95 + sed -i "/update-desktop-database/d" misc/Makefile.am || die
96 + eautoreconf
97 + # FIXME why eautoreconf can't handle this?
98 + cd "src/extra/lib7zip-1.6.5" || die
99 + eautoreconf
100 +}
101 +
102 +src_configure() {
103 + econf \
104 + --enable-qt5 \
105 + $(use_with cg opengl-nvidia-cg)
106 +}
107 +
108 +pkg_postinst() {
109 + xdg_desktop_database_update
110 +}
111 +
112 +pkg_postrm() {
113 + xdg_desktop_database_update
114 +}