Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/
Date: Tue, 03 Apr 2018 13:32:52
Message-Id: 1522762297.68f5765e420800dce4336c637d7043a95f4c2d99.hattya@gentoo
1 commit: 68f5765e420800dce4336c637d7043a95f4c2d99
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 13:28:58 2018 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 13:31:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68f5765e
7
8 www-client/w3m: new upstream release
9
10 Bug: https://bugs.gentoo.org/645714
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 www-client/w3m/Manifest | 1 +
14 www-client/w3m/w3m-0.5.3_p20180125.ebuild | 129 ++++++++++++++++++++++++++++++
15 2 files changed, 130 insertions(+)
16
17 diff --git a/www-client/w3m/Manifest b/www-client/w3m/Manifest
18 index 6e390148ee0..8f7f3f3e054 100644
19 --- a/www-client/w3m/Manifest
20 +++ b/www-client/w3m/Manifest
21 @@ -1 +1,2 @@
22 +DIST w3m-0.5.3+git20180125.tar.gz 2181743 BLAKE2B d0766fa215be971ba280e4933ee9521ac4b7806f77ced5be4de58a5e28fa478e29a9102d101174f8d216cb982827b347c0fbcbfc494068d1cb8e443e73df7228 SHA512 61b8498b927569937c509460e291eeba6eb302d34ccd6e1bf4d1eb07ac73a3ac5a477161727d310324625be04b907f8c3e970382d08c9fa0846b371699f04e14
23 DIST w3m-0.5.3.git20161120.tar.gz 2177917 BLAKE2B 48e7d9fee00431d65e4ae486d1cf5a376542fb0655215d95455d6f0e3ba63a6dfb243a858e0bb5e745ac75713091b17fa5c5a63c91a3e837c911ef1f576ce497 SHA512 81ecf9e5d9067a82efa5464e5f9396327a6333f9e414458a972b2b7bff138bd17c490b5258e34cb1e338c7a6c0dd6105a1bfd1e0d02edfadead79caa39106a5c
24
25 diff --git a/www-client/w3m/w3m-0.5.3_p20180125.ebuild b/www-client/w3m/w3m-0.5.3_p20180125.ebuild
26 new file mode 100644
27 index 00000000000..55fe127f01e
28 --- /dev/null
29 +++ b/www-client/w3m/w3m-0.5.3_p20180125.ebuild
30 @@ -0,0 +1,129 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +
36 +inherit autotools prefix vcs-snapshot
37 +
38 +MY_P="${P/_p/+git}"
39 +MY_PV="${PV/_p/+git}"
40 +
41 +DESCRIPTION="Text based WWW browser, supports tables and frames"
42 +HOMEPAGE="https://github.com/tats/w3m"
43 +SRC_URI="https://github.com/tats/${PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
44 +
45 +LICENSE="w3m"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
48 +IUSE="X fbcon gdk-pixbuf gpm imlib l10n_de l10n_ja libressl lynxkeymap nls nntp ssl unicode xface"
49 +
50 +RDEPEND="dev-libs/boehm-gc:=
51 + sys-libs/ncurses:0=
52 + sys-libs/zlib
53 + X? (
54 + x11-libs/libXdmcp
55 + x11-libs/libXext
56 + )
57 + gdk-pixbuf? ( x11-libs/gdk-pixbuf[X?] )
58 + !gdk-pixbuf? (
59 + imlib? ( media-libs/imlib2[X?] )
60 + )
61 + gpm? ( sys-libs/gpm )
62 + ssl? (
63 + !libressl? ( dev-libs/openssl:0= )
64 + libressl? ( dev-libs/libressl:0= )
65 + )
66 + xface? ( media-libs/compface )"
67 +DEPEND="${RDEPEND}
68 + virtual/pkgconfig"
69 +S="${WORKDIR}/${MY_P}"
70 +
71 +REQUIRED_USE="X? ( ?? ( gdk-pixbuf imlib ) )
72 + fbcon? ( ?? ( gdk-pixbuf imlib ) )"
73 +
74 +PATCHES=( "${FILESDIR}/${PN}-img-fb.patch" )
75 +
76 +src_prepare() {
77 + default
78 + sed -i "/^AR=/s:ar:$(tc-getAR):" {.,${PN}img,libwc}/Makefile.in
79 + hprefixify acinclude.m4
80 + eautoconf
81 +}
82 +
83 +src_configure() {
84 + local myconf=()
85 + local image imagelib
86 +
87 + if use gdk-pixbuf; then
88 + imagelib="gtk2"
89 + elif use imlib; then
90 + imagelib="imlib2"
91 + fi
92 + if [[ -n "${imagelib}" ]]; then
93 + use X && image="${image}${image:+,}x11"
94 + use fbcon && image="${image}${image:+,}fb"
95 + fi
96 + # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
97 + # so we better enable or disable both. Default to enable
98 + # m17n and unicode, see bug #47046.
99 + if use l10n_ja; then
100 + myconf+=( --enable-japanese=$(usex unicode U E) )
101 + else
102 + myconf+=( --with-charset=$(usex unicode UTF-8 US-ASCII) )
103 + fi
104 + # lynxkeymap IUSE flag. bug #49397
105 + myconf+=( --enable-keymap=$(usex lynxkeymap lynx ${PN}) )
106 +
107 + econf \
108 + $(use_enable gpm mouse) \
109 + $(use_enable nls) \
110 + $(use_enable nntp) \
111 + $(use_enable ssl digest-auth) \
112 + $(use_enable xface) \
113 + $(use_with ssl) \
114 + --enable-image=${image:-no} \
115 + --enable-m17n \
116 + --enable-unicode \
117 + --with-browser="${EPREFIX}/usr/bin/xdg-open" \
118 + --with-editor="${EPREFIX}/usr/bin/vi" \
119 + --with-imagelib="${imagelib:-no}" \
120 + --with-mailer="${EPREFIX}/bin/mail" \
121 + --without-migemo \
122 + --with-termlib=yes \
123 + "${myconf[@]}"
124 +}
125 +
126 +src_install() {
127 + emake DESTDIR="${D}" install
128 + einstalldocs
129 +
130 + # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
131 + insinto /etc/${PN}
132 + newins "${FILESDIR}"/${PN}.mailcap mailcap
133 +
134 + insinto /usr/share/${PN}/Bonus
135 + doins Bonus/{*.{cgi,rb},html*,makeref}
136 +
137 + docinto en
138 + dodoc doc/{HISTORY,README,keymap,menu}*
139 + newdoc Bonus/README.eng README.Bonus
140 + docinto html/en
141 + dodoc doc/*.html
142 + if use l10n_de; then
143 + docinto de
144 + dodoc doc-de/README*
145 + docinto html/de
146 + dodoc doc-de/*.html
147 + else
148 + rm -rf "${ED}"/usr/share/man/de
149 + fi
150 + if use l10n_ja; then
151 + docinto ja
152 + dodoc doc-jp/{HISTORY,README,keymap,menu}*
153 + newdoc Bonus/README README.Bonus
154 + docinto html/ja
155 + dodoc doc-jp/*.html
156 + else
157 + rm -rf "${ED}"/usr/share/man/ja
158 + fi
159 +}