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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Apr 15 18:13:17 2012 UTC (2 years, 5 months ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #411493

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 ssuominen 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.7 # $Header: /var/cvsroot/gentoo-x86/www-client/links/links-2.6.ebuild,v 1.6 2012/04/14 15:11:46 maekke Exp $
4 ssuominen 1.1
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.5-1.debian.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="2"
15 armin76 1.7 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 s390 sh sparc x86 ~ppc-aix ~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 ssuominen 1.1 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? ( dev-libs/DirectFB )
23     fbcon? ( ${GRAPHICS_DEPEND} )
24     gpm? ( sys-libs/gpm )
25     jpeg? ( virtual/jpeg )
26     livecd? ( ${GRAPHICS_DEPEND} )
27     lzma? ( app-arch/xz-utils )
28     ssl? ( dev-libs/openssl:0 )
29     svga? (
30     ${GRAPHICS_DEPEND}
31     >=media-libs/svgalib-1.4.3
32     )
33     tiff? ( media-libs/tiff:0 )
34     X? (
35     ${GRAPHICS_DEPEND}
36     x11-libs/libXext
37     )
38     zlib? ( sys-libs/zlib )"
39     DEPEND="${RDEPEND}
40     dev-util/pkgconfig"
41    
42     GRAPHICS_USE="jpeg gpm"
43    
44     REQUIRED_USE="fbcon? ( ${GRAPHICS_USE} )
45     livecd? ( ${GRAPHICS_USE} )
46     svga? ( suid )"
47    
48     DOCS=( AUTHORS BRAILLE_HOWTO ChangeLog KEYS NEWS README SITES )
49    
50     src_prepare() {
51     epatch "${WORKDIR}"/debian/patches/verify-ssl-certs-510417.diff
52    
53     if use unicode; then
54     pushd intl >/dev/null
55     ./gen-intl || die
56     ./synclang || die
57     popd >/dev/null
58     fi
59    
60     # error: conditional "am__fastdepCXX" was never defined (for eautoreconf)
61     sed -i -e '/AC_PROG_CXX/s:#::' configure.in || die
62    
63 mr_bones_ 1.4 # Upstream configure produced by broken autoconf-2.13. This also fixes
64 ssuominen 1.1 # toolchain detection.
65     eautoreconf #131440 and #103483#c23
66     }
67    
68     src_configure() {
69     export ac_cv_lib_gpm_Gpm_Open=$(usex gpm)
70    
71     local myconf
72    
73     if use X || use fbcon || use directfb || use svga || use livecd; then
74     myconf+=' --enable-graphics'
75     fi
76    
77     if use fbcon || use livecd; then
78     myconf+=' --with-fb'
79     else
80     myconf+=' --without-fb'
81     fi
82    
83     econf \
84     $(use_with ssl) \
85     $(use_with zlib) \
86     $(use_with bzip2) \
87     $(use_with lzma) \
88     $(use_with svga svgalib) \
89     $(use_with X x) \
90     $(use_with directfb) \
91     $(use_with jpeg libjpeg) \
92     $(use_with tiff libtiff) \
93     ${myconf}
94     }
95    
96     src_install() {
97     default
98    
99     if use X; then
100     newicon Links_logo.png links.png
101     make_desktop_entry 'links -g %u' Links links 'Network;WebBrowser'
102     local d="${ED}"/usr/share/applications
103     echo 'MimeType=x-scheme-handler/http;' >> "${d}"/*.desktop
104     use ssl && sed -i -e 's:x-scheme-handler/http;:&x-scheme-handler/https;:' \
105     "${d}"/*.desktop
106     fi
107    
108     nonfatal dohtml doc/links_cal/*
109     use deprecated && dosym links /usr/bin/links2
110     use suid && fperms 4755 /usr/bin/links
111     }
112    
113     pkg_postinst() {
114     use X && fdo-mime_desktop_database_update
115     }
116    
117     pkg_postrm() {
118     use X && fdo-mime_desktop_database_update
119     }

  ViewVC Help
Powered by ViewVC 1.1.20