diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-24 20:03:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-24 20:03:07 +0000 |
commit | ec9f79e1d3358df31a704f16a76a269ccceae2b2 (patch) | |
tree | 5982c029d09bc9e396ad5ead3d99c99ed6a58322 /media-sound/gbsplay/gbsplay-0.0.94.ebuild | |
parent | 9aefa814d833d6bdd1bdbc7d0f44d5680c9beaa8 (diff) |
gentoo auto-resync : 24:12:2022 - 20:03:07
Diffstat (limited to 'media-sound/gbsplay/gbsplay-0.0.94.ebuild')
-rw-r--r-- | media-sound/gbsplay/gbsplay-0.0.94.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/media-sound/gbsplay/gbsplay-0.0.94.ebuild b/media-sound/gbsplay/gbsplay-0.0.94.ebuild new file mode 100644 index 000000000000..7e0fdf78678b --- /dev/null +++ b/media-sound/gbsplay/gbsplay-0.0.94.ebuild @@ -0,0 +1,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 +} |