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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 25 17:18:08 2010 UTC (7 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.
(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.7.ebuild,v 1.1 2010/06/11 15:09:55 ssuominen 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="xinerama"
16
17 COMMON_DEPEND=">=media-libs/giblib-1.2.4
18 media-libs/imlib2
19 media-libs/libpng
20 x11-libs/libX11
21 xinerama? ( x11-libs/libXinerama )"
22 RDEPEND="${COMMON_DEPEND}
23 >=media-libs/jpeg-8a"
24 DEPEND="${COMMON_DEPEND}
25 x11-libs/libXt
26 x11-proto/xproto"
27
28 pkg_setup() {
29 fehopts=(
30 "DESTDIR=${D}"
31 "doc_dir=${D}/usr/share/doc/${PF}"
32 "PREFIX=/usr"
33 )
34 }
35
36 src_prepare() {
37 if ! use xinerama; then
38 sed -i -e '/^xinerama/d' config.mk || die
39 fi
40
41 sed -i -e 's:LDFLAGS +=:LDLIBS =:' config.mk || die
42
43 sed -i \
44 -e 's:${LDFLAGS}:${LDLIBS}:' \
45 -e 's:${CC} ${CFLAGS}:${CC} ${LDFLAGS} ${CFLAGS}:' \
46 src/Makefile || die
47 }
48
49 src_compile() {
50 tc-export CC
51 emake "${fehopts[@]}" || die
52 }
53
54 src_install() {
55 emake "${fehopts[@]}" install || die
56 prepalldocs
57 }

  ViewVC Help
Powered by ViewVC 1.1.20