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

Contents of /media-gfx/feh/feh-1.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 1 22:22:15 2010 UTC (7 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revert. jpegtran is used for jpeg rotation from command-line and USE depends that dont do anything dont belong here
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/feh/feh-1.8-r1.ebuild,v 1.1 2010/08/01 21:28:27 idl0r Exp $
4
5 EAPI=2
6 inherit toolchain-funcs
7
8 DESCRIPTION="A fast, lightweight imageviewer using imlib2"
9 HOMEPAGE="https://derf.homelinux.org/~derf/projects/feh/"
10 SRC_URI="http://www.chaosdorf.de/~derf/feh/${P}.tar.bz2"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="test gif jpeg png tiff xinerama"
16
17 COMMON_DEPEND=">=media-libs/giblib-1.2.4
18 media-libs/imlib2[gif?,jpeg?,png?,tiff?]
19 >=media-libs/libpng-1.4
20 x11-libs/libX11
21 xinerama? ( x11-libs/libXinerama )"
22 RDEPEND="${COMMON_DEPEND}"
23 DEPEND="${COMMON_DEPEND}
24 x11-libs/libXt
25 x11-proto/xproto
26 test? ( dev-perl/Test-Command )"
27
28 pkg_setup() {
29 fehopts=(
30 "DESTDIR=${D}"
31 "PREFIX=/usr"
32 "doc_dir=${D}/usr/share/doc/${PF}"
33 )
34 }
35
36 src_prepare() {
37 if ! use xinerama; then
38 sed -i -e '/^xinerama/d' config.mk || die
39 fi
40 }
41
42 src_compile() {
43 tc-export CC
44 emake "${fehopts[@]}" || die
45 }
46
47 src_test() {
48 if has_version ">=dev-lang/perl-5.10"; then
49 emake test || die
50 fi
51 }
52
53 src_install() {
54 emake "${fehopts[@]}" install || die
55 prepalldocs
56 }

  ViewVC Help
Powered by ViewVC 1.1.20