/[gentoo-x86]/x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild
Gentoo

Contents of /x11-plugins/wmrecord/wmrecord-1.0.5.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Sep 5 08:19:33 2012 UTC (8 months, 2 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +8 -7 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/wmrecord/wmrecord-1.0.5.3-r1.ebuild,v 1.8 2010/09/13 16:28:54 mr_bones_ Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A Dockable General Purpose Recording Utility"
8 HOMEPAGE="http://ret009t0.eresmas.net/other_software/wmrecord/"
9 SRC_URI="http://ret009t0.eresmas.net/other_software/wmrecord/${PN}-1.0.5_20040218_0029.tgz"
10
11 RDEPEND="
12 x11-libs/libX11
13 x11-libs/libXext
14 x11-libs/libXpm"
15 DEPEND="${RDEPEND}
16 x11-proto/xextproto
17 >=sys-apps/sed-4.1.5-r1"
18
19 SLOT="0"
20 LICENSE="GPL-2"
21 KEYWORDS="x86 ~ppc"
22 IUSE=""
23
24 S=${WORKDIR}/${PN}-1.0.5
25
26 src_unpack() {
27 unpack ${A}
28
29 #prevent auto-stripping of binaries. Closes bug #252112
30 sed -i 's/install -s -o/install -o/' "${S}/Makefile"
31
32 #Honour Gentoo LDFLAGS. Closes bug #336753.
33 sed -i 's/-o $@ wmrecord.o/$(LDFLAGS) -o $@ wmrecord.o/' "${S}/Makefile"
34
35 #Fix buffer overflow. Closes bug #336754.
36 sed -i 's/sprintf(cse, "000");/snprintf(cse, "000", 3);/' "${S}/wmrecord.c"
37 }
38
39 src_compile() {
40 emake CFLAGS="${CFLAGS} -Wall" || die "make failed"
41 }
42
43 src_install() {
44 dodir /usr/bin
45 dodir /usr/share/man/man1
46 einstall BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/man1" || die "make install failed"
47
48 dodoc Changelog README TODO
49
50 domenu "${FILESDIR}"/${PN}.desktop
51 }

  ViewVC Help
Powered by ViewVC 1.1.13