summaryrefslogtreecommitdiff
blob: 9583dac1258b3a5995fd07d178822e99fed78c7c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/camato/camato-0.7.4.ebuild,v 1.1 2006/10/12 16:46:29 nyhm Exp $

inherit versionator games

MY_PV=$(replace_all_version_separators _)
DESCRIPTION="A map editor for the game gnocatan"
HOMEPAGE="http://yusei.ragondux.com/loisirs_jdp_catane_camato-en.html"
SRC_URI="http://yusei.ragondux.com/files/gnocatan/${PN}-${MY_PV}.tar.gz"

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

DEPEND="dev-ruby/ruby-gtk2"

src_unpack() {
	unpack ${A}
	cd "${S}"
	rm -f Makefile
	sed -i "s:/usr/share:${GAMES_DATADIR}:" \
		${PN} || die "sed failed"
}

src_install() {
	dogamesbin ${PN} || die "dogamesbin failed"
	insinto "${GAMES_DATADIR}"/${PN}
	doins -r *.rb img || die "doins failed"
	dodoc ChangeLog README
	prepgamesdirs
}