summaryrefslogtreecommitdiff
blob: 8790ef229cd490be042195330e756ab53030e359 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/picpuz/picpuz-06.ebuild,v 1.1 2007/02/21 18:36:38 mr_bones_ Exp $

inherit eutils games

DESCRIPTION="a jigsaw puzzle program"
HOMEPAGE="http://kornelix.squarespace.com/picpuz/"
SRC_URI="http://kornelix.squarespace.com/storage/picpuz/${PN}.${PV}.tar.gz"

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

DEPEND=">=x11-libs/gtk+-2.8"

S=${WORKDIR}

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i \
		-e 's:-O3 -Wall:${CXXFLAGS}:' \
		picpuz-build.sh \
		|| die "sed failed"
	sed -i \
		-e "s:helppath);:\"/usr/share/doc/${PF}\");:" \
		picpuz.cpp \
		|| die "sed failed"
}

src_compile() {
	./picpuz-build.sh || die "build failed"
}

src_install() {
	newgamesbin ${PN}.x	${PN} || die "doexe failed"
	newicon ${PN}-icon.png ${PN}.png
	dodoc ${PN}-guide.pdf
	gunzip "${D}"/usr/share/doc/${PF}/picpuz-guide.pdf.gz
	make_desktop_entry ${PN} "Picpuz"
	prepgamesdirs
}