/[gentoo-x86]/www-client/elinks/elinks-0.10.4.ebuild
Gentoo

Contents of /www-client/elinks/elinks-0.10.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Oct 29 18:22:03 2005 UTC (14 years ago) by spock
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Version bump (bug #110501). Removed old ebuilds.
(Portage version: 1.589-cvs)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/elinks/elinks-0.10.4.ebuild,v 1.8 2005/06/17 21:03:28 hansmi Exp $
4
5 IUSE="gpm zlib ssl ipv6 X lua guile"
6
7 MY_P=${P/_/}
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="Advanced and well-established text-mode web browser"
10 HOMEPAGE="http://elinks.or.cz"
11 SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
12 http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2"
13
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
17
18 DEPEND="virtual/libc
19 >=app-arch/bzip2-1.0.2
20 >=dev-libs/expat-1.95.4
21 >=sys-apps/portage-2.0.45-r3
22 ssl? ( >=dev-libs/openssl-0.9.6g )
23 X? ( virtual/x11 )
24 zlib? ( >=sys-libs/zlib-1.1.4 )
25 lua? ( >=dev-lang/lua-4 )
26 gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
27 guile? ( >=dev-util/guile-1.6.4-r1 )"
28 PROVIDE="virtual/textbrowser"
29
30 src_unpack() {
31 unpack ${A}
32 cd ${WORKDIR}
33
34 mv "${PN}-0.10.4.conf" "${PN}.conf"
35 sed -i \
36 -e 's:CONFIG_256_COLORS=.*:CONFIG_256_COLORS=yes:' \
37 -e 's:CONFIG_LEDS=.*:CONFIG_LEDS=yes:' \
38 -e 's:CONFIG_HTML_HIGHLIGHT=.*:CONFIG_HTML_HIGHLIGHT=yes:' \
39 ${S}/features.conf
40 }
41
42 src_compile() {
43 # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
44 # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
45 # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
46
47 econf --sysconfdir=/etc/elinks \
48 --enable-leds \
49 `use_with gpm` \
50 `use_with zlib` \
51 `use_with ssl openssl` \
52 `use_with X x` \
53 `use_enable ipv6` \
54 `use_with lua` \
55 `use_with guile` || die
56
57 emake || die "compile problem"
58 }
59
60 src_install() {
61
62 make DESTDIR="${D}" install || die
63
64 insopts -m 644 ; insinto /etc/elinks
65 doins ${WORKDIR}/elinks.conf
66 newins contrib/keybind-full.conf keybind-full.sample
67 newins contrib/keybind.conf keybind.conf.sample
68
69 dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
70 docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
71 insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
72 insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
73 insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
74 }
75
76 # disable it as the only test available is interactive..
77 src_test() {
78 return 0
79 }
80
81 pkg_postinst() {
82 einfo "This ebuild provides a default config for ELinks."
83 einfo "Please check /etc/elinks/elinks.conf"
84 einfo
85 einfo "You may want to convert your html.cfg and links.cfg of"
86 einfo "Links or older ELinks versions to the new ELinks elinks.conf"
87 einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
88 einfo
89 einfo "Please have a look at /etc/elinks/keybind-full.sample and"
90 einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
91 einfo
92 einfo "If you have compiled ELinks with Guile support, you will have to"
93 einfo "copy internal-hooks.scm and user-hooks.scm from"
94 einfo "/usr/share/doc/${PF}/contrib/guile/ to ~/.elinks/"
95 einfo
96 einfo "You will have to set your TERM variable to 'xterm-256color'"
97 einfo "to be able to use 256 colors in elinks."
98 echo
99 }

  ViewVC Help
Powered by ViewVC 1.1.20