summaryrefslogtreecommitdiff
blob: 6226619d2146d50e4e9f15a49adcc809a9e82fb3 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-mud/kmuddy/kmuddy-0.8.ebuild,v 1.9 2009/06/25 20:42:19 mr_bones_ Exp $

inherit base eutils kde-functions autotools

DESCRIPTION="MUD client for KDE"
HOMEPAGE="http://www.kmuddy.com/"
SRC_URI="http://www.kmuddy.com/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="sdl"

DEPEND="sdl? ( media-libs/sdl-mixer )"

need-kde 3
PATCHES=(	"${FILESDIR}/${P}-nocrash.patch"
		"${FILESDIR}/${P}-gcc43.patch"
		"${FILESDIR}/${P}-idle-crash.patch"
		"${FILESDIR}/${P}-libtool.patch"
	)

src_unpack() {
	base_src_unpack
	cd "${S}"
	sed -i \
		-e '/kmuddyscriptingplugin_la_LDFLAGS/ s/$(LIB_QT)/$(LIB_QT) $(LIB_KIO)/' \
		plugins/scripting/Makefile.am \
		|| die "sed failed"
	mv admin/acinclude.m4.in acinclude.m4
	eautoreconf
	find . -name Makefile.in -exec perl admin/am_edit ';'
}

src_compile() {
	econf \
		--without-arts \
		$(use_with sdl) \
		|| die
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS CHANGELOG DESIGN README README.MIDI Scripting-HOWTO TODO
}