diff options
Diffstat (limited to 'www-client/w3m')
-rw-r--r-- | www-client/w3m/Manifest | 8 | ||||
-rw-r--r-- | www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch | 13 | ||||
-rw-r--r-- | www-client/w3m/files/w3m-0.5.3-underlinking.patch | 15 | ||||
-rw-r--r-- | www-client/w3m/files/w3m.mailcap | 1 | ||||
-rw-r--r-- | www-client/w3m/metadata.xml | 15 | ||||
-rw-r--r-- | www-client/w3m/w3m-0.5.3-r9.ebuild | 122 |
6 files changed, 174 insertions, 0 deletions
diff --git a/www-client/w3m/Manifest b/www-client/w3m/Manifest new file mode 100644 index 000000000000..dc7c54f17823 --- /dev/null +++ b/www-client/w3m/Manifest @@ -0,0 +1,8 @@ +AUX w3m-0.5.3-fix-missing-time.patch 308 SHA256 16f026ee98fe0936f883b3f8e5a809840f312bd58163774dfa513360f9946d87 SHA512 2a95bca1c2679e1c73c40238f3649a9ef35417d745d33e9c72fa3b6fd945484bd90b13f8fc7351ffd3d63485df380ae10cd6f06a8e29528aebc0230ce58c792d WHIRLPOOL f9bd9c2a3a78d41229f3bae505a669ca398e086747c71ba2f3f181dc11d4049559634e4841cadb2eff4777b2ba29dd0eb9fea08fa160fb7c836df93b6e8ae661 +AUX w3m-0.5.3-underlinking.patch 790 SHA256 ce289ecf767af2a286e16e7ca03fc47cf2f68eaeab015cbbe48926b18dcb76a6 SHA512 a9848610fbaf124453dc77640617785f5a3b3eb3f3c761cf0e29ea26c9481156339ef6d9efa4977d8dc0b28696bda8b5a2bef87150f86a0f516fa93e4efa2ee8 WHIRLPOOL 6b1354d132743df6285e88205fdbd0ca5f7d06ece6b9c7379d94e1983f2798c9c503d0bcbaca3b5417c99ac21389afb8ac6eb57a94d58e617c096720f9a32907 +AUX w3m.mailcap 44 SHA256 5f3c243df65c4d2e5ceeb1fae285e0f9f6660c7b0fc66bb7e46803c1de1890b5 SHA512 a66ef535a62f593910c1c99865363e7fc8af1815d24f2ccda86a72c0b777ff388100677f0e14e6f57a6786fdbde62cfc3fea554e659d54663f44cfba3e5c67d2 WHIRLPOOL b788b2d793e8fd4f385cabbd80b0ee56fcb87a22f48237066fe5163313f4eb887a0b2f85ad9c8ed01848f49fd766048eece33fd23dbc5601d8cbb88015135d8c +DIST w3m-0.5.3.git20161120.tar.gz 2177917 SHA256 62a5b066aaf5e23afec6decd962b966f333352150f8072193cba98320676f060 SHA512 81ecf9e5d9067a82efa5464e5f9396327a6333f9e414458a972b2b7bff138bd17c490b5258e34cb1e338c7a6c0dd6105a1bfd1e0d02edfadead79caa39106a5c WHIRLPOOL 1b0dbad59433f1ceb0ed566ba05f79e7f75f2a164592dbc6425c775d0f2d111955c1259478d96087b405b6d0c62694d7af49f589149a7ec02b5482dd05eed9e1 +EBUILD w3m-0.5.3-r9.ebuild 3217 SHA256 6eaf3801a309f3b436d733566e2ffc67de56c494c2b21ede02c45936f54a8c21 SHA512 ffec9bd251b7b8fc6d5b32435beaca4200ffa9051cc2fbf1573270dba8a394ebeaac7ffde3ea61d7a7cfda6ec2f15cf0ea992f8d7560a1e00a0a04cf1e7366a7 WHIRLPOOL f1cf7244abfc979480765f5bc94d2f52465dcb644cc6c024a2d74bca1e527b4964cb0d3ffeb4140ab95eb98272b37ae890533353ba89eef4ee06118c28e45d81 +MISC ChangeLog 5202 SHA256 63889e686b9495ce18cb525a902a23876863ecacea83254af2e243e83387437b SHA512 9324decb9fde16b3367ff293839ce829669a4db1c43ada2daca066e894d70e7b79cd201bf36fd5282860fa5c645f2ce94e1835227f3480e8001eff4c4f2a2c00 WHIRLPOOL c54db2f3afcee76e70f2cb493776238f1119fcd6b3105dc5c857270cae9a8b48ce20417d1b637fd8c4b89593114df5a68932b0f606eceb564b77d9064544e84e +MISC ChangeLog-2015 23017 SHA256 0c4ffce5e900459b609ca111ede24c09ca9c49b674f15ef96c308a7f556fc4b7 SHA512 1d75a7ea62ac9013b810ea35e8b06e863615b2115cfa0be83e53b4a4efb66b17601c1e470a3db2d4e6db12cb004b8bb4b97fef32f74687f0f4d42f1241ff9ae7 WHIRLPOOL 0e2c7269a8bc7618ca73a1d0471e7d11e6bd17df428b36a905839fbcfd13cc3a79254cdc898c43032b0a4ce11ea0b0c71fb1df45f0b4f4550a81418ffbba1e2a +MISC metadata.xml 439 SHA256 bdbb9312880e41cc386a7c7de184616d52abd7ae295151f7797ee8ad38023101 SHA512 a51eb2e908d9f231b0817f237bb40e42e9e39c0a9f07dc8e7ffbd054ba3ae3a8b6b1a4c443eeef0b28a13008134a20764e6d3234df9215f35f0359fefb8dc67b WHIRLPOOL 5b13d05285d4ff9a12e4fb5439816b04958f7889666c77526b7798bfb9eb0f7931df073c8b6a53b9910e4a4a62d8d67bf18b85cf6cae11b04635a4694a3fd6f5 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 new file mode 100644 index 000000000000..03efd85d6536 --- /dev/null +++ b/www-client/w3m/files/w3m-0.5.3-fix-missing-time.patch @@ -0,0 +1,13 @@ +diff --git a/html.h b/html.h +index c490655..2a9a431 100644 +--- a/html.h ++++ b/html.h +@@ -8,6 +8,8 @@ + #include <openssl/ssl.h> + #endif /* USE_SSL */ + ++#include <time.h> ++ + #define StrUFgets(f) StrISgets((f)->stream) + #define StrmyUFgets(f) StrmyISgets((f)->stream) + #define UFgetc(f) ISgetc((f)->stream) diff --git a/www-client/w3m/files/w3m-0.5.3-underlinking.patch b/www-client/w3m/files/w3m-0.5.3-underlinking.patch new file mode 100644 index 000000000000..1b034b46cb13 --- /dev/null +++ b/www-client/w3m/files/w3m-0.5.3-underlinking.patch @@ -0,0 +1,15 @@ +Description: Explicitly link w3mimgdisplay with -lX11 to build with gcc 4.5 +Author: Martin Pitt <martin.pitt@ubuntu.com> +Bug: https://sourceforge.net/tracker/?func=detail&aid=3126430&group_id=39518&atid=425441 + +--- w3m-0.5.3.orig/Makefile.in 2011-01-04 18:22:18.000000000 +0900 ++++ w3m-0.5.3/Makefile.in 2011-02-06 12:05:40.000000000 +0900 +@@ -199,7 +199,7 @@ + $(CC) $(CFLAGS) -DDUMMY -c -o $@ $? + + $(IMGDISPLAY): w3mimgdisplay.o $(ALIB) w3mimg/w3mimg.a +- $(IMGLINK) $(CFLAGS) -o $(IMGDISPLAY) w3mimgdisplay.o w3mimg/w3mimg.a $(LDFLAGS) $(LIBS) $(IMGLDFLAGS) ++ $(IMGLINK) $(CFLAGS) -o $(IMGDISPLAY) w3mimgdisplay.o w3mimg/w3mimg.a $(LDFLAGS) $(LIBS) -lX11 $(IMGLDFLAGS) + + w3mimgdisplay.o: w3mimgdisplay.c w3mimg/w3mimg.h + $(CC) $(CFLAGS) $(IMGCFLAGS) -o $@ -c $(srcdir)/w3mimgdisplay.c diff --git a/www-client/w3m/files/w3m.mailcap b/www-client/w3m/files/w3m.mailcap new file mode 100644 index 000000000000..21603a6dc3a2 --- /dev/null +++ b/www-client/w3m/files/w3m.mailcap @@ -0,0 +1 @@ +application/xhtml+xml; cat %s; x-htmloutput diff --git a/www-client/w3m/metadata.xml b/www-client/w3m/metadata.xml new file mode 100644 index 000000000000..329c6eb709a0 --- /dev/null +++ b/www-client/w3m/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <use> + <flag name="lynxkeymap">If you prefer Lynx-like key binding</flag> + </use> + <upstream> + <remote-id type="sourceforge">w3m</remote-id> + <remote-id type="github">tats/w3m</remote-id> + </upstream> +</pkgmetadata> diff --git a/www-client/w3m/w3m-0.5.3-r9.ebuild b/www-client/w3m/w3m-0.5.3-r9.ebuild new file mode 100644 index 000000000000..cb8054271746 --- /dev/null +++ b/www-client/w3m/w3m-0.5.3-r9.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils prefix vcs-snapshot + +MY_REL="git20161120" +MY_P="${P}.${MY_REL}" + +DESCRIPTION="Text based WWW browser, supports tables and frames" +HOMEPAGE="https://github.com/tats/w3m" +SRC_URI="https://github.com/tats/w3m/archive/v${PV}+${MY_REL}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="w3m" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" +IUSE="X fbcon gpm gtk imlib libressl lynxkeymap nls nntp ssl unicode xface l10n_ja" + +# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't +# allow us to build w/o X, so we have to give up framebuffer w3mimg.... +RDEPEND=">=sys-libs/ncurses-5.2-r3:0= + >=sys-libs/zlib-1.1.3-r2 + >=dev-libs/boehm-gc-6.2 + X? ( x11-libs/libXext x11-libs/libXdmcp ) + gtk? ( x11-libs/gdk-pixbuf ) + !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) ) + xface? ( media-libs/compface ) + gpm? ( >=sys-libs/gpm-1.19.3-r5 ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-underlinking.patch" + "${FILESDIR}/${P}-fix-missing-time.patch" +) + +S="${WORKDIR}"/${MY_P} +src_prepare() { + default + ecvs_clean + sed -i -e "/^AR=/s:ar:$(tc-getAR):" {.,w3mimg,libwc}/Makefile.in || die + hprefixify acinclude.m4 + eautoconf +} + +src_configure() { + local myconf imagelibval imageval + + if use gtk ; then + imagelibval="gtk2" + elif use imlib ; then + imagelibval="imlib2" + fi + + if [ ! -z "${imagelibval}" ] ; then + use X && imageval="${imageval}${imageval:+,}x11" + use X && use fbcon && imageval="${imageval}${imageval:+,}fb" + fi + + # emacs-w3m doesn't like "--enable-m17n --disable-unicode," + # so we better enable or disable both. Default to enable + # m17n and unicode, see bug #47046. + if use l10n_ja ; then + if use unicode ; then + myconf="${myconf} --enable-japanese=U" + else + myconf="${myconf} --enable-japanese=E" + fi + elif use unicode ; then + myconf="${myconf} --with-charset=UTF-8" + else + myconf="${myconf} --with-charset=US-ASCII" + fi + + # lynxkeymap IUSE flag. bug #49397 + if use lynxkeymap ; then + myconf="${myconf} --enable-keymap=lynx" + else + myconf="${myconf} --enable-keymap=w3m" + fi + + econf \ + --with-editor="${EPREFIX}/usr/bin/vi" \ + --with-mailer="${EPREFIX}/bin/mail" \ + --with-browser="${EPREFIX}/usr/bin/xdg-open" \ + --with-termlib=yes \ + --enable-image=${imageval:-no} \ + --with-imagelib="${imagelibval:-no}" \ + --without-migemo \ + --enable-m17n \ + --enable-unicode \ + $(use_enable gpm mouse) \ + $(use_enable nls) \ + $(use_enable nntp) \ + $(use_enable ssl digest-auth) \ + $(use_with ssl) \ + $(use_enable xface) \ + ${myconf} +} + +src_install() { + + emake DESTDIR="${D}" install + + # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html + insinto /etc/${PN} + newins "${FILESDIR}/${PN}.mailcap" mailcap + + insinto /usr/share/${PN}/Bonus + doins Bonus/* + dodoc README NEWS TODO ChangeLog + docinto doc-en ; dodoc doc/* + if use l10n_ja ; then + docinto doc-jp ; dodoc doc-jp/* + else + rm -rf "${ED}"/usr/share/man/ja || die + fi +} |