1 |
commit: 8980adf0be95c6fa394f71a2b7ff63b475c87aa5 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 3 05:47:12 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 3 05:47:59 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8980adf0 |
7 |
|
8 |
www-client/w3m: version bump, fix various security issue |
9 |
|
10 |
1) tracking new repo source from github |
11 |
https://github.com/tats/w3m |
12 |
2) fix various security issue, see bug 600176 |
13 |
3) drop USE=vanilla, since all patches accepted by upstream |
14 |
|
15 |
Gentoo-Bug: 576514, 600176 |
16 |
|
17 |
Package-Manager: portage-2.3.2 |
18 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
19 |
|
20 |
www-client/w3m/Manifest | 1 + |
21 |
www-client/w3m/w3m-0.5.3-r9.ebuild | 121 +++++++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 122 insertions(+) |
23 |
|
24 |
diff --git a/www-client/w3m/Manifest b/www-client/w3m/Manifest |
25 |
index e4b958e..3545845 100644 |
26 |
--- a/www-client/w3m/Manifest |
27 |
+++ b/www-client/w3m/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
+DIST w3m-0.5.3.git20161120.tar.gz 2177917 SHA256 62a5b066aaf5e23afec6decd962b966f333352150f8072193cba98320676f060 SHA512 81ecf9e5d9067a82efa5464e5f9396327a6333f9e414458a972b2b7bff138bd17c490b5258e34cb1e338c7a6c0dd6105a1bfd1e0d02edfadead79caa39106a5c WHIRLPOOL 1b0dbad59433f1ceb0ed566ba05f79e7f75f2a164592dbc6425c775d0f2d111955c1259478d96087b405b6d0c62694d7af49f589149a7ec02b5482dd05eed9e1 |
30 |
DIST w3m-0.5.3.tar.gz 2202328 SHA256 e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3 SHA512 43508c76d07b4d8f19c19f975c0b870aeb94abf0744b6128ee01c759d4e409a8b57bc866baeaf990f309ff73e9a7b02ca455d272b1dd0a93fafb8c72b1fe6d14 WHIRLPOOL 8f7dcaca362091227e29d7a6583ed796711904681a60e01d5838e45de003d60a9d88361d39b4d04056b67a14e51fe09e9d5b39fc8da18e83086484c974010cfe |
31 |
|
32 |
diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000..a0f3e0b |
35 |
--- /dev/null |
36 |
+++ b/www-client/w3m/w3m-0.5.3-r9.ebuild |
37 |
@@ -0,0 +1,121 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+inherit autotools eutils prefix vcs-snapshot |
44 |
+ |
45 |
+MY_REL="git20161120" |
46 |
+MY_P="${P}.${MY_REL}" |
47 |
+ |
48 |
+DESCRIPTION="Text based WWW browser, supports tables and frames" |
49 |
+HOMEPAGE="https://github.com/tats/w3m" |
50 |
+SRC_URI="https://github.com/tats/w3m/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="w3m" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" |
55 |
+IUSE="X fbcon gpm gtk imlib libressl lynxkeymap nls nntp ssl unicode xface l10n_ja" |
56 |
+ |
57 |
+# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't |
58 |
+# allow us to build w/o X, so we have to give up framebuffer w3mimg.... |
59 |
+RDEPEND=">=sys-libs/ncurses-5.2-r3:0= |
60 |
+ >=sys-libs/zlib-1.1.3-r2 |
61 |
+ >=dev-libs/boehm-gc-6.2 |
62 |
+ X? ( x11-libs/libXext x11-libs/libXdmcp ) |
63 |
+ gtk? ( x11-libs/gdk-pixbuf ) |
64 |
+ !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) ) |
65 |
+ xface? ( media-libs/compface ) |
66 |
+ gpm? ( >=sys-libs/gpm-1.19.3-r5 ) |
67 |
+ ssl? ( |
68 |
+ !libressl? ( dev-libs/openssl:0= ) |
69 |
+ libressl? ( dev-libs/libressl:0= ) |
70 |
+ )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ virtual/pkgconfig" |
73 |
+ |
74 |
+S="${WORKDIR}"/${MY_P} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ epatch "${FILESDIR}/${PN}-0.5.3-underlinking.patch" |
78 |
+ |
79 |
+ default |
80 |
+ ecvs_clean |
81 |
+ sed -i -e "/^AR=/s/ar/$(tc-getAR)/" {.,w3mimg,libwc}/Makefile.in || die |
82 |
+ hprefixify acinclude.m4 |
83 |
+ eautoconf |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local myconf imagelibval imageval |
88 |
+ |
89 |
+ if use gtk ; then |
90 |
+ imagelibval="gtk2" |
91 |
+ elif use imlib ; then |
92 |
+ imagelibval="imlib2" |
93 |
+ fi |
94 |
+ |
95 |
+ if [ ! -z "${imagelibval}" ] ; then |
96 |
+ use X && imageval="${imageval}${imageval:+,}x11" |
97 |
+ use X && use fbcon && imageval="${imageval}${imageval:+,}fb" |
98 |
+ fi |
99 |
+ |
100 |
+ # emacs-w3m doesn't like "--enable-m17n --disable-unicode," |
101 |
+ # so we better enable or disable both. Default to enable |
102 |
+ # m17n and unicode, see bug #47046. |
103 |
+ if use l10n_ja ; then |
104 |
+ if use unicode ; then |
105 |
+ myconf="${myconf} --enable-japanese=U" |
106 |
+ else |
107 |
+ myconf="${myconf} --enable-japanese=E" |
108 |
+ fi |
109 |
+ elif use unicode ; then |
110 |
+ myconf="${myconf} --with-charset=UTF-8" |
111 |
+ else |
112 |
+ myconf="${myconf} --with-charset=US-ASCII" |
113 |
+ fi |
114 |
+ |
115 |
+ # lynxkeymap IUSE flag. bug #49397 |
116 |
+ if use lynxkeymap ; then |
117 |
+ myconf="${myconf} --enable-keymap=lynx" |
118 |
+ else |
119 |
+ myconf="${myconf} --enable-keymap=w3m" |
120 |
+ fi |
121 |
+ |
122 |
+ econf \ |
123 |
+ --with-editor="${EPREFIX}/usr/bin/vi" \ |
124 |
+ --with-mailer="${EPREFIX}/bin/mail" \ |
125 |
+ --with-browser="${EPREFIX}/usr/bin/xdg-open" \ |
126 |
+ --with-termlib=yes \ |
127 |
+ --enable-image=${imageval:-no} \ |
128 |
+ --with-imagelib="${imagelibval:-no}" \ |
129 |
+ --without-migemo \ |
130 |
+ --enable-m17n \ |
131 |
+ --enable-unicode \ |
132 |
+ $(use_enable gpm mouse) \ |
133 |
+ $(use_enable nls) \ |
134 |
+ $(use_enable nntp) \ |
135 |
+ $(use_enable ssl digest-auth) \ |
136 |
+ $(use_with ssl) \ |
137 |
+ $(use_enable xface) \ |
138 |
+ ${myconf} |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ |
143 |
+ emake DESTDIR="${D}" install |
144 |
+ |
145 |
+ # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html |
146 |
+ insinto /etc/${PN} |
147 |
+ newins "${FILESDIR}/${PN}.mailcap" mailcap |
148 |
+ |
149 |
+ insinto /usr/share/${PN}/Bonus |
150 |
+ doins Bonus/* |
151 |
+ dodoc README NEWS TODO ChangeLog |
152 |
+ docinto doc-en ; dodoc doc/* |
153 |
+ if use l10n_ja ; then |
154 |
+ docinto doc-jp ; dodoc doc-jp/* |
155 |
+ else |
156 |
+ rm -rf "${ED}"/usr/share/man/ja || die |
157 |
+ fi |
158 |
+} |