summaryrefslogtreecommitdiff
path: root/x11-misc/xdialog/xdialog-2.3.1-r1.ebuild
blob: b04058431d623851c117b318efda69447c90b48f (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Drop-in replacement for cdialog using GTK"
HOMEPAGE="http://xdialog.free.fr/"
SRC_URI="http://${PN}.free.fr/Xdialog-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc x86"
IUSE="doc examples nls"

RDEPEND="
	dev-libs/glib:2
	>=x11-libs/gtk+-2.2:2
"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	nls? ( sys-devel/gettext )
"

S="${WORKDIR}/${P/x/X}"

DOCS=( AUTHORS BUGS ChangeLog README )

PATCHES=(
	"${FILESDIR}"/${P}-no-strip.patch
	"${FILESDIR}"/${P}-install.patch
)

src_prepare() {
	default

	sed -i -e 's:configure.in:configure.ac:' configure.in || die

	eautoreconf
}

src_configure() {
	econf \
		$(use_enable nls) \
		--with-gtk2
}

src_install() {
	default

	rm -r "${ED}"/usr/share/doc || die
	use doc && local HTML_DOCS=( doc/. )
	einstalldocs

	if use examples; then
		docinto examples
		dodoc samples/*
	fi
}