1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Partition cloning tool"
10 HOMEPAGE="http://partclone.org"
11 SRC_URI="http://github.com/Thomas-Tsai/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="btrfs reiserfs reiser4 hfs fat minix ntfs jfs static vmfs xfs"
18 # xfsprogs, see https://bugs.gentoo.org/show_bug.cgi?id=486514
19 RDEPEND="${common_depends}
21 btrfs? ( sys-fs/btrfs-progs )
22 fat? ( sys-fs/dosfstools )
23 ntfs? ( sys-fs/ntfs3g )
24 hfs? ( sys-fs/hfsutils )
25 jfs? ( sys-fs/jfsutils )
26 reiserfs? ( sys-fs/progsreiserfs )
27 reiser4? ( sys-fs/reiser4progs )
28 xfs? ( >=sys-fs/xfsprogs-3.1.11-r1 )
29 static? ( sys-fs/e2fsprogs[static-libs]
30 sys-fs/xfsprogs[static-libs]
31 sys-libs/ncurses[static-libs]
32 sys-fs/ntfs3g[static-libs]
39 #epatch "${FILESDIR}/${PN}-xfslib.patch"
46 myconf="${myconf} --enable-extfs --enable-ncursesw --enable-fs-test"
47 use xfs && myconf="${myconf} --enable-xfs"
48 use reiserfs && myconf="${myconf} --enable-reiserfs"
49 use reiser4 && myconf="${myconf} --enable-reiser4"
50 use hfs && myconf="${myconf} --enable-hfsp"
51 use fat && myconf="${myconf} --enable-fat --enable-exfat"
52 use ntfs && myconf="${myconf} --enable-ntfs"
53 use minix && myconf="${myconf} --enable-minix"
54 use jfs && myconf="${myconf} --enable-jfs"
55 use btrfs && myconf="${myconf} --enable-btrfs"
56 use vmfs && myconf="${myconf} --enable-vmfs"
57 use static && myconf="${myconf} --enable-static"
59 econf ${myconf} || die "econf failed"
60 emake || die "make failed"
65 #emake install || die "make install failed"
66 #emake DIST_ROOT="${D}" install || die "make install failed"
68 dosbin partclone.dd partclone.restore partclone.chkimg
69 dosbin partclone.extfs
70 use xfs && dosbin partclone.xfs
71 use reiserfs && dosbin partclone.reiserfs
72 use reiser4 && dosbin partclone.reiser4
73 use hfs && dosbin partclone.hfsp
74 use fat && dosbin partclone.fat
75 use ntfs && dosbin partclone.ntfs
76 use ntfs && dosbin partclone.ntfsfixboot