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.
56 lines
1.0 KiB
56 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
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
|
|
||
|
DEPEND="x11-libs/libXaw"
|
||
4 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
acct-group/gamestat
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-DESTDIR.patch
|
||
|
"${FILESDIR}"/${P}-ldflags.patch
|
||
|
)
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
4 years ago
|
default
|
||
|
|
||
9 years ago
|
sed -i \
|
||
|
-e '/strip/d' \
|
||
|
-e '/^CC=/d' \
|
||
|
-e "/^CFLAGS/ { s:=.*:=${CFLAGS}: }" \
|
||
|
Makefile || die
|
||
|
sed -i \
|
||
4 years ago
|
-e "s:/var/tmp:/var/lib/${PN}:g" \
|
||
9 years ago
|
hiscore.c || die
|
||
|
}
|
||
|
|
||
4 years ago
|
src_configure() {
|
||
|
tc-export CC
|
||
|
}
|
||
|
|
||
9 years ago
|
src_install() {
|
||
|
default
|
||
4 years ago
|
|
||
|
dodir /var/lib/${PN}
|
||
|
touch "${ED}"/var/lib/${PN}/${PN}{3,4,6}.hi || die "touch failed"
|
||
|
fperms 660 /var/lib/${PN}/${PN}{3,4,6}.hi
|
||
|
|
||
|
fowners root:gamestat /var/lib/${PN}
|
||
|
fperms g+s /usr/bin/${PN}
|
||
|
|
||
9 years ago
|
make_desktop_entry xbomb XBomb
|
||
|
}
|