public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: games-board/aisleriot/, games-board/aisleriot/files/
Date: Sun, 10 May 2015 22:29:29 +0000 (UTC)	[thread overview]
Message-ID: <1431296807.b3277001ace571abba8a04bc07e4f5c5616b2cae.eva@gentoo> (raw)

commit:     b3277001ace571abba8a04bc07e4f5c5616b2cae
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sun May 10 22:26:47 2015 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun May 10 22:26:47 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gnome.git/commit/?id=b3277001

games-board/aisleriot: 9999 → 3.16.2

Try to package aisleriot again for bug #475324.

Currently fails due to undefined references due to card theme handling.

 games-board/aisleriot/aisleriot-3.16.2.ebuild      | 75 ++++++++++++++++++++++
 games-board/aisleriot/aisleriot-9999.ebuild        | 72 +++++++++++----------
 .../files/aisleriot-3.16.2-detect-svg.patch        | 28 ++++++++
 3 files changed, 140 insertions(+), 35 deletions(-)

diff --git a/games-board/aisleriot/aisleriot-3.16.2.ebuild b/games-board/aisleriot/aisleriot-3.16.2.ebuild
new file mode 100644
index 0000000..f4a5f8a
--- /dev/null
+++ b/games-board/aisleriot/aisleriot-3.16.2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+GCONF_DEBUG="yes"
+
+inherit autotools eutils gnome-games
+
+DESCRIPTION="A collection of solitaire card games for GNOME"
+HOMEPAGE="https://wiki.gnome.org/action/show/Apps/Aisleriot"
+
+LICENSE="GPL-3 LGPL-3 FDL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome"
+
+# FIXME: quartz support?
+# Does not build with guile-2.0.0 or 2.0.1
+COMMON_DEPEND="
+	>=dev-libs/glib-2.32:2
+	>=dev-scheme/guile-2.0.5:2[deprecated,regex]
+	>=gnome-base/librsvg-2.32:2
+	>=media-libs/libcanberra-0.26[gtk3]
+	>=x11-libs/cairo-1.10
+	>=x11-libs/gtk+-3.4:3
+	gnome? ( >=gnome-base/gconf-2.0:2 )
+"
+DEPEND="${COMMON_DEPEND}
+	app-arch/gzip
+	dev-libs/libxml2
+	>=dev-util/intltool-0.40.4
+	sys-apps/lsb-release
+	>=sys-devel/gettext-0.12
+	virtual/pkgconfig
+	gnome? ( app-text/docbook-xml-dtd:4.3 )
+"
+# >=app-text/yelp-tools-3.1.1
+
+src_prepare() {
+	# Fix SVG detection and usage
+	epatch "${FILESDIR}"/${PN}-3.16.2-detect-svg.patch
+
+	eautoreconf
+	gnome2_src_prepare
+}
+
+src_configure() {
+	local myconf
+
+	if use gnome; then
+		myconf="--with-platform=gnome --with-help-method=ghelp"
+	else
+		myconf="--with-platform=gtk-only --with-help-method=library"
+	fi
+
+	gnome2_src_configure \
+		--with-gtk=3.0 \
+		--with-guile=2.0 \
+		--enable-sound \
+		--with-card-theme-formats=all \
+		--with-kde-card-theme-path="${EPREFIX}"/usr/share/apps/carddecks \
+		--with-pysol-card-theme-path="${EPREFIX}${GAMES_DATADIR}"/pysolfc \
+		GUILE=$(type -P guile-2.0) \
+		ITSTOOL=$(type -P true) \
+		XMLLINT=$(type -P true) \
+		${myconf}
+}
+
+pkg_postinst() {
+	gnome2_pkg_postinst
+
+	elog "Aisleriot can use additional card themes from games-board/pysolfc"
+	elog "and kde-base/libkdegames."
+}

diff --git a/games-board/aisleriot/aisleriot-9999.ebuild b/games-board/aisleriot/aisleriot-9999.ebuild
index fc4de84..0cf9ad6 100644
--- a/games-board/aisleriot/aisleriot-9999.ebuild
+++ b/games-board/aisleriot/aisleriot-9999.ebuild
@@ -1,20 +1,17 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="3"
-GNOME_TARBALL_SUFFIX="xz"
+EAPI="5"
 GCONF_DEBUG="yes"
 
-# make sure games is inherited first so that the gnome2
-# functions will be called if they are not overridden
-inherit eutils games gnome2
+inherit autotools eutils gnome-games
 if [[ ${PV} = 9999 ]]; then
 	inherit gnome2-live
 fi
 
 DESCRIPTION="A collection of solitaire card games for GNOME"
-HOMEPAGE="http://live.gnome.org/Aisleriot"
+HOMEPAGE="https://wiki.gnome.org/action/show/Apps/Aisleriot"
 
 LICENSE="GPL-3 LGPL-3 FDL-1.1"
 SLOT="0"
@@ -27,20 +24,15 @@ IUSE="gnome"
 
 # FIXME: quartz support?
 # Does not build with guile-2.0.0 or 2.0.1
-COMMON_DEPEND=">=dev-libs/glib-2.31.13:2
+COMMON_DEPEND="
+	>=dev-libs/glib-2.32:2
 	>=dev-scheme/guile-2.0.5:2[deprecated,regex]
-	>=gnome-base/librsvg-2.32.0:2
-	>=x11-libs/cairo-1.10.0
-	x11-libs/gdk-pixbuf:2
-	>=x11-libs/gtk+-3.0.0:3
-	x11-libs/libICE
-	x11-libs/libSM
+	>=gnome-base/librsvg-2.32:2
 	>=media-libs/libcanberra-0.26[gtk3]
-	gnome? ( >=gnome-base/gconf-2.0:2 )"
-# aisleriot was split off from gnome-games
-RDEPEND="${COMMON_DEPEND}
-	!<gnome-extra/gnome-games-3.1.1[aisleriot]
-	!<gnome-extra/gnome-games-3"
+	>=x11-libs/cairo-1.10
+	>=x11-libs/gtk+-3.4:3
+	gnome? ( >=gnome-base/gconf-2.0:2 )
+"
 DEPEND="${COMMON_DEPEND}
 	app-arch/gzip
 	dev-libs/libxml2
@@ -48,28 +40,38 @@ DEPEND="${COMMON_DEPEND}
 	sys-apps/lsb-release
 	>=sys-devel/gettext-0.12
 	virtual/pkgconfig
-	gnome? (
-		app-text/docbook-xml-dtd:4.3
-		>=app-text/yelp-tools-3.1.1 )"
+	gnome? ( app-text/docbook-xml-dtd:4.3 )
+"
+# >=app-text/yelp-tools-3.1.1
 
-pkg_setup() {
-	DOCS="AUTHORS ChangeLog TODO"
+src_prepare() {
+	# Fix SVG detection and usage
+	epatch "${FILESDIR}"/${PN}-3.16.2-detect-svg.patch
+
+	eautoreconf
+	gnome2_src_prepare
+}
+
+src_configure() {
+	local myconf
 
 	if use gnome; then
-		G2CONF="${G2CONF} --with-platform=gnome --with-help-method=ghelp"
+		myconf="--with-platform=gnome --with-help-method=ghelp"
 	else
-		G2CONF="${G2CONF} --with-platform=gtk-only --with-help-method=library
-			ITSTOOL=$(type -P true) XMLLINT=$(type -P true)"
+		myconf="--with-platform=gtk-only --with-help-method=library"
 	fi
 
-	G2CONF="${G2CONF}
-		--with-gtk=3.0
-		--with-guile=2.0
-		--enable-sound
-		--disable-schemas-compile
-		--with-card-theme-formats=all
-		--with-kde-card-theme-path="${EPREFIX}"/usr/share/apps/carddecks
-		--with-pysol-card-theme-path="${EPREFIX}${GAMES_DATADIR}"/pysolfc"
+	gnome2_src_configure \
+		--with-gtk=3.0 \
+		--with-guile=2.0 \
+		--enable-sound \
+		--with-card-theme-formats=all \
+		--with-kde-card-theme-path="${EPREFIX}"/usr/share/apps/carddecks \
+		--with-pysol-card-theme-path="${EPREFIX}${GAMES_DATADIR}"/pysolfc \
+		GUILE=$(type -P guile-2.0) \
+		ITSTOOL=$(type -P true) \
+		XMLLINT=$(type -P true) \
+		${myconf}
 }
 
 pkg_postinst() {

diff --git a/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch b/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch
new file mode 100644
index 0000000..2dd9001
--- /dev/null
+++ b/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch
@@ -0,0 +1,28 @@
+Do not require a particular SVG library unless actually found.
+
+--- a/configure.ac	2015-05-11 00:13:51.180002639 +0200
++++ b/configure.ac	2015-05-11 00:13:40.365069049 +0200
+@@ -319,7 +319,9 @@
+ 
+   PKG_CHECK_EXISTS([librsvg-2.0 >= $RSVG_REQUIRED],[have_rsvg=yes],[have_rsvg=no])
+ 
+-  PKGS="$PKGS librsvg-2.0 >= $RSVG_REQUIRED cairo >= $CAIRO_REQUIRED"
++  if test "$have_rsvg" = "yes" ; then
++    PKGS="$PKGS librsvg-2.0 >= $RSVG_REQUIRED cairo >= $CAIRO_REQUIRED"
++  fi
+ 
+   AC_DEFINE([HAVE_RSVG],[1],[Refine if librsvg is available])
+ fi
+@@ -334,8 +336,10 @@
+ 
+   PKG_CHECK_EXISTS([QtSvg >= $QT_SVG_REQUIRED],[have_qtsvg=yes],[have_qtsvg=no])
+ 
+-  PKGS="$PKGS QtSvg >= $QT_SVG_REQUIRED"
+-  EXTRA_CXX_LIBS="$EXTRA_CXX_LIBS -lstdc++"
++  if test "$have_qtsvg" = "yes" ; then
++    PKGS="$PKGS QtSvg >= $QT_SVG_REQUIRED"
++    EXTRA_CXX_LIBS="$EXTRA_CXX_LIBS -lstdc++"
++  fi
+ 
+   AC_DEFINE([HAVE_QTSVG],[1],[Refine if QtSvg is available])
+ fi


             reply	other threads:[~2015-05-10 22:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10 22:29 Gilles Dartiguelongue [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-10-31 10:37 [gentoo-commits] proj/gnome:master commit in: games-board/aisleriot/, games-board/aisleriot/files/ Gilles Dartiguelongue
2016-11-13 12:07 Gilles Dartiguelongue
2017-09-03 10:30 Gilles Dartiguelongue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431296807.b3277001ace571abba8a04bc07e4f5c5616b2cae.eva@gentoo \
    --to=eva@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox