Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/files/, www-client/w3m/
Date: Sun, 04 Dec 2016 15:05:58
Message-Id: 1480863952.8ee43ba4e036db70fff258f3edb2f0335385e93f.dlan@gentoo
1 commit: 8ee43ba4e036db70fff258f3edb2f0335385e93f
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 4 15:04:12 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 4 15:05:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ee43ba4
7
8 www-client/w3m: fix USE="-ssl" err, missing <time.h>
9
10 Gentoo-Bug: 601498
11
12 Package-Manager: portage-2.3.2
13
14 www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch | 13 +++++++++++++
15 www-client/w3m/w3m-0.5.3-r9.ebuild | 8 +++++---
16 2 files changed, 18 insertions(+), 3 deletions(-)
17
18 diff --git a/www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch b/www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch
19 new file mode 100644
20 index 00000000..03efd85
21 --- /dev/null
22 +++ b/www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch
23 @@ -0,0 +1,13 @@
24 +diff --git a/html.h b/html.h
25 +index c490655..2a9a431 100644
26 +--- a/html.h
27 ++++ b/html.h
28 +@@ -8,6 +8,8 @@
29 + #include <openssl/ssl.h>
30 + #endif /* USE_SSL */
31 +
32 ++#include <time.h>
33 ++
34 + #define StrUFgets(f) StrISgets((f)->stream)
35 + #define StrmyUFgets(f) StrmyISgets((f)->stream)
36 + #define UFgetc(f) ISgetc((f)->stream)
37
38 diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild
39 index a0f3e0b..bc191ce 100644
40 --- a/www-client/w3m/w3m-0.5.3-r9.ebuild
41 +++ b/www-client/w3m/w3m-0.5.3-r9.ebuild
42 @@ -34,11 +34,13 @@ RDEPEND=">=sys-libs/ncurses-5.2-r3:0=
43 DEPEND="${RDEPEND}
44 virtual/pkgconfig"
45
46 -S="${WORKDIR}"/${MY_P}
47 +PATCHES=(
48 + "${FILESDIR}/${P}-underlinking.patch"
49 + "${FILESDIR}/${P}-fix-missing-time.patch"
50 +)
51
52 +S="${WORKDIR}"/${MY_P}
53 src_prepare() {
54 - epatch "${FILESDIR}/${PN}-0.5.3-underlinking.patch"
55 -
56 default
57 ecvs_clean
58 sed -i -e "/^AR=/s/ar/$(tc-getAR)/" {.,w3mimg,libwc}/Makefile.in || die