Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/testdisk/
Date: Thu, 22 Mar 2018 13:07:38
Message-Id: 1521724043.c581a15c5ea12c7160969b8ba7065e2c5bf463a2.asturm@gentoo
1 commit: c581a15c5ea12c7160969b8ba7065e2c5bf463a2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 17 12:59:41 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 22 13:07:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c581a15c
7
8 app-admin/testdisk: Add 7.1_pre20180322 Qt5-based snapshot
9
10 Bug: https://bugs.gentoo.org/639974
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 app-admin/testdisk/Manifest | 1 +
14 app-admin/testdisk/testdisk-7.1_pre20180322.ebuild | 89 ++++++++++++++++++++++
15 2 files changed, 90 insertions(+)
16
17 diff --git a/app-admin/testdisk/Manifest b/app-admin/testdisk/Manifest
18 index aaf4fce8fb0..5a9d30a3529 100644
19 --- a/app-admin/testdisk/Manifest
20 +++ b/app-admin/testdisk/Manifest
21 @@ -1 +1,2 @@
22 DIST testdisk-7.0.tar.bz2 676990 BLAKE2B deeeee290f05d4a992ff69c990cca8480c74e67ba2df0b523640833b968ed98dc9f44e5f33b2666daf07286dd8349b98171d6c65f7f3baae3d5cca159a5c9584 SHA512 b1ebe1d2fca453660a17623b70c06e0195cb5f07056fb7bc683d575c034fb71dfb793582c804dcff0ca57789a6de84bbf13b1a554353811660996e42199102e2
23 +DIST testdisk-7.1_pre20180322.tar.gz 632598 BLAKE2B 741610622c9afa2c41d14e8eb391cbe629a5f7ac102cf4cbf446b0c0d7330cb8482a17c1ce8470aa9d1b0578aac254cf17aa061e21dd831a803152514fab5422 SHA512 fbe699ccfbe31be636d71eda5d1fccb8efb16788bf664e048ee16344c3d3689961aaa7ef4c9123690db695bb7ae3439440bd775ab8b8455500232b2fc6048ebc
24
25 diff --git a/app-admin/testdisk/testdisk-7.1_pre20180322.ebuild b/app-admin/testdisk/testdisk-7.1_pre20180322.ebuild
26 new file mode 100644
27 index 00000000000..7ea7b9df550
28 --- /dev/null
29 +++ b/app-admin/testdisk/testdisk-7.1_pre20180322.ebuild
30 @@ -0,0 +1,89 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +
36 +AUTOTOOLS_AUTORECONF=1
37 +COMMIT=9eb2aa12ce051d8d3d31e6b440389d5abf5efaf1
38 +inherit autotools-utils flag-o-matic
39 +
40 +DESCRIPTION="Checks and undeletes partitions + PhotoRec, signature based recovery tool"
41 +HOMEPAGE="https://www.cgsecurity.org/wiki/TestDisk"
42 +SRC_URI="https://git.cgsecurity.org/cgit/${PN}/snapshot/${PN}-${COMMIT}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86"
47 +IUSE="ewf jpeg ntfs qt5 reiserfs static zlib"
48 +
49 +REQUIRED_USE="static? ( !qt5 )"
50 +
51 +# WARNING: reiserfs support does NOT work with reiserfsprogs
52 +# you MUST use progsreiserfs-0.3.1_rc8 (the last version ever released).
53 +COMMON_DEPEND="
54 + static? (
55 + sys-apps/util-linux[static-libs]
56 + sys-fs/e2fsprogs[static-libs]
57 + sys-libs/ncurses:0[static-libs]
58 + jpeg? ( virtual/jpeg:0[static-libs] )
59 + ntfs? ( sys-fs/ntfs3g[static-libs] )
60 + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8[static-libs] )
61 + zlib? ( sys-libs/zlib[static-libs] )
62 + !arm? ( ewf? ( app-forensics/libewf:=[static-libs] ) )
63 + )
64 + !static? (
65 + sys-apps/util-linux
66 + sys-fs/e2fsprogs
67 + sys-libs/ncurses:0=
68 + jpeg? ( virtual/jpeg:0 )
69 + ntfs? ( sys-fs/ntfs3g )
70 + qt5? (
71 + dev-qt/qtcore:5
72 + dev-qt/qtgui:5
73 + dev-qt/qtwidgets:5
74 + )
75 + reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 )
76 + zlib? ( sys-libs/zlib )
77 + !arm? ( ewf? ( app-forensics/libewf:= ) )
78 + )
79 +"
80 +DEPEND="${COMMON_DEPEND}
81 + qt5? ( dev-qt/linguist-tools:5 )
82 +"
83 +RDEPEND="!static? ( ${COMMON_DEPEND} )"
84 +
85 +AUTOTOOLS_IN_SOURCE_BUILD=1
86 +DOCS=( )
87 +
88 +S="${WORKDIR}/${PN}-${COMMIT}"
89 +
90 +src_configure() {
91 + local myeconfargs=(
92 + --enable-sudo
93 + --docdir="${ROOT}/usr/share/doc/${P}"
94 + $(use_with ewf)
95 + $(use_with jpeg)
96 + $(use_with ntfs)
97 + $(use_with ntfs ntfs3g)
98 + $(use_enable qt5 qt)
99 + $(use_with reiserfs)
100 + $(use_with zlib)
101 + )
102 +
103 + # this static method is the same used by upstream for their 'static' make
104 + # target, but better, as it doesn't break.
105 + use static && append-ldflags -static
106 +
107 + econf "${myeconfargs[@]}"
108 +
109 + # perform safety checks for NTFS, REISERFS and JPEG
110 + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then
111 + die "Failed to find either NTFS or NTFS-3G library."
112 + fi
113 + if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then
114 + die "Failed to find reiserfs library."
115 + fi
116 + if use jpeg && egrep -q 'undef HAVE_LIBJPEG\>' "${S}"/config.h ; then
117 + die "Failed to find jpeg library."
118 + fi
119 +}