2011-11-19 20:13:51 +01:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
2010-05-09 10:36:20 +02:00
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
DESCRIPTION="Partition cloning tool"
|
|
|
|
HOMEPAGE="http://partclone.org"
|
|
|
|
SRC_URI="mirror://sourceforge/partclone/partclone_${PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 x86"
|
2011-11-19 20:13:51 +01:00
|
|
|
IUSE="xfs reiserfs reiser4 hfs fat ntfs jfs"
|
2010-05-09 10:36:20 +02:00
|
|
|
|
2011-11-19 20:13:51 +01:00
|
|
|
DEPEND=">=sys-fs/e2fsprogs-1.41.4
|
2010-05-09 10:36:20 +02:00
|
|
|
fat? ( sys-fs/dosfstools )
|
|
|
|
ntfs? ( sys-fs/ntfsprogs )
|
|
|
|
hfs? ( sys-fs/hfsutils )
|
|
|
|
jfs? ( sys-fs/jfsutils )
|
|
|
|
reiserfs? ( sys-fs/progsreiserfs )
|
|
|
|
reiser4? ( sys-fs/reiser4progs )
|
2011-11-19 20:13:51 +01:00
|
|
|
xfs? ( sys-fs/xfsprogs )"
|
|
|
|
RDEPEND="${DEPEND}"
|
2010-05-09 10:36:20 +02:00
|
|
|
|
2011-11-19 20:13:51 +01:00
|
|
|
src_configure()
|
2010-05-09 10:36:20 +02:00
|
|
|
{
|
|
|
|
local myconf
|
|
|
|
myconf="${myconf} --enable-extfs --enable-ncursesw"
|
|
|
|
use xfs && myconf="${myconf} --enable-xfs"
|
|
|
|
use reiserfs && myconf="${myconf} --enable-reiserfs"
|
|
|
|
use reiser4 && myconf="${myconf} --enable-reiser4"
|
|
|
|
use hfs && myconf="${myconf} --enable-hfsp"
|
|
|
|
use fat && myconf="${myconf} --enable-fat"
|
|
|
|
use ntfs && myconf="${myconf} --enable-ntfs"
|
|
|
|
use xfs && myconf="${myconf} --enable-xfs"
|
|
|
|
|
|
|
|
econf ${myconf} || die "econf failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install()
|
|
|
|
{
|
|
|
|
#emake install || die "make install failed"
|
|
|
|
#emake DIST_ROOT="${D}" install || die "make install failed"
|
|
|
|
cd ${S}/src
|
|
|
|
dosbin partclone.dd partclone.restore partclone.chkimg
|
|
|
|
dosbin partclone.extfs
|
|
|
|
use xfs && dosbin partclone.xfs
|
|
|
|
use reiserfs && dosbin partclone.reiserfs
|
|
|
|
use reiser4 && dosbin partclone.reiser4
|
|
|
|
use hfs && dosbin partclone.hfsp
|
|
|
|
use fat && dosbin partclone.fat
|
|
|
|
use ntfs && dosbin partclone.ntfs
|
|
|
|
use ntfs && dosbin partclone.ntfsfixboot
|
|
|
|
}
|
|
|
|
|