summaryrefslogtreecommitdiff
path: root/games-simulation/lincity
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-simulation/lincity
reinit the tree, so we can have metadata
Diffstat (limited to 'games-simulation/lincity')
-rw-r--r--games-simulation/lincity/Manifest7
-rw-r--r--games-simulation/lincity/files/lincity-1.13.1-build.patch74
-rw-r--r--games-simulation/lincity/lincity-1.13.1-r1.ebuild52
-rw-r--r--games-simulation/lincity/lincity-1.13.1.ebuild48
-rw-r--r--games-simulation/lincity/metadata.xml11
5 files changed, 192 insertions, 0 deletions
diff --git a/games-simulation/lincity/Manifest b/games-simulation/lincity/Manifest
new file mode 100644
index 000000000000..62dcb8da919c
--- /dev/null
+++ b/games-simulation/lincity/Manifest
@@ -0,0 +1,7 @@
+AUX lincity-1.13.1-build.patch 2196 SHA256 c816e3723244fe2e158b23611a1b70d90b34d38a70cc6835379032de9689c24e SHA512 c0590673e7f04e16ffb6c9a25ce0f00d25dcaf689908117647e00989ed6db3a2c5d1db63abeb23e5c9a0f0999219515a53994ed4400f2712a8dea5b6eca5a8b3 WHIRLPOOL 872e9bad67c0e98afffd1960a79304db60f512f50a38ac3d7927417c64fb850797839004c150fa00885f197c38712d51532d6f7d07ba1aad46c5076b1d5e6bdb
+DIST lincity-1.13.1.tar.gz 1064236 SHA256 7b4cbd11ffd4cbed79a0aadb25f2b1c34e25a8201182fbb259ce2f450fe5015d SHA512 bc4ee7a1642b1efa25f9edaabd3aeb52d1ca1d016735c5094586f52fda3ec4e9080ff35fe518c1ccbfad9fd54babb370f4b9b6a158b4d2f43b7182155084eefc WHIRLPOOL b2065c73fda1f1ce3fc7803653a3ee9acadd58ad3d1f6b040cca7fe0c58df9d27d72894688b932013124ab0b866fc1fab68b94c25ab3fbf02c7f0b2a21d700c5
+EBUILD lincity-1.13.1-r1.ebuild 946 SHA256 abf9735b5508cb66349487136b3953c804a5b01e4af9e7ddbe41e94515081bbd SHA512 7a47b905d33c64cfd627af661a66ab3224e4c508e9857bc6cf054621097089eb3d7d21c138a83786f038ce860e3c4fc4a1d7dd131200fdc4886c530d7ccf6aeb WHIRLPOOL 600914ef518133eca62d199658360f626889d2d363694da370f3189a1e241dc63deeaf06137ac21eaf5e5c6df4bc787fe785e2c4ae4937b58576c2a16d3cde5e
+EBUILD lincity-1.13.1.ebuild 959 SHA256 9137444b4e7424fa4b8680b85914e43571beff2323cf232deb5360db78a4aa5b SHA512 e92c5af61afb163420da0212e7024de53c1a1e14abf20251a87f05272337636ddb4b71e119714dd32c842a8d52d305185abe3c11f1d4c502b7f39a637f4cfb7a WHIRLPOOL bf34c926d9f07b9bd5fff5e616b007de5d5f0119bd7f59eade6c184b1af685d7a69ca7f7c186b88025d1b117eb3bf3bbb267dd9d68b07430dfdecd7a55338843
+MISC ChangeLog 3029 SHA256 5bb0511d817dc4bd18b61e8662d72b2077509ca810b0e813d6f66e3962355948 SHA512 b730a57bf0674662cb63cb73580da848747e97c77ef7c0519872afdb07898fb6f4f0b5747fd147e22a26fbfa29bf6941b44967ff9ca6ff5e334ca2332abf1292 WHIRLPOOL 84ad576ab1a805bac4099d05ca2bfc17d3353d8af2d2509965b5890760fd83dfe0416f99faadbc45fdfa7e47b4e5cf7241a8ee5270b13373114310fedd2d9408
+MISC ChangeLog-2015 3777 SHA256 f79bb9fa541d9d68fa61fcfcff2ffed881a0e35a103e3a0a5b1fd19b6cee3e44 SHA512 1c625ae5ec3fe945b1a01c2b44d963bbf4e907bb07ae938e0b3b7a51b84cc606c82c7cfd5a493474a043336ca595aaa12f9e04afad47e0497891c3d395bd56a0 WHIRLPOOL e9afdcc2d361e8049f6225b767821642b570cb2266b4b5bf3110803928f4815d4458ff63d9c6764b30b2869c1849d0602f2bbb596980b0402e1bb5f968b8ba79
+MISC metadata.xml 330 SHA256 d08ac9bf2de2516402c92e9dc9d059da0abb95c278cff4b8308518169b7e7d5c SHA512 c36fecc06a5c84b3a93dfd25ffeb05bb14a5a96676eb1d7e976903ef7892a10c22ee7afa894c581c0bc3079ce2e30574143cc6b49195b346463c48f3e34ff1c0 WHIRLPOOL 98d05323eb7de2d3e2312a787932af5071f1ea6f3bd916d16c05d3dc14635dc3ecf43e216980110aefff2a85ca82a970679c2d4261b78d0107b268b165564d12
diff --git a/games-simulation/lincity/files/lincity-1.13.1-build.patch b/games-simulation/lincity/files/lincity-1.13.1-build.patch
new file mode 100644
index 000000000000..f7f41f954baf
--- /dev/null
+++ b/games-simulation/lincity/files/lincity-1.13.1-build.patch
@@ -0,0 +1,74 @@
+--- lincity-1.13.1.orig/intl/Makefile.in
++++ lincity-1.13.1/intl/Makefile.in
+@@ -32,7 +32,7 @@
+ libdir = @libdir@
+ includedir = @includedir@
+ datadir = @datadir@
+-localedir = $(datadir)/locale
++localedir = /usr/share/locale
+ gettextsrcdir = $(datadir)/gettext/intl
+ aliaspath = $(localedir)
+ subdir = intl
+--- lincity-1.13.1.orig/mouse.c
++++ lincity-1.13.1/mouse.c
+@@ -1057,7 +1057,7 @@
+ and set to 1 if the existing transport if the more expensive sort
+ (e.g. GROUP_RAIL when overwriting GROUP_ROAD).
+ */
+-inline int
++int
+ mt_erase(int x, int y)
+ {
+ if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
+--- lincity-1.13.1.orig/pixmap.c
++++ lincity-1.13.1/pixmap.c
+@@ -390,7 +390,7 @@
+ likes it in the file. Still need to fix this in autoconf,
+ but for now this will do. */
+ #if !defined (WIN32)
+-inline int
++int
+ pixmap_index (int x, int y)
+ {
+ return y*pixmap_width + x;
+--- lincity-1.13.1.orig/pixmap.h
++++ lincity-1.13.1/pixmap.h
+@@ -19,7 +19,7 @@
+ void initialize_pixmap (void);
+ void resize_pixmap (int new_width, int new_height);
+ int pixmap_getpixel (int x, int y);
+-inline int pixmap_index (int x, int y);
++int pixmap_index (int x, int y);
+ int pixmap_getpixel (int x, int y);
+ void pixmap_setpixel (int x, int y, int col);
+ void pixmap_hline (int x1, int y1, int x2, int col);
+@@ -33,7 +33,7 @@
+ * Public Inline Functions
+ * ---------------------------------------------------------------------- */
+ #if defined (WIN32)
+-inline int
++int
+ pixmap_index (int x, int y) {
+ return y*pixmap_width + x;
+ }
+--- lincity-1.13.1.orig/po/Makefile.in.in
++++ lincity-1.13.1/po/Makefile.in.in
+@@ -21,7 +21,7 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
+-localedir = $(datadir)/locale
++localedir = /usr/share/locale
+ gettextsrcdir = $(datadir)/gettext/po
+
+ INSTALL = @INSTALL@
+--- lincity-1.13.1.orig/readpng.c
++++ lincity-1.13.1/readpng.c
+@@ -3,6 +3,7 @@
+ * This file is part of lincity (see COPYRIGHT for copyright information).
+ * ---------------------------------------------------------------------- */
+ #include <stdlib.h>
++#include <string.h>
+ #include "png.h"
+ #include "malloc.h"
+ #include "lin-city.h"
diff --git a/games-simulation/lincity/lincity-1.13.1-r1.ebuild b/games-simulation/lincity/lincity-1.13.1-r1.ebuild
new file mode 100644
index 000000000000..02968c06f2ed
--- /dev/null
+++ b/games-simulation/lincity/lincity-1.13.1-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic
+
+DESCRIPTION="city/country simulation game for X and Linux SVGALib"
+HOMEPAGE="http://lincity.sourceforge.net/"
+SRC_URI="mirror://sourceforge/lincity/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+# dep fix (bug #82318)
+RDEPEND="media-libs/libpng:0
+ x11-libs/libSM
+ x11-libs/libXext
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+)
+
+src_prepare() {
+ default
+
+ append-cflags -std=gnu89 # build with gcc5 (bug #570574)
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --with-gzip \
+ --with-x
+}
+
+src_compile() {
+ # build system logic is severely broken
+ emake
+ emake X_PROGS
+}
+
+src_install() {
+ default
+ dodoc Acknowledgements CHANGES README* TODO
+ make_desktop_entry xlincity Lincity
+ dobin xlincity
+}
diff --git a/games-simulation/lincity/lincity-1.13.1.ebuild b/games-simulation/lincity/lincity-1.13.1.ebuild
new file mode 100644
index 000000000000..96430e5e40d9
--- /dev/null
+++ b/games-simulation/lincity/lincity-1.13.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="city/country simulation game for X and Linux SVGALib"
+HOMEPAGE="http://lincity.sourceforge.net/"
+SRC_URI="mirror://sourceforge/lincity/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+# dep fix (bug #82318)
+RDEPEND="media-libs/libpng:0
+ x11-libs/libXext
+ x11-libs/libSM
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ append-cflags -std=gnu89 # build with gcc5 (bug #570574)
+}
+
+src_configure() {
+ egamesconf \
+ $(use_enable nls) \
+ --with-gzip \
+ --with-x
+}
+
+src_compile() {
+ # build system logic is severely broken
+ emake
+ emake X_PROGS
+}
+
+src_install() {
+ default
+ dodoc Acknowledgements CHANGES README* TODO
+ make_desktop_entry xlincity Lincity
+ dogamesbin xlincity
+ prepgamesdirs
+}
diff --git a/games-simulation/lincity/metadata.xml b/games-simulation/lincity/metadata.xml
new file mode 100644
index 000000000000..41975d1ec190
--- /dev/null
+++ b/games-simulation/lincity/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">lincity</remote-id>
+ </upstream>
+</pkgmetadata>