mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
media-sound/spct: add 1.2.4
Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST spct-1.2.2.tar.gz 654006 BLAKE2B 747de003be503271c367eccca3ac62c1055c89673a32e4fb2ce4b1a8101f87d999bfe39c8e6835469e40042b8e084d11723d2638afcbb1eb38f9f39202a79186 SHA512 ad12b693f6121c1e85f0aefd616e18a511ec4f60f990bd3dba843b899f8400976d6691d8cbb32aad99cfaec08ce41a10300741a8357cd95ffd1b5ee608d1459b
|
||||
DIST spct-1.2.4.tar.gz 654154 BLAKE2B 3f110bd2f1f1f34f704fb5b3d46e5bac6ba3fbea635ecc630b4a26d742d1c7be0a23cdc2cbd0421e66358b0da7649443e5b46c13ba2c57a44c64f4fa1cf0c71b SHA512 d1289108e3f9a225b816150f4f617729582988198d4920d4adc789b69d31780eee096aa897a1ac00e654d4084913e61d15fed4c8a46ff4c08f7ff377cee68888
|
||||
|
||||
61
media-sound/spct/spct-1.2.4.ebuild
Normal file
61
media-sound/spct/spct-1.2.4.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs multilib-build
|
||||
|
||||
DESCRIPTION="CLI program for playing back and rendering SPC files."
|
||||
HOMEPAGE="https://codeberg.org/jneen/spct"
|
||||
SRC_URI="https://codeberg.org/jneen/spct/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="libspct"
|
||||
|
||||
DEPEND="
|
||||
media-libs/game-music-emu[${MULTILIB_USEDEP}]
|
||||
sys-libs/ncurses:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
# We use multilib-build directly here because the existing build system is designed with cross-compiles in mind
|
||||
# We also specify the platform and arch manually, since otherwise those are determined by `uname` on CHOST
|
||||
spct_compile() {
|
||||
tc-export CXX
|
||||
if multilib_is_native_abi; then
|
||||
# only build the binary on the native ABI
|
||||
emake VERSION="${PV}" PLATFORM="linux" ARCH="$(tc-arch)" LIBGME_NO_VENDOR=1 bin
|
||||
fi
|
||||
|
||||
if use libspct; then
|
||||
emake VERSION="${PV}" PLATFORM="linux" ARCH="$(tc-arch)" LIBGME_NO_VENDOR=1 lib
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_foreach_abi spct_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
spct_install() {
|
||||
if multilib_is_native_abi; then
|
||||
# only install the binary on the native ABI
|
||||
emake PREFIX="${ED}/usr" LIBDIR="${ED}/usr/$(get_libdir)" VERSION="${PV}" PLATFORM="linux" \
|
||||
ARCH="$(tc-arch)" LIBGME_NO_VENDOR=1 install-bin
|
||||
fi
|
||||
|
||||
if use libspct; then
|
||||
emake PREFIX="${ED}/usr" LIBDIR="${ED}/usr/$(get_libdir)" VERSION="${PV}" PLATFORM="linux" \
|
||||
ARCH="$(tc-arch)" LIBGME_NO_VENDOR=1 install-lib
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_foreach_abi spct_install
|
||||
dodoc README.md
|
||||
}
|
||||
Reference in New Issue
Block a user