You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/gparted/gparted-1.1.0.ebuild

90 lines
2.1 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2 virtualx
DESCRIPTION="Gnome Partition Editor"
HOMEPAGE="https://gparted.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2+ FDL-1.2+"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86"
IUSE="btrfs cryptsetup dmraid f2fs fat hfs jfs kde mdadm ntfs policykit reiserfs reiser4 udf wayland xfs"
COMMON_DEPEND="
!policykit? (
kde? ( >=kde-plasma/kde-cli-tools-5.8.6-r1[kdesu] ) )
policykit? ( >=sys-auth/polkit-0.102 )
>=dev-cpp/glibmm-2.56.1:2
>=dev-cpp/gtkmm-3.24:3.0
>=dev-libs/glib-2.58.3-r1:2
>=sys-block/parted-3.2:=
>=dev-libs/libsigc++-2.10.1:2
"
RDEPEND="${COMMON_DEPEND}
>=sys-apps/util-linux-2.33.2
>=sys-fs/e2fsprogs-1.44.5
btrfs? ( sys-fs/btrfs-progs )
cryptsetup? ( sys-fs/cryptsetup )
dmraid? (
>=sys-fs/lvm2-2.02.116
sys-fs/dmraid
sys-fs/multipath-tools )
f2fs? ( sys-fs/f2fs-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-2016.2.22-r2[ntfsprogs] )
reiserfs? ( sys-fs/reiserfsprogs )
reiser4? ( sys-fs/reiser4progs )
udf? ( sys-fs/udftools )
wayland? ( x11-apps/xhost )
xfs? ( sys-fs/xfsprogs sys-fs/xfsdump )
"
DEPEND="${COMMON_DEPEND}
app-text/docbook-xml-dtd:4.1.2
>=dev-util/intltool-0.51.0-r2
dev-util/itstool
sys-devel/gettext
virtual/pkgconfig
"
src_configure() {
gnome2_src_configure \
--enable-doc \
--enable-online-resize \
$(use_enable wayland xhost-root) \
GKSUPROG=kdesu \
ac_cv_prog_have_scrollkeeper_update=no
}
src_install() {
gnome2_src_install
local _ddir="${D}"/usr/share/applications
local _bdir="${D}"/usr/bin
if ! use policykit; then
if use kde; then
cp "${_ddir}"/gparted{,-kde}.desktop || die
cp "${_bdir}"/gparted{,-kde} || die
sed -i -e '/Exec/ s:gparted:gparted-kde:' "${_ddir}"/gparted-kde.desktop || die
echo 'OnlyShowIn=KDE;' >> "${_ddir}"/gparted-kde.desktop || die
fi
else
sed -i -e 's:kdesu::' "${_bdir}"/gparted || die
fi
}
src_test() {
virtx emake check
}