blob: ca3145531906c080e006e0667c78ec2ca520fe26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# 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 qt4"
# 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[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 )
qt4? ( >=dev-qt/qtsvg-4.4:4 )
"
DEPEND="${COMMON_DEPEND}
app-arch/gzip
dev-libs/libxml2
>=dev-util/intltool-0.40.4
dev-util/itstool
sys-apps/lsb-release
>=sys-devel/gettext-0.12
virtual/pkgconfig
gnome? ( app-text/docbook-xml-dtd:4.3 )
"
# dev-util/itstool really needed for help file generation
# >=app-text/yelp-tools-3.1.1
src_prepare() {
# Fix SVG detection and usage
eapply "${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
if use qt4 ; 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 \
GUILE=$(type -P guile-2.0) \
${myconf[@]}
}
pkg_postinst() {
gnome2_pkg_postinst
elog "Aisleriot can use additional card themes from games-board/pysolfc"
elog "and kde-base/libkdegames."
}
|