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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 11 15:09:55 2010 UTC (7 years, 6 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.4.3.ebuild,v 1.1 2010/04/25 12:58:13 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="mirror://debian/pool/main/f/${PN}/${PN}_${PV}.orig.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/libXext
21 x11-libs/libX11
22 xinerama? ( x11-libs/libXinerama )"
23 RDEPEND="${COMMON_DEPEND}
24 >=media-libs/jpeg-8a"
25 DEPEND="${COMMON_DEPEND}
26 x11-libs/libXt
27 x11-proto/xproto"
28
29 pkg_setup() {
30 fehopts="DESTDIR=${D}
31 doc_dir=${D}/usr/share/doc/${PF}
32 PREFIX=/usr"
33 }
34
35 src_prepare() {
36 if ! use xinerama; then
37 sed -i -e '/^xinerama/d' config.mk || die
38 fi
39
40 sed -i -e 's:LDFLAGS +=:LDLIBS =:' config.mk || die
41
42 sed -i \
43 -e 's:${LDFLAGS}:${LDLIBS}:' \
44 -e 's:${CC} ${CFLAGS}:${CC} ${LDFLAGS} ${CFLAGS}:' \
45 src/Makefile || die
46
47 sed -i \
48 -e 's:${doc_dir}/feh:${doc_dir}:g' \
49 Makefile || die
50 }
51
52 src_compile() {
53 tc-export CC
54 emake ${fehopts} || die
55 }
56
57 src_install() {
58 emake ${fehopts} install || die
59 prepalldocs
60 }

  ViewVC Help
Powered by ViewVC 1.1.20