blob: 7e0fdf78678b1f99220ecb0dba17a28af91c7ac5 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PLOCALES="de en"
inherit plocale toolchain-funcs
DESCRIPTION="Nintendo Gameboy sound player for GBS format"
HOMEPAGE="https://www.cgarbs.de/gbsplay.en.html"
SRC_URI="https://github.com/mmitch/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+alsa nas nls oss pulseaudio"
RDEPEND="
alsa? ( media-libs/alsa-lib:0 )
nas? ( media-libs/nas:0 )
pulseaudio? ( media-libs/libpulse )
"
DEPEND="${RDEPEND}"
BDEPEND="nls? ( sys-devel/gettext:0 )"
PATCHES=(
# git master
"${FILESDIR}/${P}-fix-sharedlib-build.patch"
"${FILESDIR}/${P}-fix-off-by-one-err.patch"
"${FILESDIR}/${P}-fix-buildsys-1.patch"
"${FILESDIR}/${P}-fix-buildsys-2.patch"
# downstream
"${FILESDIR}/${P}-no-install-desktop-mime.patch"
)
src_configure() {
tc-export AR CC
local myconfargs=(
--prefix=/usr
--mandir=/usr/share/man
--docdir=/usr/share/doc/${PF}
--disable-hardening
--without-xmmsplugin
--without-test
$(use_enable alsa)
$(use_enable nas)
$(use_enable nls i18n)
$(use_enable oss devdsp)
$(use_enable pulseaudio pulse)
)
# No econf, because "unknown option '--libdir=/usr/lib64"
./configure ${myconfargs[@]} || die "Configure failed."
}
src_compile() {
emake CC="$(tc-getCC)" SPLINT="true"
}
src_install() {
remove_disabled_locale() {
rm -r "${D}"/usr/share/locale/$1 || die
}
default
plocale_for_each_disabled_locale remove_disabled_locale
}
|