Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/httrack/
Date: Sun, 31 Mar 2019 21:06:03
Message-Id: 1554066343.d0c7f3efc70a10189696aed2e00c67745061996c.sping@gentoo
1 commit: d0c7f3efc70a10189696aed2e00c67745061996c
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 21:04:36 2019 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 21:05:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0c7f3ef
7
8 www-client/httrack: EAPI 7 + ltprune + icon cache
9
10 Closes: https://bugs.gentoo.org/675958
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.12
13
14 www-client/httrack/httrack-3.49.2-r2.ebuild | 57 +++++++++++++++++++++++++++++
15 1 file changed, 57 insertions(+)
16
17 diff --git a/www-client/httrack/httrack-3.49.2-r2.ebuild b/www-client/httrack/httrack-3.49.2-r2.ebuild
18 new file mode 100644
19 index 00000000000..f513c18ae01
20 --- /dev/null
21 +++ b/www-client/httrack/httrack-3.49.2-r2.ebuild
22 @@ -0,0 +1,57 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="7"
27 +
28 +inherit eutils xdg-utils
29 +
30 +DESCRIPTION="HTTrack Website Copier, Open Source Offline Browser"
31 +HOMEPAGE="https://www.httrack.com/"
32 +SRC_URI="https://mirror.httrack.com/historical/${P}.tar.gz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
37 +IUSE="libressl static-libs"
38 +
39 +RDEPEND=">=sys-libs/zlib-1.2.5.1-r1
40 + !libressl? ( dev-libs/openssl:= )
41 + libressl? ( dev-libs/libressl )
42 + "
43 +DEPEND="${RDEPEND}"
44 +
45 +DOCS=( AUTHORS README greetings.txt history.txt )
46 +
47 +PATCHES=(
48 + "${FILESDIR}"/${PN}-3.48.13-minizip.patch
49 +)
50 +
51 +src_configure() {
52 + econf $(use_enable static-libs static) \
53 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
54 + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
55 +}
56 +
57 +src_install() {
58 + default
59 +
60 + # Make webhttrack work despite FEATURES=nodoc cutting
61 + # all of /usr/share/doc/ away (bug #493376)
62 + if has nodoc ${FEATURES} ; then
63 + dodir /usr/share/${PF}/
64 + mv "${D}"/usr/share/{doc/,}${PF}/html || die
65 +
66 + rm "${D}"/usr/share/${PN}/html || die
67 + dosym ../../${PF}/html /usr/share/${PN}/html
68 + fi
69 +
70 + find "${D}" -name '*.la' -type f -delete || die
71 +}
72 +
73 +pkg_postinst() {
74 + xdg_icon_cache_update
75 +}
76 +
77 +pkg_postrm() {
78 + xdg_icon_cache_update
79 +}