diff options
Diffstat (limited to 'games-puzzle/penguzzle')
-rw-r--r-- | games-puzzle/penguzzle/Manifest | 1 | ||||
-rw-r--r-- | games-puzzle/penguzzle/files/penguzzle-1.0-tclx.patch | 10 | ||||
-rw-r--r-- | games-puzzle/penguzzle/metadata.xml | 5 | ||||
-rw-r--r-- | games-puzzle/penguzzle/penguzzle-1.0-r1.ebuild | 46 |
4 files changed, 62 insertions, 0 deletions
diff --git a/games-puzzle/penguzzle/Manifest b/games-puzzle/penguzzle/Manifest new file mode 100644 index 000000000000..54ad252dcae5 --- /dev/null +++ b/games-puzzle/penguzzle/Manifest @@ -0,0 +1 @@ +DIST penguzzle.zip 21542 SHA256 f3c2a4bc94fcd3d00cd8be9bf748bd3b0aa6d4251e64620fe92524e65fb951cd SHA512 fc6c57ac851df7fac7d91f90ec53fa543470e9721589966023028743951090994c372ff4538092c29aee12afc28809ad6e20a6b78ae9759bad2b41fed330b743 WHIRLPOOL 5c5e4b5a0c3f8640ee196eef73a84d8b7d472458e78f1bed3b09427cbd82cf3d3792b2b11219ff8e55f57638147f1e36ff2fcb939565d24b278ac711080d1a21 diff --git a/games-puzzle/penguzzle/files/penguzzle-1.0-tclx.patch b/games-puzzle/penguzzle/files/penguzzle-1.0-tclx.patch new file mode 100644 index 000000000000..d8c078de6a91 --- /dev/null +++ b/games-puzzle/penguzzle/files/penguzzle-1.0-tclx.patch @@ -0,0 +1,10 @@ +--- bin/penguzzle ++++ bin/penguzzle +@@ -1,4 +1,6 @@ +-#!/usr/bin/wishx ++#!/usr/bin/wish ++package require Tk ++package require Tclx + + source ~/puzz/lib/init + diff --git a/games-puzzle/penguzzle/metadata.xml b/games-puzzle/penguzzle/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-puzzle/penguzzle/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-puzzle/penguzzle/penguzzle-1.0-r1.ebuild b/games-puzzle/penguzzle/penguzzle-1.0-r1.ebuild new file mode 100644 index 000000000000..58fa75f8dd4c --- /dev/null +++ b/games-puzzle/penguzzle/penguzzle-1.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit eutils games + +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 ppc x86" +IUSE="" + +RDEPEND="dev-lang/tk + dev-tcltk/tclx" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${PN}${PV} + +src_prepare() { + sed -i \ + -e "s:~/puzz/images:${GAMES_DATADIR}/${PN}:" \ + lib/init \ + || die "sed init failed" + sed -i \ + -e "s:~/puzz/lib:$(games_get_libdir)/${PN}:" \ + bin/${PN} \ + || die "sed ${PN} failed" + + epatch "${FILESDIR}"/${P}-tclx.patch +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins images/img0.gif + + insinto "$(games_get_libdir)"/${PN} + doins lib/init + + dogamesbin bin/${PN} + + dodoc README + prepgamesdirs +} |