summaryrefslogtreecommitdiff
path: root/games-board/sirius
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/sirius
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/sirius')
-rw-r--r--games-board/sirius/Manifest6
-rw-r--r--games-board/sirius/files/sirius-0.8.0-fix-build-system.patch65
-rw-r--r--games-board/sirius/files/sirius-0.8.0-fix-desktop-file.patch14
-rw-r--r--games-board/sirius/files/sirius-0.8.0-format.patch11
-rw-r--r--games-board/sirius/metadata.xml8
-rw-r--r--games-board/sirius/sirius-0.8.0-r1.ebuild40
6 files changed, 144 insertions, 0 deletions
diff --git a/games-board/sirius/Manifest b/games-board/sirius/Manifest
new file mode 100644
index 000000000000..b40a3ebe4489
--- /dev/null
+++ b/games-board/sirius/Manifest
@@ -0,0 +1,6 @@
+AUX sirius-0.8.0-fix-build-system.patch 1333 BLAKE2B 7e6248d7d1c17b8c0d5fb63af9fcfb8536ec7b032f5ccd3e4926e8203b465a13ea9cca3ca3821f8572c2414f7cced922dcedb73e4782e34c10107f2a74e038bf SHA512 6aad8f7e1336e30d0983b668da2c554fdb4658665d6d65523ff02d745f22499260e7fa51003628691a2f8f5a6837e0ef35b83bc38c3d7e513fce9b456958c7bb
+AUX sirius-0.8.0-fix-desktop-file.patch 294 BLAKE2B 1bf069907ef6efd73cae334e71d345e5da619d292e4fbb6c4c982510e7a2212cc22ed187076ccedc50681192e120cd8d08a600adb067dddfb8f0605bdfdd6c8a SHA512 953f3b79aa802f7170ef60ef0f6e3e0368d26bf22275b41a2adc47e1481e10634271c46cf57bc71bb698b3f127e327d527f02903557bebe32f9639d3032c5ad1
+AUX sirius-0.8.0-format.patch 375 BLAKE2B f53a7484984628ab416a613fcae3bf73d565bd87ef6b19edefed4327a3aef0a53c7cae48cdfa28c80ce54b96f25e654884820f3f173969b825564a3f13cc3b9b SHA512 391217ed8b39ef7d78d170d2b45f71162f3a7aac2f4fa3db0dc761a73ddbdf67d8bc0cb0de708713b475a444ef8a01c309d6272adc06bb02b788c92861739877
+DIST sirius-0.8.0.tar.gz 1623435 BLAKE2B 34594cfb30633684f78aac349deef0316fee094c7d67b7e67db2ad1e618b72b6a9510d089474cb973f6dbcf503ec2f1177af2bb9c3a14e674d4bb6cdcf2f0548 SHA512 ffe5cb3354f30b8cb916b83b8fce1cbf7f7b37fad232ddb77a918eaf149d6b3e47488ff900301970e0d9240edfe483d57c434b1af35b87a9f50bcbd0e3aed3d8
+EBUILD sirius-0.8.0-r1.ebuild 768 BLAKE2B 67e77116f28f85bfb03b00b7d08957c12b1448211f3db91e867fe7d431b30aa38c632fa7f437022b13e7c8b9341b2c20ca8b5baeedf14ec87086a656f77b5a19 SHA512 09d734292c9d4acffc0d78f9bfae96fd39594823d0fb7d150cf665ddd4454c568ee8d8bb59a1d4f08c282068ee117285299687239d8ce46bc89056ed74f9654e
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-board/sirius/files/sirius-0.8.0-fix-build-system.patch b/games-board/sirius/files/sirius-0.8.0-fix-build-system.patch
new file mode 100644
index 000000000000..e799616a492a
--- /dev/null
+++ b/games-board/sirius/files/sirius-0.8.0-fix-build-system.patch
@@ -0,0 +1,65 @@
+Fix configure.ac
+* Remove setting CFLAGS
+* Look for sqrt() in libm (bug 592414)
+
+--- a/configure.in
++++ b/configure.in
+@@ -1,26 +1,23 @@
+ AC_PREREQ(2.52)
+
+-AC_INIT(sirius, 0.8.0)
+-AC_CONFIG_SRCDIR(src/sirius.c)
+-AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
++AC_INIT([sirius], [0.8.0])
++AC_CONFIG_SRCDIR([src/sirius.c])
++AM_INIT_AUTOMAKE
+
+-AM_CONFIG_HEADER(config.h)
+-
+-AM_MAINTAINER_MODE
++AC_CONFIG_HEADERS([config.h])
+
+ AC_PROG_INTLTOOL
+
+-AC_ISC_POSIX
+ AC_PROG_CC
+-AC_STDC_HEADERS
+-AM_PROG_LIBTOOL
+-AC_PROG_LIBTOOL
++LT_INIT
+
+ pkg_modules="gtk+-2.0 >= 1.3.13 gconf-2.0 libgnomeui-2.0 libgnomecanvas-2.0 libgnomeui-2.0 gdk-pixbuf-2.0"
+ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
+-AC_SUBST(PACKAGE_CFLAGS)
+-AC_SUBST(PACKAGE_LIBS)
+
++dnl Look for sqrt() in libm
++AC_SEARCH_LIBS([sqrt], [m], [], [
++ AC_MSG_ERROR([unable to find the sqrt() function])
++])
+
+ GETTEXT_PACKAGE=sirius
+ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
+@@ -29,22 +26,6 @@
+ ALL_LINGUAS="sv fr de ru"
+ AM_GLIB_GNU_GETTEXT
+
+-CFLAGS="-g -O3"
+-
+-AC_SUBST(CFLAGS)
+-AC_SUBST(CPPFLAGS)
+-AC_SUBST(LDFLAGS)
+-
+-dnl Use -Wall if we have gcc.
+-changequote(,)dnl
+-if test "x$GCC" = "xyes"; then
+- case " $CFLAGS " in
+- *[\ \ ]-Wall[\ \ ]*) ;;
+- *) CFLAGS="$CFLAGS -Wall" ;;
+- esac
+-fi
+-changequote([,])dnl
+-
+ AC_OUTPUT([
+ Makefile
+ po/Makefile.in
diff --git a/games-board/sirius/files/sirius-0.8.0-fix-desktop-file.patch b/games-board/sirius/files/sirius-0.8.0-fix-desktop-file.patch
new file mode 100644
index 000000000000..dfa411d5152b
--- /dev/null
+++ b/games-board/sirius/files/sirius-0.8.0-fix-desktop-file.patch
@@ -0,0 +1,14 @@
+Fix QA violations in desktop file
+
+--- a/sirius.desktop.in
++++ b/sirius.desktop.in
+@@ -3,7 +3,7 @@
+ _Name=Sirius
+ _Comment=Sirius, a othello playing program
+ Exec=sirius
+-Icon=sirius.png
++Icon=sirius
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Game;
++Categories=GNOME;Game;
diff --git a/games-board/sirius/files/sirius-0.8.0-format.patch b/games-board/sirius/files/sirius-0.8.0-format.patch
new file mode 100644
index 000000000000..4bed292434d3
--- /dev/null
+++ b/games-board/sirius/files/sirius-0.8.0-format.patch
@@ -0,0 +1,11 @@
+--- a/src/sirius.c
++++ b/src/sirius.c
+@@ -180,7 +180,7 @@
+
+ paus = 1;
+
+- box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message);
++ box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message);
+ gtk_dialog_run (GTK_DIALOG(box));
+ gtk_widget_destroy(box);
+
diff --git a/games-board/sirius/metadata.xml b/games-board/sirius/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-board/sirius/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/games-board/sirius/sirius-0.8.0-r1.ebuild b/games-board/sirius/sirius-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..c04568e02b57
--- /dev/null
+++ b/games-board/sirius/sirius-0.8.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A program for playing the game of othello/reversi"
+HOMEPAGE="http://sirius.bitvis.nu/"
+SRC_URI="http://sirius.bitvis.nu/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="
+ gnome-base/gconf:2
+ gnome-base/libgnomecanvas
+ gnome-base/libgnomeui
+ x11-libs/gtk+:2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${P}-fix-desktop-file.patch
+ "${FILESDIR}"/${P}-fix-build-system.patch
+)
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}