1 |
commit: 5d3abfa9559c11bd9ac3087a9bf3debd51cf0c30 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Sun Apr 25 21:51:57 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 25 22:00:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d3abfa9 |
7 |
|
8 |
www-client/w3m: add 0.5.3_p20210102 |
9 |
|
10 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
www-client/w3m/Manifest | 1 + |
14 |
www-client/w3m/files/lang.patch | 32 +++++++ |
15 |
www-client/w3m/w3m-0.5.3_p20210102.ebuild | 136 ++++++++++++++++++++++++++++++ |
16 |
3 files changed, 169 insertions(+) |
17 |
|
18 |
diff --git a/www-client/w3m/Manifest b/www-client/w3m/Manifest |
19 |
index 8de29484f7d..0f12153d81d 100644 |
20 |
--- a/www-client/w3m/Manifest |
21 |
+++ b/www-client/w3m/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST w3m-0.5.3+git20180125.tar.gz 2181743 BLAKE2B d0766fa215be971ba280e4933ee9521ac4b7806f77ced5be4de58a5e28fa478e29a9102d101174f8d216cb982827b347c0fbcbfc494068d1cb8e443e73df7228 SHA512 61b8498b927569937c509460e291eeba6eb302d34ccd6e1bf4d1eb07ac73a3ac5a477161727d310324625be04b907f8c3e970382d08c9fa0846b371699f04e14 |
24 |
DIST w3m-0.5.3+git20190105.tar.gz 2183651 BLAKE2B 624fe3b8c1daa2a6d4ce21e051ee363a29114bdb64e0e0d9864b8098f2a12bcb27e293fa3dfa4dc1dff691fa40046f4878b7d39c321f591d3689d00e3ed42bad SHA512 b63b15d0bea82f50bcaa9fc0826c2d3c265a3ad73069b4a020812f28b552cdf08618ab877280c9f3a43bd64f51b80b7a526098e6395ea121c0981a3fcd2562b4 |
25 |
+DIST w3m-0.5.3+git20210102.tar.gz 2189272 BLAKE2B f82c13c26b1c83cda90655abdcf30422e257a5c2e48c32d5636a70f895078d11a95fc6ce623fa94624bb2a1125b71e7654d872dfb91fd86c4290278de3cf88f8 SHA512 357eeecf0f63bfd5174c9670533882323879657bdecefd0758d853ca645e368331bfdf91e99c0917f19829e184ce892ecdc99bd865851707d93baccfb4b97632 |
26 |
|
27 |
diff --git a/www-client/w3m/files/lang.patch b/www-client/w3m/files/lang.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..dccc3542690 |
30 |
--- /dev/null |
31 |
+++ b/www-client/w3m/files/lang.patch |
32 |
@@ -0,0 +1,32 @@ |
33 |
+new file mode 100644 |
34 |
+index 00000000..da1b2aef |
35 |
+--- /dev/null |
36 |
++++ b/m4/codeset.m4 |
37 |
+@@ -0,0 +1,25 @@ |
38 |
++# codeset.m4 serial 5 (gettext-0.18.2) |
39 |
++dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016 Free Software Foundation, |
40 |
++dnl Inc. |
41 |
++dnl This file is free software; the Free Software Foundation |
42 |
++dnl gives unlimited permission to copy and/or distribute it, |
43 |
++dnl with or without modifications, as long as this notice is preserved. |
44 |
++ |
45 |
++dnl From Bruno Haible. |
46 |
++ |
47 |
++AC_DEFUN([AM_LANGINFO_CODESET], |
48 |
++[ |
49 |
++ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], |
50 |
++ [AC_LINK_IFELSE( |
51 |
++ [AC_LANG_PROGRAM( |
52 |
++ [[#include <langinfo.h>]], |
53 |
++ [[char* cs = nl_langinfo(CODESET); return !cs;]])], |
54 |
++ [am_cv_langinfo_codeset=yes], |
55 |
++ [am_cv_langinfo_codeset=no]) |
56 |
++ ]) |
57 |
++ if test $am_cv_langinfo_codeset = yes; then |
58 |
++ AC_DEFINE([HAVE_LANGINFO_CODESET], [1], |
59 |
++ [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) |
60 |
++ fi |
61 |
++]) |
62 |
++ |
63 |
+-- |
64 |
+2.20.1 |
65 |
|
66 |
diff --git a/www-client/w3m/w3m-0.5.3_p20210102.ebuild b/www-client/w3m/w3m-0.5.3_p20210102.ebuild |
67 |
new file mode 100644 |
68 |
index 00000000000..cb833a9cd2b |
69 |
--- /dev/null |
70 |
+++ b/www-client/w3m/w3m-0.5.3_p20210102.ebuild |
71 |
@@ -0,0 +1,136 @@ |
72 |
+# Copyright 1999-2021 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=7 |
76 |
+ |
77 |
+inherit autotools prefix toolchain-funcs |
78 |
+ |
79 |
+MY_P="${P/_p/+git}" |
80 |
+MY_PV="${PV/_p/+git}" |
81 |
+ |
82 |
+DESCRIPTION="Text based WWW browser, supports tables and frames" |
83 |
+HOMEPAGE="https://github.com/tats/w3m" |
84 |
+SRC_URI="https://github.com/tats/w3m/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
85 |
+ |
86 |
+LICENSE="w3m" |
87 |
+SLOT="0" |
88 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
89 |
+IUSE="fbcon gdk-pixbuf gpm imlib l10n_de l10n_ja lynxkeymap nls nntp ssl unicode X xface" |
90 |
+ |
91 |
+REQUIRED_USE=" |
92 |
+ fbcon? ( ?? ( gdk-pixbuf imlib ) ) |
93 |
+ X? ( ?? ( gdk-pixbuf imlib ) ) |
94 |
+" |
95 |
+ |
96 |
+RDEPEND=" |
97 |
+ dev-libs/boehm-gc:= |
98 |
+ sys-libs/ncurses:0= |
99 |
+ sys-libs/zlib |
100 |
+ gdk-pixbuf? ( |
101 |
+ x11-libs/gdk-pixbuf |
102 |
+ X? ( x11-libs/gdk-pixbuf-xlib ) |
103 |
+ ) |
104 |
+ !gdk-pixbuf? ( |
105 |
+ imlib? ( media-libs/imlib2[X?] ) |
106 |
+ ) |
107 |
+ gpm? ( sys-libs/gpm ) |
108 |
+ ssl? ( dev-libs/openssl:0= ) |
109 |
+ X? ( |
110 |
+ x11-libs/libXdmcp |
111 |
+ x11-libs/libXext |
112 |
+ ) |
113 |
+ xface? ( media-libs/compface ) |
114 |
+" |
115 |
+ |
116 |
+BDEPEND=" |
117 |
+ ${RDEPEND} |
118 |
+ virtual/pkgconfig |
119 |
+" |
120 |
+ |
121 |
+PATCHES=( "${FILESDIR}/lang.patch" ) |
122 |
+ |
123 |
+S="${WORKDIR}/${P/_p/-git}" |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ default |
127 |
+ sed -i "/^AR=/s:ar:$(tc-getAR):" {.,${PN}img,libwc}/Makefile.in || die |
128 |
+ hprefixify acinclude.m4 |
129 |
+ |
130 |
+ eautoconf |
131 |
+} |
132 |
+ |
133 |
+src_configure() { |
134 |
+ local myconf=() |
135 |
+ local image imagelib |
136 |
+ |
137 |
+ if use gdk-pixbuf ; then |
138 |
+ imagelib="gtk3" |
139 |
+ elif use imlib ; then |
140 |
+ imagelib="imlib2" |
141 |
+ fi |
142 |
+ if [[ -n "${imagelib}" ]] ; then |
143 |
+ use X && image="${image}${image:+,}x11" |
144 |
+ use fbcon && image="${image}${image:+,}fb" |
145 |
+ fi |
146 |
+ # emacs-w3m doesn't like "--enable-m17n --disable-unicode," |
147 |
+ # so we better enable or disable both. Default to enable |
148 |
+ # m17n and unicode, see bug #47046. |
149 |
+ if use l10n_ja ; then |
150 |
+ myconf+=( --enable-japanese=$(usex unicode U E) ) |
151 |
+ else |
152 |
+ myconf+=( --with-charset=$(usex unicode UTF-8 US-ASCII) ) |
153 |
+ fi |
154 |
+ # lynxkeymap IUSE flag. bug #49397 |
155 |
+ myconf+=( --enable-keymap=$(usex lynxkeymap lynx ${PN}) ) |
156 |
+ |
157 |
+ econf \ |
158 |
+ $(use_enable gpm mouse) \ |
159 |
+ $(use_enable nls) \ |
160 |
+ $(use_enable nntp) \ |
161 |
+ $(use_enable ssl digest-auth) \ |
162 |
+ $(use_enable xface) \ |
163 |
+ $(use_with ssl) \ |
164 |
+ --enable-image=${image:-no} \ |
165 |
+ --enable-m17n \ |
166 |
+ --enable-unicode \ |
167 |
+ --with-browser="${EPREFIX}/usr/bin/xdg-open" \ |
168 |
+ --with-editor="${EPREFIX}/usr/bin/vi" \ |
169 |
+ --with-imagelib="${imagelib:-no}" \ |
170 |
+ --with-mailer="${EPREFIX}/bin/mail" \ |
171 |
+ --without-migemo \ |
172 |
+ --with-termlib=yes \ |
173 |
+ "${myconf[@]}" |
174 |
+} |
175 |
+ |
176 |
+src_install() { |
177 |
+ default |
178 |
+ |
179 |
+ insinto /etc/${PN} |
180 |
+ newins "${FILESDIR}"/${PN}.mailcap mailcap |
181 |
+ |
182 |
+ insinto /usr/share/${PN}/Bonus |
183 |
+ doins Bonus/{*.{cgi,rb},html*,makeref} |
184 |
+ |
185 |
+ docinto en |
186 |
+ dodoc doc/{HISTORY,README,keymap,menu}* |
187 |
+ newdoc Bonus/README.eng README.Bonus |
188 |
+ docinto html/en |
189 |
+ dodoc doc/*.html |
190 |
+ if use l10n_de ; then |
191 |
+ docinto de |
192 |
+ dodoc doc-de/README* |
193 |
+ docinto html/de |
194 |
+ dodoc doc-de/*.html |
195 |
+ else |
196 |
+ rm -rf "${ED}"/usr/share/man/de || die |
197 |
+ fi |
198 |
+ if use l10n_ja ; then |
199 |
+ docinto ja |
200 |
+ dodoc doc-jp/{HISTORY,README,keymap,menu}* |
201 |
+ newdoc Bonus/README README.Bonus |
202 |
+ docinto html/ja |
203 |
+ dodoc doc-jp/*.html |
204 |
+ else |
205 |
+ rm -rf "${ED}"/usr/share/man/ja || die |
206 |
+ fi |
207 |
+} |