/[gentoo-x86]/www-client/links/links-2.7.ebuild
Gentoo

Contents of /www-client/links/links-2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 7 09:51:00 2012 UTC (22 months, 3 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.1: +5 -2 lines
Missing ${GRAPHICS_DEPEND} dependency for USE="directfb" wrt #434194 by Tim Hoppen

(Portage version: 2.2.0_alpha124/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/links/links-2.7.ebuild,v 1.1 2012/06/26 14:20:09 ssuominen Exp $
4
5 EAPI=4
6 inherit autotools eutils fdo-mime
7
8 DESCRIPTION="A fast and lightweight web browser running in both graphics and text mode"
9 HOMEPAGE="http://links.twibright.com/"
10 SRC_URI="http://${PN}.twibright.com/download/${P}.tar.bz2
11 mirror://debian/pool/main/${PN:0:1}/${PN}2/${PN}2_2.6-2.debian.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="2"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
16 IUSE="bzip2 +deprecated directfb fbcon gpm jpeg livecd lzma ssl suid svga tiff unicode X zlib"
17
18 GRAPHICS_DEPEND=">=media-libs/libpng-1.2:0" #75685
19
20 RDEPEND=">=sys-libs/ncurses-5.7-r7
21 bzip2? ( app-arch/bzip2 )
22 directfb? (
23 ${GRAPHICS_DEPEND}
24 dev-libs/DirectFB
25 )
26 fbcon? ( ${GRAPHICS_DEPEND} )
27 gpm? ( sys-libs/gpm )
28 jpeg? ( virtual/jpeg )
29 livecd? (
30 ${GRAPHICS_DEPEND}
31 sys-libs/gpm
32 virtual/jpeg
33 )
34 lzma? ( app-arch/xz-utils )
35 ssl? ( dev-libs/openssl:0 )
36 svga? (
37 ${GRAPHICS_DEPEND}
38 >=media-libs/svgalib-1.4.3
39 )
40 tiff? ( media-libs/tiff:0 )
41 X? (
42 ${GRAPHICS_DEPEND}
43 x11-libs/libXext
44 )
45 zlib? ( sys-libs/zlib )"
46
47 DEPEND="${RDEPEND}
48 virtual/pkgconfig
49 fbcon? ( virtual/os-headers )
50 livecd? ( virtual/os-headers )"
51
52 REQUIRED_USE="!livecd? ( fbcon? ( gpm ) )
53 svga? ( suid )"
54
55 DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
56
57 src_prepare() {
58 epatch "${WORKDIR}"/debian/patches/verify-ssl-certs-510417.diff
59
60 if use unicode; then
61 pushd intl >/dev/null
62 ./gen-intl || die
63 ./synclang || die
64 popd >/dev/null
65 fi
66
67 # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
68 sed -i -e '/AC_PROG_CXX/s:#::' configure.in || die
69
70 # Upstream configure produced by broken autoconf-2.13. This also fixes
71 # toolchain detection.
72 eautoreconf #131440 and #103483#c23
73 }
74
75 src_configure() {
76 local myconf
77
78 if use livecd; then
79 export ac_cv_lib_gpm_Gpm_Open=yes
80 myconf+=' --with-fb --with-libjpeg'
81 else
82 export ac_cv_lib_gpm_Gpm_Open=$(usex gpm)
83 fi
84
85 if use X || use fbcon || use directfb || use svga || use livecd; then
86 myconf+=' --enable-graphics'
87 fi
88
89 econf \
90 $(use_with ssl) \
91 $(use_with zlib) \
92 $(use_with bzip2) \
93 $(use_with lzma) \
94 $(use_with svga svgalib) \
95 $(use_with X x) \
96 $(use_with fbcon fb) \
97 $(use_with directfb) \
98 $(use_with jpeg libjpeg) \
99 $(use_with tiff libtiff) \
100 ${myconf}
101 }
102
103 src_install() {
104 default
105
106 if use X; then
107 newicon Links_logo.png links.png
108 make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
109 local d="${ED}"/usr/share/applications
110 echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop
111 use ssl && sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
112 "${d}"/*.desktop
113 fi
114
115 nonfatal dohtml doc/links_cal/*
116 use deprecated && dosym links /usr/bin/links2
117 use suid && fperms 4755 /usr/bin/links
118 }
119
120 pkg_postinst() {
121 use X && fdo-mime_desktop_database_update
122 }
123
124 pkg_postrm() {
125 use X && fdo-mime_desktop_database_update
126 }

  ViewVC Help
Powered by ViewVC 1.1.20