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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 5 20:18:59 2015 UTC (2 years, 4 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Version bump. Bug #550494

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

1 # Copyright 1999-2015 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.12.1.ebuild,v 1.1 2015/04/24 20:45:15 hwoarang 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 ~mips ~ppc ~ppc64 ~x86"
15 IUSE="debug curl exif test xinerama"
16
17 COMMON_DEPEND="media-libs/imlib2[X]
18 >=media-libs/libpng-1.2:0=
19 x11-libs/libX11
20 curl? ( net-misc/curl )
21 exif? ( media-libs/libexif )
22 xinerama? ( x11-libs/libXinerama )"
23 RDEPEND="${COMMON_DEPEND}
24 virtual/jpeg:0"
25 DEPEND="${COMMON_DEPEND}
26 x11-libs/libXt
27 x11-proto/xproto
28 test? (
29 >=dev-lang/perl-5.10
30 dev-perl/Test-Command
31 )"
32
33 pkg_setup() {
34 use_feh() { usex $1 1 0; }
35
36 fehopts=(
37 DESTDIR="${D}"
38 PREFIX=/usr
39 doc_dir='${main_dir}'/share/doc/${PF}
40 example_dir='${main_dir}'/share/doc/${PF}/examples
41 curl=$(use_feh curl)
42 debug=$(use_feh debug)
43 xinerama=$(use_feh xinerama)
44 exif=$(use_feh exif)
45 )
46 }
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${PN}-2.6.2-debug-cflags.patch
50 # fix desktop file
51 sed -i -e "s:^Icon=.*:Icon=/usr/share/feh/images/logo.svg:" \
52 share/applications/${PN}.pre || die
53 }
54
55 src_compile() {
56 tc-export CC
57 emake "${fehopts[@]}"
58 }
59
60 src_install() {
61 emake "${fehopts[@]}" install
62 }

  ViewVC Help
Powered by ViewVC 1.1.20