summaryrefslogtreecommitdiff
blob: 985ac1b31e534b34fff8aca9843938c1fcb6cfdf (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-mud/smm++/smm++-6.1.1.ebuild,v 1.3 2004/12/21 12:14:16 absinthe Exp $

inherit games

MY_PV=${PV//.}
MY_PN=${PN/++}
DESCRIPTION="A MUD client featuing a highly customizable user interface and powerful mapping capabilities"
HOMEPAGE="http://sourceforge.net/projects/smm/"
SRC_URI="mirror://sourceforge/smm/${MY_PN}${MY_PV}.tgz"

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

RDEPEND=">=dev-tcltk/itcl-3
	dev-tcltk/iwidgets"

S="${WORKDIR}/${MY_PN}"

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

	rm -rf $(find . -type d -name CVS)
}

src_install() {
	dogamesbin "${FILESDIR}/smm" || die "dogamesbin failed"
	sed -i \
		-e "s:GENTOODIR:${GAMES_DATADIR}/${PN}:" \
		"${D}${GAMES_BINDIR}/smm" \
		|| die "sed failed"
	dodir "${GAMES_DATADIR}/${PN}"
	cp -Rp sources images config "${D}/${GAMES_DATADIR}/${PN}" \
		|| die "cp failed"
	cd docu
	dodoc A_README CHANGES CUSTOMIZE_SMM FEEDBACK MAPS REPORT_BUGS SCRIPTS \
		TODO TROUBLESHOOTING
	prepgamesdirs
}