summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-04-13 09:39:27 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-04-13 09:39:27 +0000
commitb6581a377678b6d5a6f3a06825ec88e7404d389d (patch)
tree0d6a8749a20316574a87a33bd6cbcd1c1f1e3ea8 /games-puzzle/color-lines
parentStable for ppc64, wrt bug #464226 (diff)
downloadgentoo-2-b6581a377678b6d5a6f3a06825ec88e7404d389d.tar.gz
gentoo-2-b6581a377678b6d5a6f3a06825ec88e7404d389d.tar.bz2
gentoo-2-b6581a377678b6d5a6f3a06825ec88e7404d389d.zip
Initial commit, wrt bug #459732. Thanks to <warmcharm AT yandex.ru> for initial ebuild and Julian Ospald for ebuild fixes
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'games-puzzle/color-lines')
-rw-r--r--games-puzzle/color-lines/ChangeLog11
-rw-r--r--games-puzzle/color-lines/color-lines-0.6.ebuild46
-rw-r--r--games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch35
-rw-r--r--games-puzzle/color-lines/metadata.xml11
4 files changed, 103 insertions, 0 deletions
diff --git a/games-puzzle/color-lines/ChangeLog b/games-puzzle/color-lines/ChangeLog
new file mode 100644
index 000000000000..df5c18ab4ade
--- /dev/null
+++ b/games-puzzle/color-lines/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-puzzle/color-lines
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/color-lines/ChangeLog,v 1.1 2013/04/13 09:39:27 pinkbyte Exp $
+
+*color-lines-0.6 (13 Apr 2013)
+
+ 13 Apr 2013; Sergey Popov <pinkbyte@gentoo.org> +color-lines-0.6.ebuild,
+ +files/color-lines-0.6-Makefile.patch, +metadata.xml:
+ Initial commit, wrt bug #459732. Thanks to <warmcharm AT yandex.ru> for
+ initial ebuild and Julian Ospald for ebuild fixes
+
diff --git a/games-puzzle/color-lines/color-lines-0.6.ebuild b/games-puzzle/color-lines/color-lines-0.6.ebuild
new file mode 100644
index 000000000000..edfffc01d18a
--- /dev/null
+++ b/games-puzzle/color-lines/color-lines-0.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/color-lines/color-lines-0.6.ebuild,v 1.1 2013/04/13 09:39:27 pinkbyte Exp $
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="Color lines game written with SDL with bonus features"
+HOMEPAGE="http://color-lines.googlecode.com/"
+SRC_URI="http://color-lines.googlecode.com/files/lines_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/libsdl[X,audio,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[wav,mod]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/lines-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+
+ sed -i \
+ -e '/^Encoding/d' \
+ -e '/^Version/d' \
+ -e '/^Icon/s/.png//' \
+ color-lines.desktop.in || die 'sed on color-lines.desktop.in failed'
+
+ epatch_user
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r gfx sounds
+
+ domenu ${PN}.desktop
+ doicon icon/${PN}.png
+ dodoc ChangeLog
+ dogamesbin ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch b/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch
new file mode 100644
index 000000000000..9f552d712713
--- /dev/null
+++ b/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch
@@ -0,0 +1,35 @@
+--- Makefile.unix.orig 2013-04-12 13:56:42.131113000 +0400
++++ Makefile.unix 2013-04-12 13:57:26.595946027 +0400
+@@ -2,18 +2,18 @@
+ VERTITLE := lines-$(VERSION)
+ ARCHIVE := lines_$(VERSION).tar.gz
+
+-CFLAGS:=-Wall -O2 $(shell sdl-config --cflags)
++CFLAGS += $(shell sdl-config --cflags)
+ #-DMAEMO
+
+-LDFLAGS:=$(shell sdl-config --libs) -lSDL_image -lSDL_mixer
++LIBS := -lm $(shell sdl-config --libs) -lSDL_image -lSDL_mixer
+
+ SRC := board.c graphics.c main.c sound.c
+ OBJ := $(patsubst %.c, %.o, $(SRC))
+
+ all: color-lines
+-PREFIX:=/usr/local
++PREFIX:=/usr
+
+-BINDIR:=$(DESTDIR)/$(PREFIX)/games/
++BINDIR:=$(DESTDIR)$(PREFIX)/games/bin
+ GAMEDATADIR:=$(DESTDIR)/$(PREFIX)/share/games/color-lines/
+
+ svnclean:
+@@ -29,8 +29,7 @@
+
+ color-lines: $(OBJ)
+ cat color-lines.desktop.in | sed -e "s|@BINDIR|$(BINDIR)|g" > color-lines.desktop
+- $(CC) $(CFLAGS) $(LDFLAGS) $(^) -o $(@)
+- strip color-lines
++ $(CC) $(CFLAGS) $(LDFLAGS) $(^) -o $(@) $(LIBS)
+
+ clean:
+ rm -f *.o color-lines
diff --git a/games-puzzle/color-lines/metadata.xml b/games-puzzle/color-lines/metadata.xml
new file mode 100644
index 000000000000..d2caaa081e19
--- /dev/null
+++ b/games-puzzle/color-lines/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">color-lines</remote-id>
+ </upstream>
+</pkgmetadata>