/[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.10 - (hide annotations) (download)
Mon Sep 24 18:44:31 2012 UTC (2 years, 1 month ago) by armin76
Branch: MAIN
Changes since 1.9: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #434210

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

  ViewVC Help
Powered by ViewVC 1.1.20