summaryrefslogtreecommitdiff
blob: 2d3df6da491ef98562a73a8f389bd0e52d758e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmspaceclock/wmspaceclock-1.2d.ebuild,v 1.8 2006/01/31 20:43:37 nelchael Exp $

DESCRIPTION="A sexy anti-aliased dockapp clock"
HOMEPAGE="http://wmspaceclock.sourceforge.net"
SRC_URI="mirror://sourceforge/wmspaceclock/${P/wm/}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 ppc ~sparc"
IUSE="stlport"
DEPEND=">=media-libs/gdk-pixbuf-0.20
	>=sys-apps/sed-4
	stlport? ( >=dev-libs/STLport-4.6.2-r2 )"

S=${WORKDIR}/spaceclock

src_unpack()
{
	unpack ${A}
	cd ${S}

	# let't wipe out some dirt the author forgot in his tarball
	rm -fr pixmaps/.xvpics &>/dev/null
	rm -fr pixmaps/CVS     &>/dev/null
}

src_compile()
{
	sed	-i "s:/usr/local:/usr:" Makefile
	sed	-i "s:-g3 -O2:${CFLAGS}:" Makefile
	./configure
	make
}

src_install()
{
	dodir /usr/bin
	make DESTDIR=${D} install || die
}