diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-02 14:13:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-02 14:13:35 +0100 |
commit | 7c7c2c9727d6b2ff30945b5aea0d575e1c406d8b (patch) | |
tree | bac2a67fb24ac0836147fe370d30e1610ae1845d /games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild | |
parent | 2f8db31405fac68eea6f7257d58529243815033b (diff) |
gentoo resync : 02.05.2018
Diffstat (limited to 'games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild')
-rw-r--r-- | games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild b/games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild new file mode 100644 index 000000000000..54cc98723ec2 --- /dev/null +++ b/games-puzzle/penguzzle/penguzzle-1.0-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +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" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-lang/tk:0= + dev-tcltk/tclx +" +DEPEND="app-arch/unzip" + +S="${WORKDIR}/${PN}${PV}" + +src_prepare() { + default + sed -i \ + -e "s:~/puzz/images:/usr/share/${PN}:" \ + lib/init \ + || die "sed init failed" + sed -i \ + -e "s:~/puzz/lib:/usr/$(get_libdir)/${PN}:" \ + bin/${PN} \ + || die "sed ${PN} failed" + + eapply "${FILESDIR}"/${P}-tclx.patch +} + +src_install() { + insinto /usr/share/${PN} + doins images/img0.gif + + insinto /usr/"$(get_libdir)"/${PN} + doins lib/init + + dobin bin/${PN} + + newicon images/img0.gif ${PN}.gif + make_desktop_entry ${PN} "Penguzzle" /usr/share/pixmaps/${PN}.gif + + einstalldocs +} |