blob: 2bdb65c05aa6ca855e705f9b0cfb0984f1413da8 (
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
90
91
92
93
94
95
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-block/gparted/gparted-0.14.1.ebuild,v 1.4 2013/04/09 09:59:40 ssuominen Exp $
EAPI="5"
GCONF_DEBUG="no"
inherit gnome2
DESCRIPTION="Gnome Partition Editor"
HOMEPAGE="http://gparted.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="btrfs dmraid fat gtk hfs jfs kde mdadm ntfs policykit reiserfs reiser4 xfs"
# FIXME: add gpart support
COMMON_DEPEND=">=dev-cpp/gtkmm-2.22:2.4
>=dev-libs/glib-2:2
>=sys-block/parted-3.1:="
RDEPEND="${COMMON_DEPEND}
!policykit? (
gtk? ( x11-libs/gksu )
kde? ( kde-base/kdesu ) )
policykit? ( sys-auth/polkit )
>=sys-apps/util-linux-2.20
>=sys-fs/e2fsprogs-1.41
btrfs? ( sys-fs/btrfs-progs )
dmraid? (
>=sys-fs/lvm2-2.02.45
sys-fs/dmraid
sys-fs/multipath-tools )
fat? (
sys-fs/dosfstools
sys-fs/mtools )
hfs? (
sys-fs/diskdev_cmds
virtual/udev
sys-fs/hfsutils )
jfs? ( sys-fs/jfsutils )
mdadm? ( sys-fs/mdadm )
ntfs? ( >=sys-fs/ntfs3g-2011.4.12[ntfsprogs] )
reiserfs? ( sys-fs/reiserfsprogs )
reiser4? ( sys-fs/reiser4progs )
xfs? ( sys-fs/xfsprogs sys-fs/xfsdump )"
DEPEND="${COMMON_DEPEND}
app-text/docbook-xml-dtd:4.1.2
app-text/gnome-doc-utils
app-text/rarian
dev-util/intltool
virtual/pkgconfig"
src_configure() {
DOCS="AUTHORS ChangeLog NEWS README"
G2CONF="${G2CONF}
--enable-doc
GKSUPROG=$(type -P true)"
gnome2_src_configure
}
src_prepare() {
sed -i -e 's:Exec=@gksuprog@ :Exec=:' gparted.desktop.in.in || die
gnome2_src_prepare
}
src_install() {
gnome2_src_install
local _ddir="${D}"/usr/share/applications
if use policykit; then
sed -i -e 's:/usr/sbin/gparted %f:gparted-pkexec:' "${_ddir}"/gparted.desktop
insinto /usr/share/polkit-1/actions/
doins "${FILESDIR}"/org.gentoo.pkexec.gparted.policy
dobin "${FILESDIR}"/gparted-pkexec
else
if use kde; then
cp "${_ddir}"/gparted{,-kde}.desktop
sed -i -e 's:Exec=:Exec=kdesu :' "${_ddir}"/gparted-kde.desktop
echo 'OnlyShowIn=KDE;' >> "${_ddir}"/gparted-kde.desktop
fi
if use gtk; then
sed -i -e 's:Exec=:Exec=gksu :' "${_ddir}"/gparted.desktop
echo 'NotShowIn=KDE;' >> "${_ddir}"/gparted.desktop
else
echo 'OnlyShowIn=X-NeverShowThis;' >> "${_ddir}"/gparted.desktop
fi
fi
}
|