1 |
commit: 661fb2d44de4f77afc239eb9761030958c2690cc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 5 17:56:39 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 5 18:01:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=661fb2d4 |
7 |
|
8 |
app-admin/testdisk: Bump to 7.1_pre20180922 snapshot |
9 |
|
10 |
Bug: https://bugs.gentoo.org/654866 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
app-admin/testdisk/Manifest | 1 + |
14 |
app-admin/testdisk/testdisk-7.1_pre20180922.ebuild | 99 ++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/testdisk/Manifest b/app-admin/testdisk/Manifest |
18 |
index 2a977ec6d5e..99dba768e84 100644 |
19 |
--- a/app-admin/testdisk/Manifest |
20 |
+++ b/app-admin/testdisk/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST testdisk-6837474129968d7de13d91e5454bd824c9136e73.tar.gz 637265 BLAKE2B 7d7a2c875db9d34ad5be687ef0ccc8122759c645b30faf6eed7967747e69ac988078ab6c1909007c32c6bf5a879a5bfd00dff3d2d268e5b50e3b60a8b660c636 SHA512 b494e23ccd8f913a9b22f4b803b02af66e94f6971f45e6aea8a0e1dd8549996e7bdd3fafcf70078ebc242f262d064cdc5674d99cb7a367b810c45c0b1c40336d |
23 |
DIST testdisk-7.1_pre20180322.tar.gz 632598 BLAKE2B 741610622c9afa2c41d14e8eb391cbe629a5f7ac102cf4cbf446b0c0d7330cb8482a17c1ce8470aa9d1b0578aac254cf17aa061e21dd831a803152514fab5422 SHA512 fbe699ccfbe31be636d71eda5d1fccb8efb16788bf664e048ee16344c3d3689961aaa7ef4c9123690db695bb7ae3439440bd775ab8b8455500232b2fc6048ebc |
24 |
|
25 |
diff --git a/app-admin/testdisk/testdisk-7.1_pre20180922.ebuild b/app-admin/testdisk/testdisk-7.1_pre20180922.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..f5f2f95d5e0 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/testdisk/testdisk-7.1_pre20180922.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+EGIT_COMMIT=6837474129968d7de13d91e5454bd824c9136e73 |
37 |
+inherit autotools flag-o-matic gnome2-utils |
38 |
+ |
39 |
+DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool" |
40 |
+HOMEPAGE="https://www.cgsecurity.org/wiki/TestDisk" |
41 |
+SRC_URI="https://git.cgsecurity.org/cgit/${PN}/snapshot/${PN}-${EGIT_COMMIT}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2+" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86" |
46 |
+IUSE="ewf jpeg ntfs qt5 reiserfs static zlib" |
47 |
+ |
48 |
+REQUIRED_USE="static? ( !qt5 )" |
49 |
+ |
50 |
+# WARNING: reiserfs support does NOT work with reiserfsprogs |
51 |
+# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released). |
52 |
+COMMON_DEPEND=" |
53 |
+ static? ( |
54 |
+ sys-apps/util-linux[static-libs] |
55 |
+ sys-fs/e2fsprogs[static-libs] |
56 |
+ sys-libs/ncurses:0[static-libs] |
57 |
+ jpeg? ( virtual/jpeg:0[static-libs] ) |
58 |
+ ntfs? ( sys-fs/ntfs3g:=[static-libs] ) |
59 |
+ reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] ) |
60 |
+ zlib? ( sys-libs/zlib[static-libs] ) |
61 |
+ !arm? ( ewf? ( app-forensics/libewf:=[static-libs] ) ) |
62 |
+ ) |
63 |
+ !static? ( |
64 |
+ sys-apps/util-linux |
65 |
+ sys-fs/e2fsprogs |
66 |
+ sys-libs/ncurses:0= |
67 |
+ jpeg? ( virtual/jpeg:0 ) |
68 |
+ ntfs? ( sys-fs/ntfs3g ) |
69 |
+ qt5? ( |
70 |
+ dev-qt/qtcore:5 |
71 |
+ dev-qt/qtgui:5 |
72 |
+ dev-qt/qtwidgets:5 |
73 |
+ ) |
74 |
+ reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 ) |
75 |
+ zlib? ( sys-libs/zlib ) |
76 |
+ !arm? ( ewf? ( app-forensics/libewf:= ) ) |
77 |
+ ) |
78 |
+" |
79 |
+DEPEND="${COMMON_DEPEND} |
80 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
81 |
+" |
82 |
+RDEPEND="!static? ( ${COMMON_DEPEND} )" |
83 |
+ |
84 |
+DOCS=( ) |
85 |
+ |
86 |
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}" |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local myeconfargs=( |
95 |
+ --enable-sudo |
96 |
+ --without-ntfs |
97 |
+ $(use_with ewf) |
98 |
+ $(use_with jpeg) |
99 |
+ $(use_with ntfs ntfs3g) |
100 |
+ $(use_enable qt5 qt) |
101 |
+ $(use_with reiserfs) |
102 |
+ $(use_with zlib) |
103 |
+ ) |
104 |
+ |
105 |
+ # this static method is the same used by upstream for their 'static' make |
106 |
+ # target, but better, as it doesn't break. |
107 |
+ use static && append-ldflags -static |
108 |
+ |
109 |
+ econf "${myeconfargs[@]}" |
110 |
+ |
111 |
+ # perform safety checks for NTFS, REISERFS and JPEG |
112 |
+ if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then |
113 |
+ die "Failed to find either NTFS or NTFS-3G library." |
114 |
+ fi |
115 |
+ if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then |
116 |
+ die "Failed to find reiserfs library." |
117 |
+ fi |
118 |
+ if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then |
119 |
+ die "Failed to find jpeg library." |
120 |
+ fi |
121 |
+} |
122 |
+ |
123 |
+pkg_postinst() { |
124 |
+ gnome2_icon_cache_update |
125 |
+} |
126 |
+ |
127 |
+pkg_postrm() { |
128 |
+ gnome2_icon_cache_update |
129 |
+} |