forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.2.27
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST gparted-0.23.0.tar.bz2 2264376 SHA256 7fd1dddf29814c2982f55ab765b8918561e1b5dabf792012c66b4d3ba25da754 SHA512 5ac03da1b13b23ee36006a4e785fd9b67968763305b5b0657948ac5c68391ba9643d53d44ff29703fa78a5df877a95a5be4ef41e83da524d8362a46bc15cbf06 WHIRLPOOL 2a24d6dfb3aa52f9c0e42b6897d06e8911620f6ddd2cea44b61b49b80244c147104e01356c3c300c56f62975df94fb4112ef4682e365988f729138fd202c5b26 | ||
DIST gparted-0.24.0.tar.bz2 2276313 SHA256 02398ab33894a59b0bd8707e598c46d8bb56f1413cd54de48eed61e2920ecd60 SHA512 914e8292adfd8648e57a83303721eb94d8527135d46bf9f5a9c53265294b44109c7f00e40761c26f186f97a8ef4a58ed16f53b3db6f78db3b4052dc5ed99755a WHIRLPOOL 81d774e3bcd5c08c90fd41a5bb7ef7e403e28c59401212f0501fa551fc66c08bb5ca415d1e69d173d3e54797c24de437d5ec677ac1f0698b0d4a9331bbd6b987 | ||
DIST gparted-0.25.0.tar.gz 3240180 SHA256 2d996d5f4921d49eae850a1824acb8ab1299b1ea9bbb9c607248cd6c8cdc94ae SHA512 c15b27ad85f5f4937d87e9eb3b6dadb4b0502cc076eed726d23fbd08667bdb1263539a5552e85ecc2195a4e8d4556a898130ab0aa407bbe3bcbd18148c4765c9 WHIRLPOOL 5e540e73e72042f521ad23f7145c24c6394274d0765f577153b45e34191d609baa0600be12bb46511600be60072759a7af9a37fe2684101b8d1ca7ab214585ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI="5" | ||
GCONF_DEBUG="no" | ||
|
||
inherit gnome2 | ||
|
||
DESCRIPTION="Gnome Partition Editor" | ||
HOMEPAGE="http://gparted.sourceforge.net/" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" | ||
|
||
LICENSE="GPL-2+ FDL-1.2+" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~ppc ~x86" | ||
IUSE="btrfs dmraid f2fs fat hfs jfs kde mdadm ntfs policykit reiserfs reiser4 xfs" | ||
|
||
# FIXME: add gpart support | ||
COMMON_DEPEND=" | ||
>=dev-cpp/glibmm-2.14:2 | ||
>=dev-cpp/gtkmm-2.22:2.4 | ||
>=dev-libs/glib-2:2 | ||
>=sys-block/parted-3.2:= | ||
" | ||
RDEPEND="${COMMON_DEPEND} | ||
!policykit? ( | ||
kde? ( kde-apps/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 ) | ||
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-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 | ||
dev-util/intltool | ||
sys-devel/gettext | ||
virtual/pkgconfig | ||
" | ||
|
||
src_prepare() { | ||
sed -i -e 's:Exec=@gksuprog@ :Exec=:' gparted.desktop.in.in || die | ||
gnome2_src_prepare | ||
} | ||
|
||
src_configure() { | ||
gnome2_src_configure \ | ||
--enable-doc \ | ||
--enable-online-resize \ | ||
GKSUPROG=$(type -P true) | ||
} | ||
|
||
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 | ||
fi | ||
} |