Diff bsd-games-3.1-r2 with a bsd-games-3.2
/usr/portage/games-misc/bsd-games/bsd-games-3.2.ebuild 2023-10-09 14:52:31.104368391 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2022 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 | 6 |
inherit toolchain-funcs |
7 | 7 | |
8 | 8 |
DESCRIPTION="collection of games from NetBSD" |
9 | 9 |
HOMEPAGE="https://www.polyomino.org.uk/computer/software/bsd-games/" |
10 | 10 |
SRC_URI="https://github.com/msharov/bsd-games/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-verbose-build.patch.gz" |
|
11 |
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-3.1-verbose-build.patch.gz" |
|
12 | 12 | |
13 | 13 |
LICENSE="BSD" |
14 | 14 |
# Subslot indicates the fork / new version |
15 | 15 |
# 3 doesn't include the same games as the classic variant, etc |
16 | 16 |
SLOT="0/3" |
17 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~riscv ~x86" |
|
17 |
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~mips ~riscv ~x86" |
|
18 | 18 | |
19 | 19 |
# 'check' target doesn't exist, nor do any actual tests |
20 | 20 |
# bug #779649 |
... | ... | |
31 | 31 |
acct-group/gamestat |
32 | 32 |
" |
33 | 33 |
BDEPEND=" |
34 |
sys-apps/which |
|
35 | 34 |
sys-devel/bison |
36 | 35 |
sys-devel/flex |
37 | 36 |
virtual/pkgconfig |
... | ... | |
40 | 39 |
PATCHES=( |
41 | 40 |
"${WORKDIR}"/${PN}-3.1-verbose-build.patch |
42 | 41 |
"${FILESDIR}"/${PN}-3.1-no-install-manpages-automatically.patch |
42 |
"${FILESDIR}"/${PN}-3.2-no-which.patch |
|
43 |
"${FILESDIR}"/${P}-no-strip.patch |
|
43 | 44 |
) |
44 | 45 | |
45 | 46 |
# Set GAMES_TO_BUILD variable to whatever you want |
... | ... | |
52 | 53 | |
53 | 54 |
# Use completely our own CFLAGS/LDFLAGS, no stripping and so on |
54 | 55 |
sed -i \ |
55 |
-e 's/+= -std=c11 @pkgcflags@ ${CFLAGS}/= -std=c11 @pkgcflags@ ${CFLAGS}/' \ |
|
56 |
-e 's/+= -std=c11 @pkgcflags@ ${CFLAGS}/= -std=c11 @pkgcflags@ ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}/' \ |
|
56 | 57 |
-e 's/+= @pkgldflags@ ${LDFLAGS}/= @pkgldflags@ ${LDFLAGS}/' \ |
57 | 58 |
-e s'/${INSTALL} -m 755 -s/${INSTALL} -m 755/' \ |
58 | 59 |
-e '/man[6]dir/d' \ |
... | ... | |
80 | 81 |
} |
81 | 82 | |
82 | 83 |
src_compile() { |
83 |
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
|
84 |
emake CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
|
84 | 85 |
} |
85 | 86 | |
86 | 87 |
src_install() { |