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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 28 06:10:44 2012 UTC (2 years, 3 months ago) by radhermit
Branch: MAIN
Changes since 1.2: +1 -6 lines
Remove old parallel compile workaround.

(Portage version: 2.2.0_alpha131/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/lynx/lynx-2.8.8_pre14.ebuild,v 1.2 2012/09/28 06:08:01 radhermit Exp $
4
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 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 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? (
36 dev-libs/libgcrypt
37 >=net-libs/gnutls-2.6.4
38 )
39 )
40 bzip2? ( app-arch/bzip2 )
41 idn? ( net-dns/libidn )"
42
43 DEPEND="${RDEPEND}
44 nls? ( sys-devel/gettext )
45 virtual/pkgconfig"
46
47 S="${WORKDIR}/${PN}$(replace_all_version_separators - $(get_version_component_range 1-3))"
48
49 pkg_setup() {
50 ! use ssl && elog "SSL support disabled; you will not be able to access secure websites."
51 }
52
53 src_prepare() {
54 # fix configure for openssl compiled with kerberos (bug #267749)
55 epatch "${FILESDIR}/lynx-2.8.7-configure-openssl.patch"
56 epatch "${FILESDIR}"/${PN}-2.8.6-mint.patch
57 epatch "${FILESDIR}"/${P}-parallel.patch
58 }
59
60 src_configure() {
61 econf \
62 --enable-nested-tables \
63 --enable-cgi-links \
64 --enable-persistent-cookies \
65 --enable-prettysrc \
66 --enable-nsl-fork \
67 --enable-file-upload \
68 --enable-read-eta \
69 --enable-color-style \
70 --enable-scrollbar \
71 --enable-included-msgs \
72 --enable-externs \
73 --with-zlib \
74 $(use_enable nls) \
75 $(use_enable idn idna) \
76 $(use_enable ipv6) \
77 $(use_enable cjk) \
78 $(use_enable unicode japanese-utf8) \
79 $(use_with bzip2 bzlib) \
80 $(usex ssl "--with-$(usex gnutls gnutls ssl)=${EPREFIX}/usr" "") \
81 $(usex unicode "--with-screen=ncursesw" "")
82 }
83
84 src_install() {
85 emake install DESTDIR="${D}"
86
87 sed -i -e "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \
88 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
89 if use unicode ; then
90 sed -i -e '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \
91 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
92 fi
93 dodoc CHANGES COPYHEADER PROBLEMS README
94 docinto docs
95 dodoc docs/*
96 docinto lynx_help
97 dodoc lynx_help/*.txt
98 dohtml -r lynx_help/*
99 }

  ViewVC Help
Powered by ViewVC 1.1.20