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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 11 09:43:13 2012 UTC (2 years, 2 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Version bump, EAPI 4 and ebuild cleanups. Also switch to mirror://debian/, bug #415263

(Portage version: 2.2.0_alpha103/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/wmtime/wmtime-1.0_beta2_p9.ebuild,v 1.4 2010/09/03 18:49:52 mr_bones_ Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs versionator
7
8 MY_PV="$(get_version_component_range 1-2)"
9 MY_PL="$(get_version_component_range 3)"
10 MY_PL="${MY_PL/beta/b}"
11 MY_PV="${MY_PV}${MY_PL}"
12 MY_PL="$(get_version_component_range 4)"
13 MY_PL="${MY_PL/p/}"
14
15 IUSE=""
16
17 DESCRIPTION="applet which displays the date and time in a dockable tile"
18 SRC_URI="mirror://debian/pool/main/w/wmtime/wmtime_${MY_PV}.orig.tar.gz
19 mirror://debian/pool/main/w/wmtime/wmtime_${MY_PV}-${MY_PL}.diff.gz"
20 HOMEPAGE="http://packages.qa.debian.org/w/wmtime.html"
21
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 LICENSE="GPL-2"
25
26 RDEPEND="x11-libs/libX11
27 x11-libs/libXext
28 x11-libs/libXau
29 x11-libs/libXdmcp
30 x11-libs/libXpm"
31 DEPEND="${RDEPEND}
32 x11-proto/xproto
33 x11-proto/xextproto
34 >=sys-apps/sed-4"
35
36 S=${WORKDIR}/${PN}-${MY_PV}.orig/${PN}
37
38 src_prepare() {
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 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
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