blob: 33b2f9a747caeba59c0eb8a4c761418d30b1c1ef (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/dialogblocks/dialogblocks-4.17.ebuild,v 1.1 2007/10/22 22:23:58 mrness Exp $
inherit eutils
DESCRIPTION="GUI builder tool for wxWidgets"
HOMEPAGE="http://www.anthemion.co.uk/dialogblocks/"
SRC_URI="!amd64? ( http://www.anthemion.co.uk/${PN}/DialogBlocks-${PV}-i386-gtk2-unicode.tar.gz )
amd64? ( http://www.anthemion.co.uk/${PN}/DialogBlocks-${PV}-i686-64bit.tar.gz )"
SLOT="0"
LICENSE="as-is"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=">=x11-libs/gtk+-2" # make sure gtk+ is installed before built_with_use test
RDEPEND="${DEPEND}
>=media-libs/libpng-1.2
media-libs/jpeg
>=media-libs/tiff-3"
S="${WORKDIR}"
RESTRICT="strip" # the dialogblocks program is already stripped
src_install() {
dodir /opt/dialogblocks
tar -xzf DialogBlocksData.tar.gz -C "${D}/opt/dialogblocks" || die "failed to extract data from tarball"
fowners -R root:root /opt/dialogblocks
dosym /opt/dialogblocks/dialogblocks32x32.xpm /usr/share/pixmaps/dialogblocks.xpm
insinto /usr/share/applications
doins "${FILESDIR}/dialogblocks.desktop"
newbin "${FILESDIR}/dialogblocks.sh" dialogblocks
}
pkg_postinst() {
# Fix incorrect owner of the directories, created by previous versions
chown -R root:root "${ROOT}"/opt/dialogblocks
if ! built_with_use ">=x11-libs/gtk+-2" xinerama ; then
eerror "In order to emerge this package, you need to re-emerge"
eerror "x11-libs/gtk+ with xinerama USE flag enabled."
fi
}
|