blob: 055c8070122a9bf5b6ace1ea74f9d9ac61b2eceb (
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
45
46
47
48
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Minesweeper clone for the X11 windowing system"
HOMEPAGE="https://salsa.debian.org/debian/xdemineur"
SRC_URI="https://deb.debian.org/debian/pool/main/x/${PN}/xdemineur_${PV}.orig.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
x11-misc/imake
"
RDEPEND="
x11-libs/libX11
x11-libs/libXext
x11-libs/libXpm
"
DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/${P}-include.patch"
)
src_configure() {
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CDEBUGFLAGS="${CFLAGS}" \
LOCAL_LDFLAGS="${LDFLAGS}"
}
src_install() {
default
emake DESTDIR="${D}" install.man
}
|