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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 3 17:59:59 2011 UTC (7 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.11.1.ebuild,v 1.1 2011/01/27 00:01:27 hwoarang 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 xinerama"
16
17 COMMON_DEPEND=">=media-libs/giblib-1.2.4
18 media-libs/imlib2
19 >=media-libs/libpng-1.4
20 x11-libs/libX11
21 xinerama? ( x11-libs/libXinerama )"
22 RDEPEND="${COMMON_DEPEND}
23 virtual/jpeg"
24 DEPEND="${COMMON_DEPEND}
25 x11-libs/libXt
26 x11-proto/xproto
27 test? ( >=dev-lang/perl-5.10
28 dev-perl/Test-Command )"
29
30 pkg_setup() {
31 fehopts=(
32 DESTDIR="${D}"
33 PREFIX=/usr
34 doc_dir='${main_dir}'/share/doc/${PF}
35 )
36 }
37
38 src_prepare() {
39 if ! use xinerama; then
40 sed -i -e '/^xinerama/d' config.mk || die
41 fi
42 }
43
44 src_compile() {
45 tc-export CC
46 emake "${fehopts[@]}" || die
47 }
48
49 src_install() {
50 emake "${fehopts[@]}" install || die
51 prepalldocs
52 }
53
54 pkg_postinst(){
55 elog
56 elog "Default configuration path was moved to:"
57 elog "/home/<user>/.config/feh/themes. Please "
58 elog "update your configuration"
59 elog
60 }

  ViewVC Help
Powered by ViewVC 1.1.20