/[gentoo-x86]/www-client/lynx/lynx-2.8.8_pre12.ebuild
Gentoo

Contents of /www-client/lynx/lynx-2.8.8_pre12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Mon May 28 16:49:03 2012 UTC (12 months, 3 weeks ago) by armin76
Branch: MAIN
Changes since 1.10: +2 -2 lines
alpha/ia64/m68k/s390/sh/sparc stable wrt #414267

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 radhermit 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.11 # $Header: /var/cvsroot/gentoo-x86/www-client/lynx/lynx-2.8.8_pre12.ebuild,v 1.10 2012/05/16 15:36:31 jer Exp $
4 radhermit 1.1
5     EAPI=4
6    
7     inherit eutils versionator
8    
9     # VERSIONING SCHEME TRANSLATION
10     # Upstream : Gentoo
11     # rel. : _p
12     # pre. : _rc
13     # dev. : _pre
14    
15     case ${PV} in
16     *_pre*) MY_P="${PN}${PV/_pre/dev.}" ;;
17     *_rc*) MY_P="${PN}${PV/_rc/pre.}" ;;
18     *_p*|*) MY_P="${PN}${PV/_p/rel.}" ;;
19     esac
20    
21     DESCRIPTION="An excellent console-based web browser with ssl support"
22     HOMEPAGE="http://lynx.isc.org/"
23     SRC_URI="http://lynx.isc.org/current/${MY_P}.tar.bz2"
24    
25     LICENSE="GPL-2"
26     SLOT="0"
27 armin76 1.11 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
28 radhermit 1.1 IUSE="bzip2 cjk gnutls idn ipv6 nls ssl unicode"
29    
30     RDEPEND="sys-libs/ncurses[unicode?]
31     sys-libs/zlib
32     nls? ( virtual/libintl )
33     ssl? (
34     !gnutls? ( >=dev-libs/openssl-0.9.8 )
35     gnutls? ( >=net-libs/gnutls-2.6.4 )
36     )
37     bzip2? ( app-arch/bzip2 )
38     idn? ( net-dns/libidn )"
39    
40     DEPEND="${RDEPEND}
41     nls? ( sys-devel/gettext )
42 jdhore 1.6 virtual/pkgconfig"
43 radhermit 1.1
44     S="${WORKDIR}/${PN}$(replace_all_version_separators - $(get_version_component_range 1-3))"
45    
46     pkg_setup() {
47     ! use ssl && elog "SSL support disabled; you will not be able to access secure websites."
48     }
49    
50     src_prepare() {
51     # fix configure for openssl compiled with kerberos (bug #267749)
52     epatch "${FILESDIR}/lynx-2.8.7-configure-openssl.patch"
53     epatch "${FILESDIR}"/${PN}-2.8.6-mint.patch
54 flameeyes 1.3 epatch "${FILESDIR}"/lynx-2.8.8_pre12-parallel.patch
55 radhermit 1.1 }
56    
57     src_configure() {
58     local myargs
59    
60     if use ssl ; then
61     # --with-gnutls and --with-ssl are alternatives,
62     # the latter enabling openssl support so it should be
63     # _not_ be used if gnutls ssl implementation is desired
64     if use gnutls ; then
65     myargs+=" --with-gnutls" # ssl implementation = gnutls
66     else
67     myargs+=" --with-ssl" # ssl implementation = openssl
68     fi
69     fi
70    
71     use unicode && myargs+=" --with-screen=ncursesw"
72    
73     econf \
74     --enable-nested-tables \
75     --enable-cgi-links \
76     --enable-persistent-cookies \
77     --enable-prettysrc \
78     --enable-nsl-fork \
79     --enable-file-upload \
80     --enable-read-eta \
81     --enable-color-style \
82     --enable-scrollbar \
83     --enable-included-msgs \
84     --enable-externs \
85     --with-zlib \
86     $(use_enable nls) \
87     $(use_enable idn idna) \
88     $(use_enable ipv6) \
89     $(use_enable cjk) \
90     $(use_enable unicode japanese-utf8) \
91     $(use_with bzip2 bzlib) \
92     $myargs
93     }
94    
95 flameeyes 1.3 #src_compile() {
96     # # see bug #403905
97     # emake -j1
98     #}
99 flameeyes 1.2
100 radhermit 1.1 src_install() {
101     emake install DESTDIR="${D}"
102    
103     sed -i -e "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \
104     "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
105     if use unicode ; then
106     sed -i -e '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \
107     "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
108     fi
109     dodoc CHANGES COPYHEADER PROBLEMS README
110     docinto docs
111     dodoc docs/*
112     docinto lynx_help
113     dodoc lynx_help/*.txt
114     dohtml -r lynx_help/*
115     }

  ViewVC Help
Powered by ViewVC 1.1.20