summaryrefslogtreecommitdiff
path: root/games-puzzle/ngstar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/ngstar
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/ngstar')
-rw-r--r--games-puzzle/ngstar/Manifest9
-rw-r--r--games-puzzle/ngstar/files/ngstar-2.1.8-gcc43.patch10
-rw-r--r--games-puzzle/ngstar/files/ngstar-2.1.8-gcc47.patch11
-rw-r--r--games-puzzle/ngstar/files/ngstar-2.1.8-gentoo-path.patch14
-rw-r--r--games-puzzle/ngstar/files/ngstar-2.1.8-ldflags.patch32
-rw-r--r--games-puzzle/ngstar/metadata.xml17
-rw-r--r--games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild44
7 files changed, 137 insertions, 0 deletions
diff --git a/games-puzzle/ngstar/Manifest b/games-puzzle/ngstar/Manifest
new file mode 100644
index 000000000000..de64c1268b69
--- /dev/null
+++ b/games-puzzle/ngstar/Manifest
@@ -0,0 +1,9 @@
+AUX ngstar-2.1.8-gcc43.patch 208 SHA256 627a182a862cfa5623f81707b8f41d6e1f2410fbe13a660d69e21e94abc488fe SHA512 c01ae8cc19afb5d7bf24dbcfd6b82bd174e54848463363cf9718aac230b990e708df05a600ef3d689056f6e0018faaeda06cdaa9054673227f46143f84f22ea7 WHIRLPOOL b8b8d50bf5b6fbecc3fc647c02610e19def82ade38d6aaa15df56a5fa6def4a3a859eaa8c44127895c7342b0469148be252a052ac076070ae61632a2e8778145
+AUX ngstar-2.1.8-gcc47.patch 315 SHA256 8925d058dbc27ecb86321b99f95121642125ad8a7f8b89e976595293ac255152 SHA512 ee0b9d2f8fd989475c62371572091200acdb47fd2fc634763e729f51096786ef46a866cf2abd244502daf38b7503a0043146fd53590da4113a45841a2ac2db56 WHIRLPOOL ecbea3d5faabdec5054e07cc4072d0b00f240a5b34c1778eb9a0e42a21db29584dfa4073da3507e687841cc3c04cc5f7e72e02d8dcf14f23accb5f88908c0b59
+AUX ngstar-2.1.8-gentoo-path.patch 534 SHA256 32d0998b7f9416995a30c8b448040d3427c1e59ce66c9d25495ac3d909e8f45a SHA512 bca1216cb11122c19dc183b788215c50d9426e58e69bb20ebc5085121cdfe83af8d8e504440c7eacee4a82c4f5b7ef9a7c77fa783084b0f77bd1759cb45a51d7 WHIRLPOOL e882dfba9c46dd8f698af78adb447d4b993d58ad788696770d55d26c4bda228c8c7e2d733941c01a330fb3d99983226be6f54d7add1899a826e914de9f3ae0d2
+AUX ngstar-2.1.8-ldflags.patch 1031 SHA256 9fd44a56733b4fd2a113bf2338b3768882393a78c613c1ede92165676f79edaa SHA512 54e08e2e6c2171624c4d0e19df0a3f1b27e65f7dc8a079689db38283098ee3d9c8baf9ec1cbe7c64c0691f6a9bfd789e0845fc8043386e3cfcb98e051e81643b WHIRLPOOL 27cd5290ca592a7c44d49debf9666072ed164101dc2c6bace5062841bbde3a989213d3d52f897b6050457c90d26590a8ddd261e996ff38985e8768bea5554b71
+DIST ngstar-2.1.8-src.tar.bz2 45851 SHA256 c8a2cf84d2a4bb40280d4ce307ceaed8f97d2183f79f7a82b38b78aaedb73fb3 SHA512 c96031148720b5dcc004a5de68137bbbdd5af9c6f0b33ff8bcee3180cbf4732a4d6a92737ef99754d512bb61454bc0a17487efba4cdb00339d23e38edfe3cb28 WHIRLPOOL 05b6492a324e49c210174864b73194cef1ef3deb405d04d1c9352ae3cb3bb539e3c2b5c4d11f09f2ea32ffe37a542aaf2438185f6df1330af88de0b122d6e5aa
+EBUILD ngstar-2.1.8-r2.ebuild 895 SHA256 11d8ef4d7ce00a9d4da7f0356e716dbc796674582150ee1d36f76c57ad0c4ace SHA512 69570eb6dccf38854e3b318ed797cb49c226e4f0fa71ec899c49b810e54200bc9a491a4bf077fa2547fa793293b4409ecd47d979d4d2fde6810ea30fa344daca WHIRLPOOL 8f8763848cc93b0a978f9b0ae2fd9774fc3336343e622bd16d3aa196cc9f5cb53c08f1c1cae6cfc1de4440b04ec4583527b28df513c3a753527e5205ba477905
+MISC ChangeLog 2729 SHA256 cf59b46f072c9e176cb7e412081cf5ee039d5c92d1d71dbf8da55766994658ea SHA512 2cd9a37ac23ed7603430571b491e9d0f12dc84ec9187ad6c163ad31b7af5dc0f300ee1b640cccbd3c03ffdd65eb1fc9ee9cfb270eafe7c734d9458bd9de536c4 WHIRLPOOL d87bc4b77ec551798cfdc4282e6a72fd0196907a3e2a420005807b8f3d6c649648539e9fe208a485d4e16fe43296c074c75995bcc804be2a2484961b57800ed7
+MISC ChangeLog-2015 2044 SHA256 bd1d407674c4972fb63eb519d5be199377c0c18caa1e3cb009dbbb9afce1f665 SHA512 7eea9da024287fe14629944f95c5ba6be33f9995c3f92b6c05aea14fc10334a3104d493e09f074aa7329f64338a5c897217d8fb2cdae772753359278ddc99ea4 WHIRLPOOL a6ee80066a0d78065c181401f806d6d58adea823f42ef4605f5a6afacbd4f9850863292c9e65b463331ea99c0938f7635c3f1edb0edeec97c661bb68482c4d4a
+MISC metadata.xml 612 SHA256 ffc9c874a3fd37639c0455297d7ca585fb69eec94649075e4a99336737dd64e8 SHA512 414db07af3e63e2bfabcc81bdb7df2b91cf449f568c1d301c62a5c4b2950fad627c94f786abb902df84e6568016062ae18d76008136144fe92007100efbaff92 WHIRLPOOL baa65dc864e20e6fdf826139f64f3a6b4ef9d0ca0cea9204afa5cae2b3c38c90309fec493e7368465c2213ff8262587d6fb20c50892ac1301c175af535b35b4e
diff --git a/games-puzzle/ngstar/files/ngstar-2.1.8-gcc43.patch b/games-puzzle/ngstar/files/ngstar-2.1.8-gcc43.patch
new file mode 100644
index 000000000000..72c0f70007a4
--- /dev/null
+++ b/games-puzzle/ngstar/files/ngstar-2.1.8-gcc43.patch
@@ -0,0 +1,10 @@
+--- libngstar2/Configuration.hh
++++ libngstar2/Configuration.hh
+@@ -26,6 +26,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <string>
++#include <cstdlib>
+
+ #include <getopt.h>
+ #include <sys/stat.h>
diff --git a/games-puzzle/ngstar/files/ngstar-2.1.8-gcc47.patch b/games-puzzle/ngstar/files/ngstar-2.1.8-gcc47.patch
new file mode 100644
index 000000000000..2ddf0f53793d
--- /dev/null
+++ b/games-puzzle/ngstar/files/ngstar-2.1.8-gcc47.patch
@@ -0,0 +1,11 @@
+--- src/Ncurses_UI.cc.old 2012-07-21 22:25:16.421521521 +0200
++++ src/Ncurses_UI.cc 2012-07-21 22:26:01.008390914 +0200
+@@ -23,6 +23,8 @@
+ /* includes */
+ #include "Ncurses_UI.hh"
+
++#include <unistd.h>
++
+ using namespace ngstar2;
+
+ Ncurses_UI::Ncurses_UI( NGStar2 *engine, Configuration* config, Scores *scores )
diff --git a/games-puzzle/ngstar/files/ngstar-2.1.8-gentoo-path.patch b/games-puzzle/ngstar/files/ngstar-2.1.8-gentoo-path.patch
new file mode 100644
index 000000000000..84fa6de7e024
--- /dev/null
+++ b/games-puzzle/ngstar/files/ngstar-2.1.8-gentoo-path.patch
@@ -0,0 +1,14 @@
+--- configure.old 2006-04-19 22:00:42.000000000 +0200
++++ configure 2006-04-19 22:02:38.000000000 +0200
+@@ -193,8 +193,8 @@
+ MINOR = $VMINOR
+ REVISION = $VREVISION
+
+-LEVELSETS_DIR = \$(PREFIX)/share/\$(NAME)/levelsets
+-THEMES_DIR = \$(PREFIX)/share/\$(NAME)/themes
+-BIN_DIR = \$(PREFIX)/bin
++LEVELSETS_DIR = \$(PREFIX)@GENTOO_DATA@/\$(NAME)/levelsets
++THEMES_DIR = \$(PREFIX)@GENTOO_DATA@/\$(NAME)/themes
++BIN_DIR = \$(PREFIX)@GENTOO_BIN@
+ DOC_DIR = \$(PREFIX)/doc/\$(NAME)-\$(MAJOR).\$(MINOR).\$(REVISION)
+ LIB_DIR = \$(PREFIX)/lib
diff --git a/games-puzzle/ngstar/files/ngstar-2.1.8-ldflags.patch b/games-puzzle/ngstar/files/ngstar-2.1.8-ldflags.patch
new file mode 100644
index 000000000000..17e0ed9f7188
--- /dev/null
+++ b/games-puzzle/ngstar/files/ngstar-2.1.8-ldflags.patch
@@ -0,0 +1,32 @@
+diff -ru ngstar-2.1.8.orig/src/Makefile ngstar-2.1.8/src/Makefile
+--- ngstar-2.1.8.orig/src/Makefile 2005-11-09 08:11:22.000000000 -0500
++++ ngstar-2.1.8/src/Makefile 2014-11-18 23:58:45.565366080 -0500
+@@ -33,8 +33,8 @@
+ endif
+ endif
+ ifdef USE_NCURSES
+- CC_LIBS += -lncurses -lgpm
+- CC_LIBS_STATIC += -lncurses -lgpm
++ CC_LIBS += $(shell pkg-config ncurses --libs) -lgpm
++ CC_LIBS_STATIC += $(shell pkg-config ncurses --libs) -lgpm
+
+ NCURSES_UI_OBJ = Ncurses_UI.o
+
+@@ -56,8 +56,7 @@
+
+ $(BIN) : $(SOURCE) $(BIN_DEPS)
+ echo "Compiling $(BIN)"
+- $(CXX) $< $(BIN_DEPS) -o $@ $(CC_LIBS) $(CC_INCLUDES) $(CPPFLAGS)
+- strip -s $@
++ $(CXX) ${LDFLAGS} $< $(BIN_DEPS) -o $@ $(CC_LIBS) $(CC_INCLUDES) $(CPPFLAGS)
+ ifdef USE_FLTK2
+ -ln -s `basename $(BIN)` $(BIN_FLTK2)
+ endif
+@@ -68,7 +67,6 @@
+ $(BIN_STATIC) : $(SOURCE) $(BIN_DEPS)
+ echo "Compiling $(BIN)"
+ $(CXX) -static $< $(BIN_DEPS) -o $@ $(CC_LIBS_STATIC) $(CC_INCLUDES) $(CPPFLAGS)
+- strip -s $@
+ ifdef USE_FLTK2
+ -ln -s `basename $(BIN_STATIC)` $(BIN_STATIC_FLTK2)
+ endif
diff --git a/games-puzzle/ngstar/metadata.xml b/games-puzzle/ngstar/metadata.xml
new file mode 100644
index 000000000000..1111e81af0c0
--- /dev/null
+++ b/games-puzzle/ngstar/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+NGStar is a clone of a HP48 game called dstar.
+The goal is to catch all gifts in the level to get access to the next one.
+Use the ball to catch them, use the cube to stop the ball. The ball only move
+to the next obstacle (wall or cube).
+</longdescription>
+ <upstream>
+ <remote-id type="freshmeat">ngstar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild b/games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild
new file mode 100644
index 000000000000..0176fcfa2eab
--- /dev/null
+++ b/games-puzzle/ngstar/ngstar-2.1.8-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="NGStar is a clone of a HP48 game called dstar"
+HOMEPAGE="http://freshmeat.net/projects/ngstar"
+SRC_URI="mirror://gentoo//${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:0
+ sys-libs/gpm"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo-path.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "s:@GENTOO_DATA@:${GAMES_DATADIR}:" \
+ -e "s:@GENTOO_BIN@:${GAMES_BINDIR}:" \
+ -e "/^CPPFLAGS/s:+=:+= ${CXXFLAGS}:" \
+ -e "/SILENT/d" \
+ configure || die
+}
+
+src_configure() {
+ ./configure \
+ --prefix "" \
+ --without-fltk2 || die
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}