Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 408027 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-38 / +47 lines)
Line  Link Here
0
-- /usr/portage/games-board/xboard/xboard-4.5.3a.ebuild
0
++ xboard-4.6.0.ebuild
Lines 1-67 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-board/xboard/xboard-4.5.3a.ebuild,v 1.2 2012/01/04 17:57:53 phajdan.jr Exp $
3
# $Header: $
4
4
5
EAPI=2
5
EAPI=3
6
inherit autotools eutils games
6
7
inherit games fdo-mime gnome2-utils
7
8
8
DESCRIPTION="GUI for gnuchess and for internet chess servers"
9
DESCRIPTION="GUI for gnuchess and for internet chess servers"
9
HOMEPAGE="http://www.gnu.org/software/xboard/"
10
HOMEPAGE="http://www.gnu.org/software/xboard/"
10
SRC_URI="mirror://gnu/xboard/${P}.tar.gz
11
SRC_URI="mirror://gnu/xboard/${P}.tar.gz"
11
	mirror://gentoo/${PN}.png"
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-3"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~ppc ~ppc64 x86"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
IUSE="Xaw3d +default-font zippy"
16
IUSE="+default-font engine Xaw3d zippy"
17
RESTRICT="test" #124112
18
19
RDEPEND="Xaw3d? ( x11-libs/libXaw3d )
20
	x11-libs/libXpm
21
	x11-libs/libXaw
22
	x11-libs/libSM
23
	x11-libs/libX11
24
	x11-libs/libXt
25
	x11-libs/libXmu
26
	x11-libs/libXext
27
	x11-libs/libICE
28
	default-font? ( media-fonts/font-adobe-100dpi )"
29
DEPEND="${RDEPEND}
30
	x11-proto/xproto"
31
32
src_unpack() {
33
	unpack ${P}.tar.gz
34
}
35
17
36
src_prepare() {
18
RDEPEND="x11-libs/libXaw
37
	epatch "${FILESDIR}"/${P}*
19
	default-font? ( media-fonts/font-adobe-100dpi )
38
	eautoreconf
20
	engine? ( || (
39
}
21
		games-board/gnuchess
22
		games-board/crafty
23
		games-board/fruit
24
		games-board/phalanx
25
		games-board/sjeng
26
	) )
27
	Xaw3d? ( x11-libs/libXaw3d )"
28
DEPEND="${RDEPEND}"
40
29
41
src_configure() {
30
src_configure() {
42
	egamesconf \
31
	egamesconf \
43
		--disable-dependency-tracking \
32
		--disable-dependency-tracking \
44
		--datadir="${GAMES_DATADIR}"/${PN} \
33
		--datadir=${GAMES_DATADIR_BASE} \
45
		$(use_with Xaw3d) \
34
		$(use_with Xaw3d) \
46
		$(use_enable zippy)
35
		$(use_enable zippy)
47
}
36
}
48
37
49
src_install() {
38
src_install() {
50
	emake DESTDIR="${D}" install || die "emake install failed"
39
	emake DESTDIR="${D}" install || die "emake install failed"
51
	dodoc AUTHORS COPYRIGHT ChangeLog NEWS README TODO ics-parsing.txt
40
52
	use zippy && dodoc zippy.README
41
	dodoc AUTHORS COPYRIGHT ChangeLog NEWS README TODO ics-parsing.txt || die
53
	dohtml FAQ.html
42
	if use zippy ; then
54
	doicon "${DISTDIR}"/xboard.png
43
		dodoc zippy.README || die
55
	make_desktop_entry ${PN} "Xboard (Chess)"
44
	fi
45
	dohtml FAQ.html || die
46
56
	prepgamesdirs
47
	prepgamesdirs
57
}
48
}
58
49
50
pkg_preinst() {
51
	games_pkg_preinst
52
	gnome2_icon_savelist
53
}
54
59
pkg_postinst() {
55
pkg_postinst() {
60
	games_pkg_postinst
56
	games_pkg_postinst
57
58
	fdo-mime_desktop_database_update
59
	fdo-mime_mime_database_update
60
61
	gnome2_icon_cache_update
62
61
	elog "No chess engines are emerged by default! If you want a chess engine"
63
	elog "No chess engines are emerged by default! If you want a chess engine"
62
	elog "to play with, you can emerge gnuchess or crafty."
64
	elog "to play with, you can emerge gnuchess or crafty or enable the 'engine' useflag."
63
	elog "Read xboard FAQ for information."
65
	elog "Read xboard FAQ for information."
64
	if ! use default-font ; then
66
	if ! use default-font ; then
65
		ewarn "Read the xboard(6) man page for specifying the font for xboard to use."
67
		ewarn "Read the xboard(6) man page for specifying the font for xboard to use."
66
	fi
68
	fi
67
}
69
}
70
71
pkg_postrm() {
72
	fdo-mime_desktop_database_update
73
	fdo-mime_mime_database_update
74
75
	gnome2_icon_cache_update
76
}

Return to bug 408027