Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: games-board/aisleriot/, games-board/aisleriot/files/
Date: Sun, 03 Sep 2017 10:30:28
Message-Id: 1504434438.922da42611a6f519be2cc3f70c2b383e98b089c9.eva@gentoo
1 commit: 922da42611a6f519be2cc3f70c2b383e98b089c9
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 3 10:27:18 2017 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 3 10:27:18 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=922da426
7
8 games-board/aisleriot: version bump 3.22.1 → 3.22.2
9
10 Add missing dependency on autoconf-archive, bug #627182.
11 Add C++11 requirement due to Qt5, bug #617256.
12
13 Package-Manager: Portage-2.3.8, Repoman-2.3.3
14 Manifest-Sign-Key: 0x5A56C8CD0C13248A
15
16 games-board/aisleriot/aisleriot-3.22.2.ebuild | 87 ++++++++++++++++++++++
17 .../aisleriot-3.22.2-qt5-requires-cxx11.patch | 27 +++++++
18 2 files changed, 114 insertions(+)
19
20 diff --git a/games-board/aisleriot/aisleriot-3.22.2.ebuild b/games-board/aisleriot/aisleriot-3.22.2.ebuild
21 new file mode 100644
22 index 00000000..c492247a
23 --- /dev/null
24 +++ b/games-board/aisleriot/aisleriot-3.22.2.ebuild
25 @@ -0,0 +1,87 @@
26 +# Copyright 1999-2017 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=6
31 +GNOME2_EAUTORECONF="yes"
32 +
33 +inherit gnome2
34 +
35 +DESCRIPTION="A collection of solitaire card games for GNOME"
36 +HOMEPAGE="https://wiki.gnome.org/action/show/Apps/Aisleriot"
37 +
38 +LICENSE="GPL-3 LGPL-3 FDL-1.1"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="debug gnome qt5"
42 +
43 +# FIXME: quartz support?
44 +# Does not build with guile-2.0.0 or 2.0.1
45 +COMMON_DEPEND="
46 + >=dev-libs/glib-2.32:2
47 + >=dev-scheme/guile-2.0.5:12[deprecated,regex]
48 + >=gnome-base/librsvg-2.32:2
49 + >=media-libs/libcanberra-0.26[gtk3]
50 + >=x11-libs/cairo-1.10
51 + >=x11-libs/gtk+-3.4:3
52 + gnome? ( >=gnome-base/gconf-2.0:2 )
53 + qt5? ( >=dev-qt/qtsvg-5:5 )
54 +"
55 +DEPEND="${COMMON_DEPEND}
56 + app-arch/gzip
57 + app-text/yelp-tools
58 + >=dev-util/intltool-0.40.4
59 + gnome-base/gnome-common
60 + sys-apps/lsb-release
61 + sys-devel/autoconf-archive
62 + >=sys-devel/gettext-0.12
63 + virtual/pkgconfig
64 + gnome? ( app-text/docbook-xml-dtd:4.3 )
65 +"
66 +
67 +PATCHES=(
68 + # Fix SVG detection and usage
69 + "${FILESDIR}"/${PN}-3.22.0-detect-svg.patch
70 + # Fix build with Qt5, bug #617256
71 + "${FILESDIR}"/${PN}-3.22.2-qt5-requires-cxx11.patch
72 +)
73 +
74 +src_configure() {
75 + local myconf=()
76 +
77 + if use gnome; then
78 + myconf+=(
79 + --with-platform=gnome
80 + --with-help-method=ghelp
81 + )
82 + else
83 + myconf+=(
84 + --with-platform=gtk-only
85 + --with-help-method=library
86 + )
87 + fi
88 +
89 + if use qt5 ; then
90 + myconf+=(
91 + --with-card-theme-formats=all
92 + --with-kde-card-theme-path="${EPREFIX}"/usr/share/apps/carddecks
93 + )
94 + else
95 + myconf+=( --with-card-theme-formats=svg,fixed,pysol )
96 + fi
97 +
98 + gnome2_src_configure \
99 + --with-gtk=3.0 \
100 + --with-guile=2.0 \
101 + $(usex debug --enable-debug=yes --enable-debug=minimum) \
102 + --enable-sound \
103 + --with-pysol-card-theme-path="${EPREFIX}${GAMES_DATADIR}"/pysolfc \
104 + ${myconf[@]}
105 +}
106 +
107 +pkg_postinst() {
108 + gnome2_pkg_postinst
109 +
110 + elog "Aisleriot can use additional card themes from games-board/pysolfc"
111 + elog "and kde-base/libkdegames."
112 +}
113
114 diff --git a/games-board/aisleriot/files/aisleriot-3.22.2-qt5-requires-cxx11.patch b/games-board/aisleriot/files/aisleriot-3.22.2-qt5-requires-cxx11.patch
115 new file mode 100644
116 index 00000000..adf4f651
117 --- /dev/null
118 +++ b/games-board/aisleriot/files/aisleriot-3.22.2-qt5-requires-cxx11.patch
119 @@ -0,0 +1,27 @@
120 +From 4f747c66d41f50d017191583e670fec2468c9815 Mon Sep 17 00:00:00 2001
121 +From: Gilles Dartiguelongue <eva@g.o>
122 +Date: Sun, 3 Sep 2017 12:21:17 +0200
123 +Subject: [PATCH] Building against Qt5 requires c++11
124 +
125 +---
126 + configure.ac | 4 ++++
127 + 1 file changed, 4 insertions(+)
128 +
129 +diff --git a/configure.ac b/configure.ac
130 +index ce3209b6..88cecedc 100644
131 +--- a/configure.ac
132 ++++ b/configure.ac
133 +@@ -44,6 +44,10 @@ LT_INIT
134 + LT_LANG([C])
135 + LT_LANG([C++])
136 +
137 ++AC_LANG_CPLUSPLUS
138 ++AC_LANG_COMPILER_REQUIRE
139 ++AX_CXX_COMPILE_STDCXX_11([], [mandatory])
140 ++
141 + # ************
142 + # Dependencies
143 + # ************
144 +--
145 +2.14.1
146 +