summaryrefslogtreecommitdiff
blob: 28e40c52d120930b664a4be1cbde33a70d3a13cd (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
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:

DESCRIPTION="A very nice and powerful theme for FVWM"
HOMEPAGE="http://fvwm-crystal.linuxpl.org/"
SRC_URI="ftp://ftp.linuxpl.org/fvwm-crystal/tarballs/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="xmms"

RDEPEND=">=x11-wm/fvwm-2.5.9
	xmms? ( media-plugins/xmms-shell
		>=media-sound/xmms-1.2.7 )
	x11-misc/xdaliclock
	x11-terms/aterm
	x11-misc/habak
	media-sound/aumix"

DEPEND="${RDEPEND} sys-devel/automake"

src_compile() {
	# cp: cannot stat `INSTALL.CVS': No such file or directory
	# cp: cannot stat `INSTALL-PL.CVS': No such file or directory
	# make: *** [install] Error 1
	ebegin "Updating Makefile..."
	automake || die
	eend $?

	# doesnt make any difference with this version but if xmms 
	# support controls any features in future, we shouldnt leave 
	# it up to configure to enable it.
	#
	#if ! use xmms; then
	#	sed -i 's#test -z "$XMMS_SHELL";#false;#g' ${S}/configure.in
	#	sed -i 's#test -z "$XMMS";#false;#g' ${S}/configure.in
	#	autoconf || die
	#fi

	econf || die
	emake || die
}

src_install() {
	einstall || die
}

pkg_postinst() {
	einfo  "users should run fvwm-crystal.install to configure fvwm-crystal"
}