commit:     c1beb3384a0d192ec6bbbfa1cfbbbdd158415bee
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 12 12:42:32 2016 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sat Nov 12 12:42:32 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gnome.git/commit/?id=c1beb338

games-board/aisleriot: 3.22.0 → 3.22.1

Package-Manager: portage-2.3.2
Manifest-Sign-Key: C6085806

 games-board/aisleriot/aisleriot-3.22.1.ebuild | 86 +++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)

diff --git a/games-board/aisleriot/aisleriot-3.22.1.ebuild 
b/games-board/aisleriot/aisleriot-3.22.1.ebuild
new file mode 100644
index 0000000..9e0f323
--- /dev/null
+++ b/games-board/aisleriot/aisleriot-3.22.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools gnome2
+
+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="debug gnome qt5"
+
+# 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:12[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 )
+       qt5? ( >=dev-qt/qtsvg-5:5 )
+"
+DEPEND="${COMMON_DEPEND}
+       app-arch/gzip
+       app-text/yelp-tools
+       >=dev-util/intltool-0.40.4
+       gnome-base/gnome-common
+       sys-apps/lsb-release
+       >=sys-devel/gettext-0.12
+       virtual/pkgconfig
+       gnome? ( app-text/docbook-xml-dtd:4.3 )
+"
+
+src_prepare() {
+       # Fix SVG detection and usage
+       eapply "${FILESDIR}"/${PN}-3.22.0-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
+
+       if use qt5 ; then
+               myconf+=(
+                       --with-card-theme-formats=all
+                       
--with-kde-card-theme-path="${EPREFIX}"/usr/share/apps/carddecks
+               )
+       else
+               myconf+=( --with-card-theme-formats=svg,fixed,pysol )
+       fi
+
+       gnome2_src_configure \
+               --with-gtk=3.0 \
+               --with-guile=2.0 \
+               $(usex debug --enable-debug=yes --enable-debug=minimum) \
+               --enable-sound \
+               
--with-pysol-card-theme-path="${EPREFIX}${GAMES_DATADIR}"/pysolfc \
+               ${myconf[@]}
+}
+
+pkg_postinst() {
+       gnome2_pkg_postinst
+
+       elog "Aisleriot can use additional card themes from games-board/pysolfc"
+       elog "and kde-base/libkdegames."
+}

Reply via email to