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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Sep 10 19:53:27 2014 UTC (3 years, 1 month ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Add the X useflag to the imlib2 dependency. Bug #522514

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/feh/feh-2.9.3.ebuild,v 1.6 2014/01/26 10:58:50 ago Exp $
4
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 KEYWORDS="amd64 ~arm ppc ppc64 x86"
15 IUSE="debug curl exif test xinerama"
16
17 COMMON_DEPEND=">=media-libs/giblib-1.2.4
18 media-libs/imlib2[X]
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 virtual/jpeg:0"
26 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