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:53
Message-Id: 1522762295.9e62b0c4688b2fe3fe0858c7348fb083c1678ad9.hattya@gentoo
1 commit: 9e62b0c4688b2fe3fe0858c7348fb083c1678ad9
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 13:00:25 2018 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 13:31:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e62b0c4
7
8 www-client/w3m: tidy
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 www-client/w3m/metadata.xml | 2 +-
13 www-client/w3m/w3m-0.5.3-r9.ebuild | 115 +++++++++++++++++++------------------
14 2 files changed, 59 insertions(+), 58 deletions(-)
15
16 diff --git a/www-client/w3m/metadata.xml b/www-client/w3m/metadata.xml
17 index 329c6eb709a..dd01429b95e 100644
18 --- a/www-client/w3m/metadata.xml
19 +++ b/www-client/w3m/metadata.xml
20 @@ -1,4 +1,4 @@
21 -<?xml version='1.0' encoding='UTF-8'?>
22 +<?xml version="1.0" encoding="UTF-8"?>
23 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
24 <pkgmetadata>
25 <maintainer type="project">
26
27 diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild
28 index 9fef12101d5..b308ff9c0ff 100644
29 --- a/www-client/w3m/w3m-0.5.3-r9.ebuild
30 +++ b/www-client/w3m/w3m-0.5.3-r9.ebuild
31 @@ -1,122 +1,123 @@
32 # Copyright 1999-2018 Gentoo Foundation
33 # Distributed under the terms of the GNU General Public License v2
34
35 -EAPI=6
36 -inherit autotools eutils prefix vcs-snapshot
37 +EAPI="6"
38 +
39 +inherit autotools prefix vcs-snapshot
40
41 MY_REL="git20161120"
42 MY_P="${P}.${MY_REL}"
43
44 DESCRIPTION="Text based WWW browser, supports tables and frames"
45 HOMEPAGE="https://github.com/tats/w3m"
46 -SRC_URI="https://github.com/tats/w3m/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P}.tar.gz"
47 +SRC_URI="https://github.com/tats/${PN}/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P}.tar.gz"
48
49 LICENSE="w3m"
50 SLOT="0"
51 KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
52 -IUSE="X fbcon gpm gtk imlib libressl lynxkeymap nls nntp ssl unicode xface l10n_ja"
53 +IUSE="X fbcon gpm gtk imlib l10n_ja libressl lynxkeymap nls nntp ssl unicode xface"
54
55 # We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't
56 # allow us to build w/o X, so we have to give up framebuffer w3mimg....
57 -RDEPEND=">=sys-libs/ncurses-5.2-r3:0=
58 +RDEPEND=">=dev-libs/boehm-gc-6.2:=
59 + >=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 + X? (
64 + x11-libs/libXdmcp
65 + x11-libs/libXext
66 + )
67 gtk? ( x11-libs/gdk-pixbuf )
68 - !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) )
69 - xface? ( media-libs/compface )
70 + !gtk? (
71 + imlib? ( >=media-libs/imlib2-1.1.0[X] )
72 + )
73 gpm? ( >=sys-libs/gpm-1.19.3-r5 )
74 ssl? (
75 !libressl? ( dev-libs/openssl:0= )
76 libressl? ( dev-libs/libressl:0= )
77 - )"
78 + )
79 + xface? ( media-libs/compface )"
80 DEPEND="${RDEPEND}
81 virtual/pkgconfig"
82 +S="${WORKDIR}/${MY_P}"
83
84 PATCHES=(
85 "${FILESDIR}/${P}-underlinking.patch"
86 "${FILESDIR}/${P}-fix-missing-time.patch"
87 )
88
89 -S="${WORKDIR}"/${MY_P}
90 src_prepare() {
91 default
92 - ecvs_clean
93 - sed -i -e "/^AR=/s:ar:$(tc-getAR):" {.,w3mimg,libwc}/Makefile.in || die
94 + sed -i "/^AR=/s:ar:$(tc-getAR):" {.,${PN}img,libwc}/Makefile.in
95 hprefixify acinclude.m4
96 eautoconf
97 }
98
99 src_configure() {
100 - local myconf imagelibval imageval
101 + local myconf=()
102 + local image imagelib
103
104 - if use gtk ; then
105 - imagelibval="gtk2"
106 - elif use imlib ; then
107 - imagelibval="imlib2"
108 + if use gtk; then
109 + imagelib="gtk2"
110 + elif use imlib; then
111 + imagelib="imlib2"
112 fi
113 -
114 - if [ ! -z "${imagelibval}" ] ; then
115 - use X && imageval="${imageval}${imageval:+,}x11"
116 - use X && use fbcon && imageval="${imageval}${imageval:+,}fb"
117 + if [[ -n "${imagelib}" ]]; then
118 + use X && image="${image}${image:+,}x11"
119 + use X && use fbcon && image="${image}${image:+,}fb"
120 fi
121 -
122 # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
123 # so we better enable or disable both. Default to enable
124 # m17n and unicode, see bug #47046.
125 - if use l10n_ja ; then
126 - if use unicode ; then
127 - myconf="${myconf} --enable-japanese=U"
128 - else
129 - myconf="${myconf} --enable-japanese=E"
130 - fi
131 - elif use unicode ; then
132 - myconf="${myconf} --with-charset=UTF-8"
133 + if use l10n_ja; then
134 + myconf+=( --enable-japanese=$(usex unicode U E) )
135 else
136 - myconf="${myconf} --with-charset=US-ASCII"
137 + myconf+=( --with-charset=$(usex unicode UTF-8 US-ASCII) )
138 fi
139 -
140 # lynxkeymap IUSE flag. bug #49397
141 - if use lynxkeymap ; then
142 - myconf="${myconf} --enable-keymap=lynx"
143 - else
144 - myconf="${myconf} --enable-keymap=w3m"
145 - fi
146 + myconf+=( --enable-keymap=$(usex lynxkeymap lynx ${PN}) )
147
148 econf \
149 - --with-editor="${EPREFIX}/usr/bin/vi" \
150 - --with-mailer="${EPREFIX}/bin/mail" \
151 - --with-browser="${EPREFIX}/usr/bin/xdg-open" \
152 - --with-termlib=yes \
153 - --enable-image=${imageval:-no} \
154 - --with-imagelib="${imagelibval:-no}" \
155 - --without-migemo \
156 - --enable-m17n \
157 - --enable-unicode \
158 $(use_enable gpm mouse) \
159 $(use_enable nls) \
160 $(use_enable nntp) \
161 $(use_enable ssl digest-auth) \
162 - $(use_with ssl) \
163 $(use_enable xface) \
164 - ${myconf}
165 + $(use_with ssl) \
166 + --enable-image=${image:-no} \
167 + --enable-m17n \
168 + --enable-unicode \
169 + --with-browser="${EPREFIX}/usr/bin/xdg-open" \
170 + --with-editor="${EPREFIX}/usr/bin/vi" \
171 + --with-imagelib="${imagelib:-no}" \
172 + --with-mailer="${EPREFIX}/bin/mail" \
173 + --without-migemo \
174 + --with-termlib=yes \
175 + "${myconf[@]}"
176 }
177
178 src_install() {
179 -
180 emake DESTDIR="${D}" install
181 + einstalldocs
182
183 # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
184 insinto /etc/${PN}
185 - newins "${FILESDIR}/${PN}.mailcap" mailcap
186 + newins "${FILESDIR}"/${PN}.mailcap mailcap
187
188 insinto /usr/share/${PN}/Bonus
189 - doins Bonus/*
190 - dodoc README NEWS TODO ChangeLog
191 - docinto doc-en ; dodoc doc/*
192 - if use l10n_ja ; then
193 - docinto doc-jp ; dodoc doc-jp/*
194 + doins Bonus/{*.{cgi,rb},html*,makeref}
195 +
196 + docinto en
197 + dodoc doc/{HISTORY,README,keymap,menu}*
198 + newdoc Bonus/README.eng README.Bonus
199 + docinto html/en
200 + dodoc doc/*.html
201 + if use l10n_ja; then
202 + docinto ja
203 + dodoc doc-jp/{HISTORY,README,keymap,menu}*
204 + newdoc Bonus/README README.Bonus
205 + docinto html/ja
206 + dodoc doc-jp/*.html
207 else
208 - rm -rf "${ED}"/usr/share/man/ja || die
209 + rm -rf "${ED}"/usr/share/man/ja
210 fi
211 }