logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 075176ff31264975bc2532e8849f1f55d8441e17
parent 0dbf00e61e7e78ec0fe8add45cd9a39776386784
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 14 Oct 2022 06:15:37 +0200

media-sound/shim: new package, add 0_pre20220409, 9999

Diffstat:

Amedia-sound/shim/Manifest1+
Amedia-sound/shim/shim-0_pre20220409.ebuild2++
Amedia-sound/shim/shim-9999.ebuild37+++++++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/media-sound/shim/Manifest b/media-sound/shim/Manifest @@ -0,0 +1 @@ +DIST shim-4248690cecc249ab825753bae6ce25c7f4ac4cd1.tar.gz 2502 BLAKE2B 3f74c72663350820f243eda31cbacf1a23ca2091ec13b4bd985edadbbfdaf3430501865d738df832a537adad74ce9343d9167eb8b683f5b93314d9eb31a60e43 SHA512 576df290eba395036c433b02c446bbbf455948ba99d8bafcdcd9013f9c20bd92aec952709dfd2fa804b22083a4bc92a047c47502f8bf5e6c7ee1caeb912025ec diff --git a/media-sound/shim/shim-0_pre20220409.ebuild b/media-sound/shim/shim-0_pre20220409.ebuild @@ -0,0 +1 @@ +shim-9999.ebuild +\ No newline at end of file diff --git a/media-sound/shim/shim-9999.ebuild b/media-sound/shim/shim-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [ "${PV}" = 9999 ]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~rabbits/shim" + SLOT="0" +else + EGIT_COMMIT="4248690cecc249ab825753bae6ce25c7f4ac4cd1" + MY_P="${PN}-${EGIT_COMMIT}" + SRC_URI="https://git.sr.ht/~rabbits/shim/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + SLOT="0/${PV}" + + KEYWORDS="~amd64 ~arm64" +fi + +DESCRIPTION="Pipe 3-bytes packets (channel, note, velocity) to a MIDI device" +HOMEPAGE="https://git.sr.ht/~rabbits/shim/" +LICENSE="MIT" +SLOT="0" + +RDEPEND="media-libs/portmidi" +DEPEND="${RDEPEND}" + +src_compile() { + # ./build.sh ignores CC and compiler flags (CFLAGS, LDFLAGS, …) making it unsuitable + # portmidi lacks a pkg-config file + "${CC:-cc}" -std=c89 ${CFLAGS} shim.c -o shim -lportmidi || die +} + +src_install() { + einstalldocs + dobin shim +}