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.
58 lines
1.1 KiB
58 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
4 years ago
|
|
||
|
inherit desktop toolchain-funcs
|
||
9 years ago
|
|
||
|
DESCRIPTION="Minesweeper clone with hexagonal, rectangular and triangular grid"
|
||
|
HOMEPAGE="http://www.gedanken.org.uk/software/xbomb/"
|
||
|
SRC_URI="http://www.gedanken.org.uk/software/xbomb/download/${P}.tgz"
|
||
|
|
||
|
LICENSE="GPL-2+"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||
9 years ago
|
|
||
3 years ago
|
DEPEND="
|
||
|
acct-group/gamestat
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXaw
|
||
|
x11-libs/libXt
|
||
|
"
|
||
4 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
3 years ago
|
media-fonts/font-misc-misc
|
||
4 years ago
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-DESTDIR.patch
|
||
|
"${FILESDIR}"/${P}-ldflags.patch
|
||
|
)
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
4 years ago
|
default
|
||
|
|
||
3 years ago
|
sed -i -e '/strip/d' Makefile || die
|
||
9 years ago
|
sed -i \
|
||
3 years ago
|
-e "s:/var/tmp:${EPREFIX}/var/games/${PN}:g" \
|
||
9 years ago
|
hiscore.c || die
|
||
|
}
|
||
|
|
||
3 years ago
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
|
||
4 years ago
|
}
|
||
|
|
||
9 years ago
|
src_install() {
|
||
3 years ago
|
emake DESTDIR="${ED}" install
|
||
|
einstalldocs
|
||
4 years ago
|
|
||
3 years ago
|
dodir /var/games/${PN}
|
||
|
touch "${ED}"/var/games/${PN}/${PN}{3,4,6}.hi || die "touch failed"
|
||
4 years ago
|
|
||
3 years ago
|
fowners :gamestat /var/games/${PN}{,/${PN}{3,4,6}.hi} /usr/bin/${PN}
|
||
|
fperms 660 /var/games/${PN}/${PN}{3,4,6}.hi
|
||
4 years ago
|
fperms g+s /usr/bin/${PN}
|
||
|
|
||
9 years ago
|
make_desktop_entry xbomb XBomb
|
||
|
}
|