1 |
commit: 60310bff700efe979b3303e7ff3627d2c3abf287 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 01:17:17 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 01:17:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60310bff |
7 |
|
8 |
www-client/httrack: EAPI 8 + UnusedInherits |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
|
12 |
www-client/httrack/httrack-3.49.2-r3.ebuild | 70 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 70 insertions(+) |
14 |
|
15 |
diff --git a/www-client/httrack/httrack-3.49.2-r3.ebuild b/www-client/httrack/httrack-3.49.2-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..b306e0d666ba |
18 |
--- /dev/null |
19 |
+++ b/www-client/httrack/httrack-3.49.2-r3.ebuild |
20 |
@@ -0,0 +1,70 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI="8" |
25 |
+ |
26 |
+inherit autotools xdg-utils |
27 |
+ |
28 |
+DESCRIPTION="HTTrack Website Copier, Open Source Offline Browser" |
29 |
+HOMEPAGE="https://www.httrack.com/" |
30 |
+SRC_URI="https://mirror.httrack.com/historical/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-3" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
35 |
+IUSE="static-libs" |
36 |
+ |
37 |
+RDEPEND=">=sys-libs/zlib-1.2.5.1-r1 |
38 |
+ >=dev-libs/openssl-1.1.0:= |
39 |
+ " |
40 |
+DEPEND="${RDEPEND}" |
41 |
+ |
42 |
+DOCS=( AUTHORS README greetings.txt history.txt ) |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${PN}-3.48.13-minizip.patch |
46 |
+) |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ |
51 |
+ # We need to patch use of /usr/lib because it is a problem with |
52 |
+ # linker lld with profile 17.1 on amd64 (see https://bugs.gentoo.org/732272). |
53 |
+ # The grep sandwich acts as a regression test so that a future |
54 |
+ # version bump cannot break patching without noticing. |
55 |
+ if [[ "$(get_libdir)" != lib ]]; then |
56 |
+ grep -wq '{ZLIB_HOME}/lib' m4/check_zlib.m4 || die |
57 |
+ sed "s,{ZLIB_HOME}/lib,{ZLIB_HOME}/$(get_libdir)," -i m4/check_zlib.m4 || die |
58 |
+ grep -w '{ZLIB_HOME}/lib' m4/check_zlib.m4 && die |
59 |
+ fi |
60 |
+ |
61 |
+ eautoreconf |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ econf $(use_enable static-libs static) |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ default |
70 |
+ |
71 |
+ # Make webhttrack work despite FEATURES=nodoc cutting |
72 |
+ # all of /usr/share/doc/ away (bug #493376) |
73 |
+ if has nodoc ${FEATURES} ; then |
74 |
+ dodir /usr/share/${PF}/ |
75 |
+ mv "${D}"/usr/share/{doc/,}${PF}/html || die |
76 |
+ |
77 |
+ rm "${D}"/usr/share/${PN}/html || die |
78 |
+ dosym ../../${PF}/html /usr/share/${PN}/html |
79 |
+ fi |
80 |
+ |
81 |
+ find "${D}" -name '*.la' -type f -delete || die |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ xdg_icon_cache_update |
86 |
+} |
87 |
+ |
88 |
+pkg_postrm() { |
89 |
+ xdg_icon_cache_update |
90 |
+} |