/[gentoo-x86]/media-gfx/feh/feh-2.9.2.ebuild
Gentoo

Contents of /media-gfx/feh/feh-2.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Mar 1 07:29:32 2014 UTC (4 years, 3 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old.

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

1 radhermit 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 radhermit 1.6 # $Header: /var/cvsroot/gentoo-x86/media-gfx/feh/feh-2.9.2.ebuild,v 1.5 2013/08/16 11:33:39 ssuominen Exp $
4 radhermit 1.1
5     EAPI=5
6     inherit eutils toolchain-funcs
7    
8     DESCRIPTION="A fast, lightweight imageviewer using imlib2"
9     HOMEPAGE="http://feh.finalrewind.org/"
10     SRC_URI="http://feh.finalrewind.org/${P}.tar.bz2"
11    
12     LICENSE="feh"
13     SLOT="0"
14 ago 1.4 KEYWORDS="amd64 ~arm ppc ppc64 x86"
15 radhermit 1.1 IUSE="debug curl exif test xinerama"
16    
17     COMMON_DEPEND=">=media-libs/giblib-1.2.4
18     media-libs/imlib2
19     >=media-libs/libpng-1.2:0
20     x11-libs/libX11
21     curl? ( net-misc/curl )
22     exif? ( media-libs/libexif )
23     xinerama? ( x11-libs/libXinerama )"
24     RDEPEND="${COMMON_DEPEND}
25 ssuominen 1.5 virtual/jpeg:0"
26 radhermit 1.1 DEPEND="${COMMON_DEPEND}
27     x11-libs/libXt
28     x11-proto/xproto
29     test? (
30     >=dev-lang/perl-5.10
31     dev-perl/Test-Command
32     )"
33    
34     pkg_setup() {
35     use_feh() { usex $1 1 0; }
36    
37     fehopts=(
38     DESTDIR="${D}"
39     PREFIX=/usr
40     doc_dir='${main_dir}'/share/doc/${PF}
41     example_dir='${main_dir}'/share/doc/${PF}/examples
42     curl=$(use_feh curl)
43     debug=$(use_feh debug)
44     xinerama=$(use_feh xinerama)
45     exif=$(use_feh exif)
46     )
47     }
48    
49     src_prepare() {
50     epatch "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch
51     # fix desktop file
52     sed -i -e "s:^Icon=.*:Icon=/usr/share/feh/images/logo.svg:" \
53     share/applications/${PN}.pre || die
54     }
55    
56     src_compile() {
57     tc-export CC
58     emake "${fehopts[@]}"
59     }
60    
61     src_install() {
62     emake "${fehopts[@]}" install
63     }

  ViewVC Help
Powered by ViewVC 1.1.20