/[gentoo-x86]/x11-plugins/wmtime/wmtime-1.0_beta2_p9.ebuild
Gentoo

Contents of /x11-plugins/wmtime/wmtime-1.0_beta2_p9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Sep 3 18:49:52 2010 UTC (3 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
whitespace
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmtime/wmtime-1.0_beta2_p9.ebuild,v 1.3 2010/09/03 13:34:09 s4t4n Exp $
4
5 inherit eutils versionator
6
7 MY_PV="$(get_version_component_range 1-2)"
8 MY_PL="$(get_version_component_range 3)"
9 MY_PL="${MY_PL/beta/b}"
10 MY_PV="${MY_PV}${MY_PL}"
11 MY_PL="$(get_version_component_range 4)"
12 MY_PL="${MY_PL/p/}"
13
14 IUSE=""
15
16 DESCRIPTION="applet which displays the date and time in a dockable tile"
17 SRC_URI="http://ftp.debian.org/debian/pool/main/w/wmtime/wmtime_${MY_PV}.orig.tar.gz
18 http://ftp.debian.org/debian/pool/main/w/wmtime/wmtime_${MY_PV}-${MY_PL}.diff.gz"
19 HOMEPAGE="http://packages.qa.debian.org/w/wmtime.html"
20
21 SLOT="0"
22 KEYWORDS="~amd64 x86"
23 LICENSE="GPL-2"
24
25 RDEPEND="x11-libs/libX11
26 x11-libs/libXext
27 x11-libs/libXau
28 x11-libs/libXdmcp
29 x11-libs/libXpm"
30 DEPEND="${RDEPEND}
31 x11-proto/xproto
32 x11-proto/xextproto
33 >=sys-apps/sed-4"
34
35 S="${WORKDIR}/${PN}-${MY_PV}.orig/${PN}"
36
37 src_unpack() {
38 unpack ${A}
39 cd "${WORKDIR}"
40
41 # apply debian patch
42 epatch "${PN}_${MY_PV}-${MY_PL}.diff"
43
44 # honour Gentoo LDFLAGS, bug #335799
45 sed -i "s/-o wmtime/\$(LDFLAGS) -o wmtime/" "${S}/Makefile"
46 }
47
48 src_compile() {
49 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
50 }
51
52 src_install () {
53 dobin wmtime
54 doman wmtime.1
55
56 cd ..
57 dodoc BUGS CHANGES HINTS README TODO
58
59 # install sample config file, too
60 dodoc debian/wmtimerc
61 }

  ViewVC Help
Powered by ViewVC 1.1.20