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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Nov 11 10:51:23 2014 UTC (4 years, 1 month ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for ia64, wrt bug #526588

(Portage version: 2.2.8-r2/cvs/Linux x86_64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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_p2.ebuild,v 1.9 2014/11/04 09:26:25 ago Exp $
4
5 EAPI=5
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 ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~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:0
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 epatch "${FILESDIR}"/${PN}-2.8.6-mint.patch
55 epatch "${FILESDIR}"/${PN}-2.8.8_p1-parallel.patch
56 }
57
58 src_configure() {
59 econf \
60 --enable-nested-tables \
61 --enable-cgi-links \
62 --enable-persistent-cookies \
63 --enable-prettysrc \
64 --enable-nsl-fork \
65 --enable-file-upload \
66 --enable-read-eta \
67 --enable-color-style \
68 --enable-scrollbar \
69 --enable-included-msgs \
70 --enable-externs \
71 --with-zlib \
72 $(use_enable nls) \
73 $(use_enable idn idna) \
74 $(use_enable ipv6) \
75 $(use_enable cjk) \
76 $(use_enable unicode japanese-utf8) \
77 $(use_with bzip2 bzlib) \
78 $(usex ssl "--with-$(usex gnutls gnutls ssl)=${EPREFIX}/usr" "") \
79 $(usex unicode "--with-screen=ncursesw" "")
80 }
81
82 src_install() {
83 emake install DESTDIR="${D}"
84
85 sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \
86 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
87 if use unicode ; then
88 sed -i '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \
89 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
90 fi
91
92 dodoc CHANGES COPYHEADER PROBLEMS README
93 docinto docs
94 dodoc docs/*
95 docinto lynx_help
96 dodoc lynx_help/*.txt
97 dohtml -r lynx_help/*
98 }

  ViewVC Help
Powered by ViewVC 1.1.20