public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-board/sirius/files/, games-board/sirius/
@ 2016-08-01 21:10 Austin English
  0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2016-08-01 21:10 UTC (permalink / raw
  To: gentoo-commits

commit:     64ff382c446b56b1d17fc93cf76d2c840967caad
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  1 20:48:48 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Mon Aug  1 21:09:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ff382c

games-board/sirius: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

 games-board/sirius/files/sirius-0.8.0-format.patch |  4 +-
 games-board/sirius/sirius-0.8.0-r1.ebuild          | 49 ++++++++++++++++++++++
 2 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/games-board/sirius/files/sirius-0.8.0-format.patch b/games-board/sirius/files/sirius-0.8.0-format.patch
index dccf6e2..8dff431 100644
--- a/games-board/sirius/files/sirius-0.8.0-format.patch
+++ b/games-board/sirius/files/sirius-0.8.0-format.patch
@@ -1,5 +1,5 @@
---- src/sirius.c.old	2016-01-14 21:22:53.946900371 +0100
-+++ src/sirius.c	2016-01-14 21:24:08.240507669 +0100
+--- a/src/sirius.c	2016-01-14 21:22:53.946900371 +0100
++++ b/src/sirius.c	2016-01-14 21:24:08.240507669 +0100
 @@ -180,7 +180,7 @@
  
  	paus = 1;

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 0000000..443de7d
--- /dev/null
+++ b/games-board/sirius/sirius-0.8.0-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils
+
+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
+)
+
+src_prepare() {
+	default
+	sed -i -e '/-g -O3/d' configure.in || die
+	sed -i \
+		-e '/Icon/s/\.png//' \
+		-e '/Categories/s/Application;//' \
+		sirius.desktop.in || die
+	mv configure.in configure.ac || die
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		--datadir=/usr/share \
+		$(use_enable nls)
+}
+
+src_install() {
+	default
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-board/sirius/files/, games-board/sirius/
@ 2016-12-12  9:12 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2016-12-12  9:12 UTC (permalink / raw
  To: gentoo-commits

commit:     efe212ccd4e79cd70c9d343912913038445d84ee
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 12 09:11:49 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 09:12:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe212cc

games-board/sirius: Fix underlinking

Gentoo-bug: 592414
* Turn sed's into PATCHES
* Fix configure.ac
* Include a check for sqrt() in libm
* Simplify ebuild

Package-Manager: portage-2.3.3

 .../files/sirius-0.8.0-fix-build-system.patch      | 65 ++++++++++++++++++++++
 .../files/sirius-0.8.0-fix-desktop-file.patch      | 14 +++++
 games-board/sirius/files/sirius-0.8.0-format.patch |  4 +-
 games-board/sirius/sirius-0.8.0-r1.ebuild          | 20 ++-----
 4 files changed, 87 insertions(+), 16 deletions(-)

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 00000000..e799616
--- /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 00000000..dfa411d
--- /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
index 8dff431..4bed292 100644
--- a/games-board/sirius/files/sirius-0.8.0-format.patch
+++ b/games-board/sirius/files/sirius-0.8.0-format.patch
@@ -1,5 +1,5 @@
---- a/src/sirius.c	2016-01-14 21:22:53.946900371 +0100
-+++ b/src/sirius.c	2016-01-14 21:24:08.240507669 +0100
+--- a/src/sirius.c
++++ b/src/sirius.c
 @@ -180,7 +180,7 @@
  
  	paus = 1;

diff --git a/games-board/sirius/sirius-0.8.0-r1.ebuild b/games-board/sirius/sirius-0.8.0-r1.ebuild
index 443de7d..68570c1 100644
--- a/games-board/sirius/sirius-0.8.0-r1.ebuild
+++ b/games-board/sirius/sirius-0.8.0-r1.ebuild
@@ -3,7 +3,8 @@
 # $Id$
 
 EAPI=6
-inherit autotools eutils
+
+inherit autotools
 
 DESCRIPTION="A program for playing the game of othello/reversi"
 HOMEPAGE="http://sirius.bitvis.nu/"
@@ -25,25 +26,16 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
 	"${FILESDIR}"/${P}-format.patch
+	"${FILESDIR}"/${P}-fix-desktop-file.patch
+	"${FILESDIR}"/${P}-fix-build-system.patch
 )
 
 src_prepare() {
 	default
-	sed -i -e '/-g -O3/d' configure.in || die
-	sed -i \
-		-e '/Icon/s/\.png//' \
-		-e '/Categories/s/Application;//' \
-		sirius.desktop.in || die
-	mv configure.in configure.ac || die
+	mv configure.{in,ac} || die
 	eautoreconf
 }
 
 src_configure() {
-	econf \
-		--datadir=/usr/share \
-		$(use_enable nls)
-}
-
-src_install() {
-	default
+	econf $(use_enable nls)
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-13  1:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-12  9:12 [gentoo-commits] repo/gentoo:master commit in: games-board/sirius/files/, games-board/sirius/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2016-08-01 21:10 Austin English

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox