/[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.16 - (show annotations) (download)
Thu Mar 6 03:40:08 2014 UTC (9 months, 2 weeks ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

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_pre12.ebuild,v 1.15 2014/03/01 22:21:04 mgorny 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: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 # 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}"/lynx-2.8.8_pre12-parallel.patch
58 epatch "${FILESDIR}"/lynx-2.8.8_pre12-jobserver.patch
59 }
60
61 src_configure() {
62 local myargs
63
64 if use ssl ; then
65 # --with-gnutls and --with-ssl are alternatives,
66 # the latter enabling openssl support so it should be
67 # _not_ be used if gnutls ssl implementation is desired
68 if use gnutls ; then
69 # ssl implementation = gnutls
70 myargs+=" --with-gnutls=${EPREFIX}/usr"
71 else
72 # ssl implementation = openssl
73 myargs+=" --with-ssl=${EPREFIX}/usr"
74 fi
75 fi
76
77 use unicode && myargs+=" --with-screen=ncursesw"
78
79 econf \
80 --enable-nested-tables \
81 --enable-cgi-links \
82 --enable-persistent-cookies \
83 --enable-prettysrc \
84 --enable-nsl-fork \
85 --enable-file-upload \
86 --enable-read-eta \
87 --enable-color-style \
88 --enable-scrollbar \
89 --enable-included-msgs \
90 --enable-externs \
91 --with-zlib \
92 $(use_enable nls) \
93 $(use_enable idn idna) \
94 $(use_enable ipv6) \
95 $(use_enable cjk) \
96 $(use_enable unicode japanese-utf8) \
97 $(use_with bzip2 bzlib) \
98 $myargs
99 }
100
101 #src_compile() {
102 # # see bug #403905
103 # emake -j1
104 #}
105
106 src_install() {
107 emake install DESTDIR="${D}"
108
109 sed -i -e "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PF}/lynx_help/lynx_help_main.html|" \
110 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
111 if use unicode ; then
112 sed -i -e '/^#CHARACTER_SET:/ c\CHARACTER_SET:utf-8' \
113 "${ED}"/etc/lynx.cfg || die "lynx.cfg not found"
114 fi
115 dodoc CHANGES COPYHEADER PROBLEMS README
116 docinto docs
117 dodoc docs/*
118 docinto lynx_help
119 dodoc lynx_help/*.txt
120 dohtml -r lynx_help/*
121 }

  ViewVC Help
Powered by ViewVC 1.1.20