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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Dec 17 12:43:44 2006 UTC (12 years, 11 months ago) by spock
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove an old ebuild.
(Portage version: 2.1.2_rc3-r5)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.11.0.ebuild,v 1.9 2006/11/21 17:05:39 spock Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="1.4"
7
8 inherit eutils autotools
9
10 MY_P=${P/_/}
11 DESCRIPTION="Advanced and well-established text-mode web browser"
12 HOMEPAGE="http://elinks.or.cz/"
13 SRC_URI="http://elinks.or.cz/download/${MY_P}.tar.bz2
14 http://dev.gentoo.org/~spock/portage/distfiles/elinks-0.10.4.conf.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
19 IUSE="bittorrent bzip2 debug finger ftp gopher gpm guile idn ipv6 \
20 javascript lua nls nntp perl ruby samba ssl unicode X zlib"
21 RESTRICT="test"
22
23 DEPEND=">=dev-libs/expat-1.95.4
24 bzip2? ( >=app-arch/bzip2-1.0.2 )
25 ssl? ( >=dev-libs/openssl-0.9.6g )
26 X? ( || ( ( x11-libs/libX11 x11-libs/libXt )
27 virtual/x11 ) )
28 zlib? ( >=sys-libs/zlib-1.1.4 )
29 lua? ( >=dev-lang/lua-4 )
30 gpm? ( >=sys-libs/ncurses-5.2 >=sys-libs/gpm-1.20.0-r5 )
31 guile? ( >=dev-util/guile-1.6.4-r1 )
32 idn? ( net-dns/libidn )
33 perl? ( sys-devel/libperl )
34 ruby? ( dev-lang/ruby )
35 !hppa? ( !mips? ( !alpha? ( javascript? ( dev-lang/spidermonkey ) ) ) )
36 samba? ( net-fs/samba )"
37 RDEPEND="${DEPEND}"
38
39 S=${WORKDIR}/${MY_P}
40
41 src_unpack() {
42 unpack ${A}
43 mv "${PN}-0.10.4.conf" "${PN}.conf"
44 if ! use ftp ; then
45 sed -i -e 's/\(.*protocol.ftp.*\)/# \1/' ${PN}.conf
46 fi
47 sed -i -e 's/\(.*set protocol.ftp.use_epsv.*\)/# \1/' ${PN}.conf
48 cd ${S}
49 epatch ${FILESDIR}/${P}-gcc4-inline.patch
50 epatch ${FILESDIR}/${P}-make.patch
51 epatch ${FILESDIR}/${P}-ruby.patch
52 if use unicode ; then
53 epatch ${FILESDIR}/elinks-0.10.1-utf_8_io-default.patch
54 fi
55 sed -i -e 's/-Werror//' configure*
56 }
57
58 src_compile() {
59 # NOTE about GNUTSL SSL support (from the README -- 25/12/2002)
60 # As GNUTLS is not yet 100% stable and its support in ELinks is not so well
61 # tested yet, it's recommended for users to give a strong preference to OpenSSL whenever possible.
62 local myconf=""
63
64 eautoreconf
65
66 if use debug ; then
67 myconf="--enable-debug"
68 else
69 myconf="--enable-fastmem"
70 fi
71
72 econf \
73 --sysconfdir=/etc/elinks \
74 --enable-leds \
75 --enable-256-colors \
76 --enable-html-highlight \
77 $(use_with gpm) \
78 $(use_with zlib) \
79 $(use_with bzip2 bzlib) \
80 $(use_with ssl openssl) \
81 $(use_with X x) \
82 $(use_with lua) \
83 $(use_with guile) \
84 $(use_with perl) \
85 $(use_with ruby) \
86 $(use_with idn) \
87 $(use_with javascript spidermonkey) \
88 $(use_enable bittorrent) \
89 $(use_enable nls) \
90 $(use_enable ipv6) \
91 $(use_enable samba smb) \
92 $(use_enable ftp) \
93 $(use_enable gopher) \
94 $(use_enable nntp) \
95 $(use_enable finger) \
96 ${myconf} || die
97
98 emake || die "compile problem"
99 }
100
101 src_install() {
102 make DESTDIR="${D}" install || die
103
104 insopts -m 644 ; insinto /etc/elinks
105 doins "${WORKDIR}"/elinks.conf
106 newins contrib/keybind-full.conf keybind-full.sample
107 newins contrib/keybind.conf keybind.conf.sample
108
109 dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
110 docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
111 insinto /usr/share/doc/${PF}/contrib/lua ; doins contrib/lua/{*.lua,elinks-remote}
112 insinto /usr/share/doc/${PF}/contrib/conv ; doins contrib/conv/*.*
113 insinto /usr/share/doc/${PF}/contrib/guile ; doins contrib/guile/*.scm
114
115 # Remove some conflicting files on OSX. The files provided by OSX 10.4
116 # are more or less the same. -- Fabian Groffen (2005-06-30)
117 rm -f "${D}"/usr/share/locale/locale.alias "${D}"/usr/lib/charset.alias
118 }
119
120 pkg_postinst() {
121 einfo "This ebuild provides a default config for ELinks."
122 einfo "Please check /etc/elinks/elinks.conf"
123 einfo
124 einfo "You may want to convert your html.cfg and links.cfg of"
125 einfo "Links or older ELinks versions to the new ELinks elinks.conf"
126 einfo "using /usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
127 einfo
128 einfo "Please have a look at /etc/elinks/keybind-full.sample and"
129 einfo "/etc/elinks/keybind.conf.sample for some bindings examples."
130 if use guile ; then
131 einfo
132 einfo "Since you have compiled ELinks with Guile support, you will have to"
133 einfo "copy internal-hooks.scm and user-hooks.scm from"
134 einfo "/usr/share/doc/${PF}/contrib/guile/ to ~/.elinks/"
135 fi
136 einfo
137 einfo "You will have to set your TERM variable to 'xterm-256color'"
138 einfo "to be able to use 256 colors in elinks."
139 echo
140 }

  ViewVC Help
Powered by ViewVC 1.1.20