Skip to content
Browse files

added an ebuild for a slick GUI frontend to NSRT

  • Loading branch information...
1 parent e408105 commit 575d2bb97ee62872154c18f5c993d80847aa494f @kpacheco kpacheco committed Nov 12, 2011
Showing with 72 additions and 0 deletions.
  1. +3 −0 games-util/nf/Manifest
  2. +16 −0 games-util/nf/metadata.xml
  3. +53 −0 games-util/nf/nf-1.1.ebuild
View
3 games-util/nf/Manifest
@@ -0,0 +1,3 @@
+DIST nf-1.1.tar.bz2 330413 RMD160 f234826bac6f00f1ba52c9cde7ecdd75ecc90e87 SHA1 7652f6205934334aef5c06695bcb51bdf0a14417 SHA256 c91970bc0100f503e68415ad575e1f20c980b8d50f0daa430d883158cabfeb83
+EBUILD nf-1.1.ebuild 1335 RMD160 531f5d643071002c18f84bb2f58c35707d8bbc5c SHA1 04710e96702d0cf9b2fff9ae5ee2a574b2463d6a SHA256 3888aaeb1773ae81e6c35f1fbe930b905608bd650ac4348562da63b6b4f805df
+MISC metadata.xml 626 RMD160 527e26ac3eb06318fed9860f76b4d71bf32082e6 SHA1 7fad29ea1cc621690bb545114f34e361b5d53d0e SHA256 714539ccf5daf42b8aaf2d61936130973531b5e3ce8c967532e20439eb704e3b
View
16 games-util/nf/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>p@7clams.org</email>
+ <name>p4</name>
+ </maintainer>
+ <longdescription lang="en">
+ NSRT, or Nach's SNES ROM Tools, is a tool made for maintaining
+ Super Nintendo ROMs. It has functions for adding/removing
+ headers, deinterleaving, fixing overdumps, among other tasks.
+ Included with this archive is IPSEdit, which allows you to add
+ or remove headers from IPS patches, and nren, a utility made to
+ aid in batch renaming of SRAM files.
+ </longdescription>
+</pkgmetadata>
View
53 games-util/nf/nf-1.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit eutils games qt4-r2
+
+DESCRIPTION="Qt4 GUI frontend for NSRT"
+HOMEPAGE="http://snesemu.black-ship.net/index.php?page=tools"
+SRC_URI="http://7clams.org/flora/distfiles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="$(printf 'linguas_%s ' de es fr he it ja nl)"
+RESTRICT="mirror"
+
+DEPEND=">=x11-libs/qt-core-4.2
+ >=x11-libs/qt-gui-4.2"
+
+RDEPEND=">=games-util/nsrt-3.4"
+
+MAKEOPTS+=" -j1"
+
+S="${WORKDIR}"/"${P}"/source
+LANGDIR="${GAMES_DATADIR}"/"${PN}"/lang
+
+src_prepare() {
+ sed -i -e "s/-O1/-O1 -D_FORTIFY_SOURCE=0/" conf/Makefile || die
+ sed -i -e "s/include <string>/include <string.h>/" conf/parsegen.cpp || die
+ sed -i -e "s:(QString(\"lang/\"):(QString(\"${LANGDIR}/\"):" main.cpp || die
+ sed -i -e "s/qApp->applicationDirPath() + QDir::separator() + \"/QDir::homePath() + \"\/\.config\//" globals.cpp || die
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ dogamesbin nf || die
+ newicon res/nficonvl.png nf.png
+ make_desktop_entry "nf" "NSRT Frontend" "nf" "Utility;FileTools;Qt" "Comment=${DESCRIPTION}"
+ dodoc ../docs/nf.txt
+ insinto "${LANGDIR}"
+ for h in de es fr he it ja nl; do
+ if use linguas_"${h}"; then
+ doins lang/"${h}".*
+ fi
+ done
+
+ prepgamesdirs
+}

0 comments on commit 575d2bb

Please sign in to comment.
Something went wrong with that request. Please try again.