Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/testdisk: ChangeLog testdisk-6.12.ebuild
Date: Sun, 03 Jul 2011 23:58:15
Message-Id: 20110703235806.B52E92004B@flycatcher.gentoo.org
1 robbat2 11/07/03 23:58:06
2
3 Modified: ChangeLog
4 Added: testdisk-6.12.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.41 app-admin/testdisk/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/testdisk/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/testdisk/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/testdisk/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/testdisk/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -p -w -b -B -u -u -r1.40 -r1.41
23 --- ChangeLog 25 Feb 2011 18:13:56 -0000 1.40
24 +++ ChangeLog 3 Jul 2011 23:58:06 -0000 1.41
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-admin/testdisk
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/testdisk/ChangeLog,v 1.40 2011/02/25 18:13:56 signals Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/testdisk/ChangeLog,v 1.41 2011/07/03 23:58:06 robbat2 Exp $
30 +
31 +*testdisk-6.12 (03 Jul 2011)
32 +
33 + 03 Jul 2011; Robin H. Johnson <robbat2@g.o> +testdisk-6.12.ebuild:
34 + Version bump.
35
36 25 Feb 2011; Kevin McCarthy <signals@g.o> testdisk-6.5.ebuild,
37 testdisk-6.8-r1.ebuild, testdisk-6.10.ebuild, testdisk-6.11-r1.ebuild,
38
39
40
41 1.1 app-admin/testdisk/testdisk-6.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/testdisk/testdisk-6.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/testdisk/testdisk-6.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: testdisk-6.12.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/testdisk/testdisk-6.12.ebuild,v 1.1 2011/07/03 23:58:06 robbat2 Exp $
51
52 EAPI=2
53 inherit eutils flag-o-matic
54
55 DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool"
56 HOMEPAGE="http://www.cgsecurity.org/wiki/TestDisk"
57 SRC_URI="http://www.cgsecurity.org/${P}.tar.bz2"
58 #SRC_URI="http://www.cgsecurity.org/${P}-WIP.tar.bz2"
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86"
62 IUSE="static reiserfs ntfs jpeg"
63 # WARNING: reiserfs support does NOT work with reiserfsprogs
64 # you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released).
65 DEPEND=">=sys-libs/ncurses-5.2
66 jpeg? ( virtual/jpeg )
67 ntfs? ( || ( >=sys-fs/ntfsprogs-2.0.0 sys-fs/ntfs3g ) )
68 reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 )
69 >=sys-fs/e2fsprogs-1.35
70 sys-libs/zlib"
71 RDEPEND="!static? ( ${DEPEND} )"
72
73 #S=${WORKDIR}/${P}-WIP
74
75 # merged upstream
76 #src_prepare() {
77 # epatch "${FILESDIR}"/${P}-exif_bound_checking-v2.patch
78 #}
79
80 src_configure() {
81 local myconf="--without-ewf --enable-sudo"
82 # --with-foo are broken, any use of --with/--without disable the
83 # functionality.
84 # The following variation must be used.
85 use reiserfs || myconf="${myconf} --without-reiserfs"
86 use ntfs || myconf="${myconf} --without-ntfs"
87 use jpeg || myconf="${myconf} --without-jpeg"
88
89 # this is static method is the same used by upstream for their 'static' make
90 # target, but better, as it doesn't break.
91 use static && append-ldflags -static
92
93 econf ${myconf} || die
94
95 # perform safety checks for NTFS and REISERFS
96 if useq ntfs && egrep -q 'undef HAVE_LIBNTFS\>' "${S}"/config.h ; then
97 die "Failed to find NTFS library."
98 fi
99 if useq reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then
100 die "Failed to find reiserfs library."
101 fi
102 if useq jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then
103 die "Failed to find jpeg library."
104 fi
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install || die
109 [ "$PF" != "$P" ] && mv "${D}"/usr/share/doc/${P} "${D}"/usr/share/doc/${PF}
110 }