media-sound/shim - 9999 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =media-sound/shim-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-sound/shim-9999

Or alternatively:

emerge --autounmask-write -a =media-sound/shim-9999

Package Information

Description:
Pipe 3-bytes packets (channel, note, velocity) to a MIDI device
Homepage:
https://git.sr.ht/~rabbits/shim/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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
}

Inherited Eclasses

Dependencies

DEPEND

media-libs/portmidi

RDEPEND

media-libs/portmidi

Manifest for 9999

Type File Size Source URLs
DIST shim-4248690cecc249ab825753bae6ce25c7f4ac4cd1.tar.gz 2502 bytes https://git.sr.ht/~rabbits/shim/archive/4248690cecc249ab825753bae6ce25c7f4ac4cd1.tar.gz