/[gentoo-x86]/x11-plugins/wmgrabimage/wmgrabimage-0.72-r1.ebuild
Gentoo

Contents of /x11-plugins/wmgrabimage/wmgrabimage-0.72-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Sep 5 08:16:38 2012 UTC (22 months, 2 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -3 lines
Use domenu instead insinto + doins to install .desktop files

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmgrabimage/wmgrabimage-0.72-r1.ebuild,v 1.11 2012/02/15 09:48:47 voyageur Exp $
4
5 inherit eutils
6
7 MY_P=${PN/grabi/GrabI}
8
9 DESCRIPTION="wmGrabImage grabs an image from the WWW and displays it"
10 SRC_URI="http://dockapps.windowmaker.org/files/12/19/${MY_P}-${PV}.tgz"
11 HOMEPAGE="http://dockapps.windowmaker.org/file.php/id/12"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ppc x86"
16 IUSE=""
17
18 RDEPEND=">=net-misc/wget-1.9-r2
19 >=media-gfx/imagemagick-5.5.7.15
20 x11-libs/libX11
21 x11-libs/libXext
22 x11-libs/libXpm"
23 DEPEND="${RDEPEND}
24 x11-proto/xproto
25 x11-proto/xextproto
26 >=sys-apps/sed-4.1.5-r1"
27
28 S=${WORKDIR}/${MY_P}-${PV}/${MY_P}
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 epatch "${FILESDIR}"/${PN}-noman.patch
34 sed -i -e 's/-geom /-geometry /' GrabImage || die "sed failed."
35 sed -i -e 's/install -s -m /install -m /' Makefile || die "sed failed."
36 }
37
38 src_compile() {
39 emake clean || die "emake clean failed."
40 emake CFLAGS="${CFLAGS} -Wall" SYSTEM="${LDFLAGS}" || die "emake failed."
41 }
42
43 src_install() {
44 dodir /usr/bin
45 einstall DESTDIR="${D}/usr" || die "einstall failed."
46
47 doman wmGrabImage.1
48
49 dodoc ../{BUGS,CHANGES,HINTS,TODO}
50
51 domenu "${FILESDIR}"/${PN}.desktop
52 }

  ViewVC Help
Powered by ViewVC 1.1.20