summaryrefslogtreecommitdiff
path: root/games-board/sirius
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-board/sirius
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/sirius')
-rw-r--r--games-board/sirius/Manifest8
-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, 146 insertions, 0 deletions
diff --git a/games-board/sirius/Manifest b/games-board/sirius/Manifest
new file mode 100644
index 000000000000..0ae8ba0ab8fe
--- /dev/null
+++ b/games-board/sirius/Manifest
@@ -0,0 +1,8 @@
+AUX sirius-0.8.0-fix-build-system.patch 1333 SHA256 9646fac27664705d5e8bb8fe3de2176a9ed55671ba2bcf14f0c67202eba2db3a SHA512 6aad8f7e1336e30d0983b668da2c554fdb4658665d6d65523ff02d745f22499260e7fa51003628691a2f8f5a6837e0ef35b83bc38c3d7e513fce9b456958c7bb WHIRLPOOL 30ec3bfc1cc51918d4773875d565432f97e4e40991366d476fdd16489e31201dddf44997d00de4c54d6c52fbf066f23e6ac2830e675c77ddf9224450744525e6
+AUX sirius-0.8.0-fix-desktop-file.patch 294 SHA256 c0b07abc34559547b2282fcb33a89b9e5d9b032ce042b36d87874d82d3dc89bc SHA512 953f3b79aa802f7170ef60ef0f6e3e0368d26bf22275b41a2adc47e1481e10634271c46cf57bc71bb698b3f127e327d527f02903557bebe32f9639d3032c5ad1 WHIRLPOOL 3d82abe5b13c837de73b4aab30c185a4920a410e36992e5ade3c551bcff3235fc7aadf7e557df3f7685a07007b50bdc9db48a886c55b226df4c48d8a2c6c7899
+AUX sirius-0.8.0-format.patch 375 SHA256 0825690892daf1659377bd9164b84e54f1b8b6b9ddc539cbfca54d00de87b9cb SHA512 391217ed8b39ef7d78d170d2b45f71162f3a7aac2f4fa3db0dc761a73ddbdf67d8bc0cb0de708713b475a444ef8a01c309d6272adc06bb02b788c92861739877 WHIRLPOOL 02cecca490b55e1688e4cf92b68ab281a53ac70304ed1a8eb703092f49ec00fc065745ff203415fcf66d64efe13adb0edd0a13407660bec398c31098bfe72944
+DIST sirius-0.8.0.tar.gz 1623435 SHA256 6e512fccaf276a818f96072898576fb9bdd8905de95e6d23aa3277e2b04332ae SHA512 ffe5cb3354f30b8cb916b83b8fce1cbf7f7b37fad232ddb77a918eaf149d6b3e47488ff900301970e0d9240edfe483d57c434b1af35b87a9f50bcbd0e3aed3d8 WHIRLPOOL 6fabeb4acbced1469b3ea6b15e5045cbc54207b99d0f283a656cde23ac1761494a73605f4e9db1790e32744317616b51f9d4f8a2260fd499fc254a28a1b77262
+EBUILD sirius-0.8.0-r1.ebuild 766 SHA256 b17e4ee77c2b482c9a512c7d488b5532ba9d59b575c4da4f0e9b22fb708ee54a SHA512 9177a79513f41890b84833708dbca633657340f3f168bcdedc9c6e3b4d36bb7a68110d246f4ae2fe4b7e9af31af88a7abcfb5a3936b45b8805ed3a10779093fd WHIRLPOOL 096f7ab14613fb8f15174fe7bc4561df35bfa9ee207dcf36c94fdaf57b3d500747b833c81d2f674c88b1f01069ebf1cc274abc8df9ffe63fce02f85d6561bad8
+MISC ChangeLog 3272 SHA256 4fbb7d4b71114ec6bb9d31e48bac5dd415acb6a0f6f95fe0087d81748968c115 SHA512 75edc6e5ab25f1716453211db10393fa9d4de8d5271136e3dd2d2fb1edbe9dab9e19d914158e1e13a47bdeccb67ca91d0e464f3a27306a2eb820fb015906729d WHIRLPOOL da24450d8b17deab1c054feae02b6ba060b7e41a7fc2bceaba4e4eb5d8cb3f14444e9a7b2c0a77451d868545b325f1ef4b4f578d4fd112edc9f97080ea5498bc
+MISC ChangeLog-2015 1659 SHA256 457ee680e51d9a2f18aa293ad94503e55e2269c7ce46565a9e51a39802e90e57 SHA512 4cb80927603e7207f1330ca19484cd451bbeb3d104abc002a8362ac4476b7e7e6f8b6019089a8e63ea47295333b04ef346784f6499268bd50d7e07c361d9beb0 WHIRLPOOL 11804f82c91b729348881cd69204932d76c88442b8faa6f9cecf364a662feb4690ffbe5cd20655e946e5a84840c1a5af18182273491e79a57f5fc7d316090235
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
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..add049d669bd
--- /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)
+}