You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
989 B
52 lines
989 B
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
7 years ago
|
|
||
7 years ago
|
EAPI=6
|
||
|
inherit desktop
|
||
13 years ago
|
|
||
|
DESCRIPTION="Tcl/Tk variant of the well-known 15-puzzle game"
|
||
|
HOMEPAGE="http://www.naskita.com/linux/penguzzle/penguzzle.shtml"
|
||
|
SRC_URI="http://www.naskita.com/linux/${PN}/${PN}.zip"
|
||
|
|
||
|
LICENSE="penguzzle"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
7 years ago
|
RDEPEND="
|
||
|
dev-lang/tk:0=
|
||
|
dev-tcltk/tclx
|
||
|
"
|
||
13 years ago
|
DEPEND="app-arch/unzip"
|
||
|
|
||
7 years ago
|
S="${WORKDIR}/${PN}${PV}"
|
||
13 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
7 years ago
|
default
|
||
13 years ago
|
sed -i \
|
||
7 years ago
|
-e "s:~/puzz/images:/usr/share/${PN}:" \
|
||
13 years ago
|
lib/init \
|
||
|
|| die "sed init failed"
|
||
|
sed -i \
|
||
7 years ago
|
-e "s:~/puzz/lib:/usr/$(get_libdir)/${PN}:" \
|
||
13 years ago
|
bin/${PN} \
|
||
|
|| die "sed ${PN} failed"
|
||
|
|
||
7 years ago
|
eapply "${FILESDIR}"/${P}-tclx.patch
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
insinto /usr/share/${PN}
|
||
10 years ago
|
doins images/img0.gif
|
||
13 years ago
|
|
||
7 years ago
|
insinto /usr/"$(get_libdir)"/${PN}
|
||
10 years ago
|
doins lib/init
|
||
13 years ago
|
|
||
7 years ago
|
dobin bin/${PN}
|
||
13 years ago
|
|
||
7 years ago
|
newicon images/img0.gif ${PN}.gif
|
||
|
make_desktop_entry ${PN} "Penguzzle" /usr/share/pixmaps/${PN}.gif
|
||
|
|
||
|
einstalldocs
|
||
13 years ago
|
}
|