Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/links/
Date: Wed, 14 Feb 2018 20:07:15
Message-Id: 1518638697.e860344e0086ce6041df9bc76198ba1a09fccfc9.pacho@gentoo
1 commit: e860344e0086ce6041df9bc76198ba1a09fccfc9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 20:01:20 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 20:04:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e860344e
7
8 www-client/links: Drop directfb support (#642512), stop using deprecated eclasses
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 www-client/links/links-2.14-r1.ebuild | 155 ++++++++++++++++++++++++++++++++++
13 1 file changed, 155 insertions(+)
14
15 diff --git a/www-client/links/links-2.14-r1.ebuild b/www-client/links/links-2.14-r1.ebuild
16 new file mode 100644
17 index 00000000000..7e7df366459
18 --- /dev/null
19 +++ b/www-client/links/links-2.14-r1.ebuild
20 @@ -0,0 +1,155 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit autotools desktop xdg
27 +
28 +DEBIAN_REVISION=2.10-2
29 +
30 +DESCRIPTION="A fast and lightweight web browser running in both graphics and text mode"
31 +HOMEPAGE="http://links.twibright.com/"
32 +SRC_URI="http://${PN}.twibright.com/download/${P}.tar.bz2
33 + mirror://debian/pool/main/${PN:0:1}/${PN}2/${PN}2_${DEBIAN_REVISION}.debian.tar.xz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="2"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
38 +IUSE="bzip2 fbcon gpm ipv6 jpeg libevent libressl livecd lzma ssl suid svga tiff unicode X zlib"
39 +
40 +GRAPHICS_DEPEND="media-libs/libpng:0="
41 +
42 +RDEPEND="
43 + bzip2? (
44 + app-arch/bzip2
45 + )
46 + fbcon? (
47 + ${GRAPHICS_DEPEND}
48 + )
49 + gpm? (
50 + sys-libs/gpm
51 + )
52 + jpeg? (
53 + virtual/jpeg:0
54 + )
55 + libevent? (
56 + dev-libs/libevent:0=
57 + )
58 + livecd? (
59 + ${GRAPHICS_DEPEND}
60 + sys-libs/gpm
61 + virtual/jpeg:0
62 + )
63 + lzma? (
64 + app-arch/xz-utils
65 + )
66 + ssl? (
67 + !libressl? ( dev-libs/openssl:0= )
68 + libressl? ( dev-libs/libressl:0= )
69 + )
70 + svga? (
71 + ${GRAPHICS_DEPEND}
72 + media-libs/svgalib
73 + )
74 + tiff? (
75 + media-libs/tiff:0
76 + )
77 + X? (
78 + ${GRAPHICS_DEPEND}
79 + x11-libs/libXext
80 + )
81 + zlib? (
82 + sys-libs/zlib
83 + )"
84 +
85 +DEPEND="${RDEPEND}
86 + virtual/pkgconfig
87 + fbcon? ( virtual/os-headers )
88 + livecd? ( virtual/os-headers )"
89 +
90 +REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
91 + svga? ( suid )"
92 +
93 +DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
94 +
95 +src_prepare() {
96 + xdg_src_prepare
97 +
98 + if use unicode; then
99 + pushd intl > /dev/null || die
100 + ./gen-intl || die
101 + ./synclang || die
102 + popd > /dev/null || die
103 + fi
104 +
105 + # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
106 + sed -i \
107 + -e '/AC_PROG_CXX/s:dnl ::' \
108 + -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
109 + configure.in || die #467020
110 +
111 + # Upstream configure produced by broken autoconf-2.13. This also fixes
112 + # toolchain detection.
113 + mv configure.in configure.ac || die
114 + eautoreconf #131440 and #103483#c23
115 +}
116 +
117 +src_configure() {
118 + local myconf
119 +
120 + if use livecd; then
121 + export ac_cv_lib_gpm_Gpm_Open=yes
122 + myconf+=' --with-fb --with-libjpeg'
123 + else
124 + export ac_cv_lib_gpm_Gpm_Open=$(usex gpm)
125 + fi
126 +
127 + if use X || use fbcon || use svga || use livecd; then
128 + myconf+=' --enable-graphics'
129 + fi
130 +
131 + econf \
132 + --without-directfb \
133 + $(use_with ipv6) \
134 + $(use_with ssl) \
135 + $(use_with zlib) \
136 + $(use_with bzip2) \
137 + $(use_with lzma) \
138 + $(use_with svga svgalib) \
139 + $(use_with X x) \
140 + $(use_with fbcon fb) \
141 + $(use_with libevent) \
142 + $(use_with jpeg libjpeg) \
143 + $(use_with tiff libtiff) \
144 + ${myconf}
145 +}
146 +
147 +src_install() {
148 + HTML_DOCS="doc/links_cal/*"
149 + default
150 +
151 + if use X; then
152 + newicon Links_logo.png links.png
153 + make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
154 + local d="${ED}"/usr/share/applications
155 + echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop || die
156 + if use ssl; then
157 + sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
158 + "${d}"/*.desktop || die
159 + fi
160 + fi
161 +
162 + use suid && fperms 4755 /usr/bin/links
163 +}
164 +
165 +pkg_preinst() {
166 + use X && xdg_pkg_preinst
167 +}
168 +
169 +pkg_postinst() {
170 + use X && xdg_pkg_postinst
171 +}
172 +
173 +pkg_postrm() {
174 + use X && xdg_pkg_postrm
175 +}