summaryrefslogtreecommitdiff
blob: 6da608115ae7304c08f2c487a2a65eb6c2bb0907 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

MY_P="tkMOO-light-${PV}"

DESCRIPTION="MOO Client written in Tcl/Tk"
HOMEPAGE="http://www.awns.com/tkMOO-light/"
SRC_URI="http://www.awns.com/tkMOO-light/Source/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"

LICENSE="tkMOO"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	dev-lang/tcl
	dev-lang/tk
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${PV}-Makefile-noclean.patch"
	"${FILESDIR}/${PV}-keys-workaround.patch"
)

src_compile() {
	local myemakeargs=(
		WISH="$(type -P wish)"
		TKMOO_LIB_DIR="${EPREFIX}/usr/share/${PN}"
		TKMOO_BIN_DIR="${EPREFIX}/usr/bin"
	)
	emake "${myemakeargs[@]}"
}

src_install() {
	local emakeargs=(
		TKMOO_LIB_DIR="${ED}/usr/share/${PN}"
		TKMOO_BIN_DIR="${ED}/usr/bin"
	)
	emake "${emakeargs[@]}" install

	dodoc README dot.tkmoolightrc bugsmail.txt
	dosym tkMOO-lite /usr/bin/tkmoo
	make_desktop_entry tkmoo "tkMOO" applications-games
}