diff options
Diffstat (limited to 'media-gfx/xli/xli-1.17.0-r3.ebuild')
-rw-r--r-- | media-gfx/xli/xli-1.17.0-r3.ebuild | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/media-gfx/xli/xli-1.17.0-r3.ebuild b/media-gfx/xli/xli-1.17.0-r3.ebuild index 859f4bcf00d1..5810327ac6fc 100644 --- a/media-gfx/xli/xli-1.17.0-r3.ebuild +++ b/media-gfx/xli/xli-1.17.0-r3.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0-r3.ebuild,v 1.3 2008/01/15 18:33:24 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0-r3.ebuild,v 1.4 2009/09/04 12:21:48 ssuominen Exp $ -inherit alternatives eutils +inherit eutils SNAPSHOT="2005-02-27" DESCRIPTION="X Load Image: view images or load them to root window" @@ -17,14 +17,16 @@ IUSE="" RDEPEND="x11-libs/libXext >=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.0.5 - >=media-libs/jpeg-6b-r2 + =media-libs/jpeg-6b* app-arch/bzip2" DEPEND="${RDEPEND} x11-proto/xextproto x11-misc/imake - app-text/rman" + app-text/rman + !media-gfx/xloadimage + !<media-gfx/xli-1.17.0-r3" -S="${WORKDIR}"/${PN}-${SNAPSHOT} +S=${WORKDIR}/${PN}-${SNAPSHOT} src_unpack() { unpack ${A} @@ -48,40 +50,22 @@ src_unpack() { } src_compile() { - xmkmf || die "xmkmf failed." - - emake CDEBUGFLAGS="${CFLAGS}" || die "emake failed." + xmkmf || die + emake CDEBUGFLAGS="${CFLAGS}" || die } src_install() { - dobin xli xlito + dobin xli xlito || die + + dosym xli /usr/bin/xsetbg || die + dosym xli /usr/bin/xview || die + dodoc README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg newman xli.man xli.1 newman xliguide.man xliguide.1 newman xlito.man xlito.1 insinto /etc/X11/app-defaults - newins ${FILESDIR}/Xli.ad Xli + newins "${FILESDIR}"/Xli.ad Xli fperms a+r /etc/X11/app-defaults/Xli } - -update_alternatives() { - local mansuffix=$(ecompress --suffix) - - alternatives_makesym /usr/bin/xview \ - /usr/bin/{xloadimage,xli} - alternatives_makesym /usr/bin/xsetbg \ - /usr/bin/{xloadimage,xli} - alternatives_makesym /usr/share/man/man1/xview.1${mansuffix} \ - /usr/share/man/man1/{xloadimage,xli}.1${mansuffix} - alternatives_makesym /usr/share/man/man1/xsetbg.1${mansuffix} \ - /usr/share/man/man1/{xloadimage,xli}.1${mansuffix} -} - -pkg_postinst() { - update_alternatives -} - -pkg_postrm() { - update_alternatives -} |