Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Request] Help to write an ebuild for the puNES emulator
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
fhorse
n00b
n00b


Joined: 05 Aug 2007
Posts: 6

PostPosted: Mon Oct 26, 2015 4:27 pm    Post subject: [Request] Help to write an ebuild for the puNES emulator Reply with quote

Hello everyone and sorry for the trouble but I wanted to ask if some kind soul wanted to give me a hand to create an ebuild for my emulator puNES. It is now 10 years that I use Gentoo, but do not know yet write an ebuild. "PuNES" (Nintendo Entertainment System emulator) is open source (GPLv2) and uses the SDL (1.2) for the video management, ALSA for audio and QT4 for the GUI (but is also fully compatible with the QT5) and it is also considered one of the most accurate existing emulators. Thank you in advance for any help you can give me.

https://github.com/punesemu/puNES
http://forums.nesdev.com/viewtopic.php?f=3&t=6928
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Tue Oct 27, 2015 9:19 am    Post subject: Reply with quote

i'lll probably look into it later, make sure to poke me about it.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
moonchilde
n00b
n00b


Joined: 13 Nov 2015
Posts: 18

PostPosted: Fri Nov 13, 2015 12:35 pm    Post subject: Reply with quote

Any update on this?
Back to top
View user's profile Send private message
fhorse
n00b
n00b


Joined: 05 Aug 2007
Posts: 6

PostPosted: Sat Nov 21, 2015 12:02 am    Post subject: punes-0.98.ebuild Reply with quote

This is the ebuild games-emulation/punes-0.98.ebuild

Last edited by fhorse on Fri Apr 15, 2016 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
fhorse
n00b
n00b


Joined: 05 Aug 2007
Posts: 6

PostPosted: Fri Apr 15, 2016 7:56 pm    Post subject: punes-0.99.ebuild Reply with quote

This is the ebuild games-emulation/punes-0.99.ebuild

Code:
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit autotools games

DESCRIPTION="Nintendo Entertaiment System emulator"
HOMEPAGE="https://github.com/punesemu/puNES"
SRC_URI="https://github.com/punesemu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt5"

DEPEND="
   sys-devel/autoconf-archive
   virtual/pkgconfig
"
RDEPEND="${DEPEND}
   media-libs/alsa-lib
   media-gfx/nvidia-cg-toolkit
   media-libs/libsdl[opengl]
   qt5? (
      dev-qt/qtcore:5
      dev-qt/qtgui:5
      dev-qt/qtwidgets:5
   )
   !qt5? (
      dev-qt/qtcore:4
      dev-qt/qtgui:4
   )
   virtual/opengl
"

S=${WORKDIR}/puNES-${PV}

src_prepare() {
   eautoreconf
   cd src/extra/lib7zip-1.6.5
   eautoreconf
}

src_configure() {
   egamesconf $(use_enable qt5 ) || die "egamesconf failed"
}

src_install() {
   dogamesbin src/${PN} || die "dogamesbin failed"
   domenu misc/punes.desktop   
   for res in 16 32 48 256
   do
      newicon -s ${res} misc/hicolor_apps_${res}x${res}_punes.png punes.png
   done
   dodoc AUTHORS README.*
   prepgamesdirs
}
Back to top
View user's profile Send private message
moonchilde
n00b
n00b


Joined: 13 Nov 2015
Posts: 18

PostPosted: Mon Jul 11, 2016 12:25 pm    Post subject: Reply with quote

Hi, do you have a new ebuild for 1.00? Any luck on getting this in the gentoo repo?
Back to top
View user's profile Send private message
fhorse
n00b
n00b


Joined: 05 Aug 2007
Posts: 6

PostPosted: Tue Jul 12, 2016 8:46 am    Post subject: Reply with quote

moonchilde wrote:
Hi, do you have a new ebuild for 1.00?
This is the ebuild games-emulation/punes-0.100.ebuild

Code:
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit autotools games

DESCRIPTION="Nintendo Entertaiment System emulator"
HOMEPAGE="https://github.com/punesemu/puNES"
SRC_URI="https://github.com/punesemu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt5"

DEPEND="
   sys-devel/autoconf-archive
   virtual/pkgconfig
"
RDEPEND="${DEPEND}
   media-libs/alsa-lib
   media-gfx/nvidia-cg-toolkit
   media-libs/libsdl[opengl]
   qt5? (
      dev-qt/qtcore:5
      dev-qt/qtgui:5
      dev-qt/qtwidgets:5
   )
   !qt5? (
      dev-qt/qtcore:4
      dev-qt/qtgui:4
   )
   virtual/opengl
"

S=${WORKDIR}/puNES-${PV}

src_prepare() {
   epatch "${FILESDIR}"/${P}-fix-compilation-xbrz.patch
   eautoreconf
   cd src/extra/lib7zip-1.6.5
   eautoreconf
}

src_configure() {
   egamesconf $(use_enable qt5 ) || die "egamesconf failed"
}

src_install() {
   dogamesbin src/${PN} || die "dogamesbin failed"
   domenu misc/punes.desktop   
   for res in 16 32 48 256
   do
      newicon -s ${res} misc/hicolor_apps_${res}x${res}_punes.png punes.png
   done
   dodoc AUTHORS README.*
   prepgamesdirs
}
and this is the patch punes-0.100-fix-compilation-xbrz.patch necessary to compile
Code:
From 99f3f334ce6e23545b2398aede0f6dbbb52600f9 Mon Sep 17 00:00:00 2001
From: fhorse <punes.development@gmail.com>
Date: Thu, 16 Jun 2016 09:35:23 +0200
Subject: [PATCH] Corretto errore di compilazione con GCC 6.1.

---
 src/c++/xBRZ/xbrz.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/c++/xBRZ/xbrz.cpp b/src/c++/xBRZ/xbrz.cpp
index 7684c10..a3ed4da 100644
--- a/src/c++/xBRZ/xbrz.cpp
+++ b/src/c++/xBRZ/xbrz.cpp
@@ -15,6 +15,7 @@
 
 #include "c++/xBRZ/xbrz.h"
 #include <cassert>
+#include <cmath>
 #include <algorithm>
 #include <vector>
 
--
2.9.0
moonchilde wrote:
Any luck on getting this in the gentoo repo?
For this I do not know how to do, I'm sorry
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum