blob: 6cfd0c75133a8f81b1b2077b08cd040ce49f3fe3 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="The Tenacity fork of PortSMF, a Standard MIDI File library"
HOMEPAGE="https://codeberg.org/tenacityteam/portsmf"
SRC_URI="
https://codeberg.org/tenacityteam/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
"
LICENSE="MIT"
SLOT="0/1" # SOVERSION in CMakeLists.txt / SONAME suffix
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
S="${WORKDIR}/${PN}"
PATCHES=(
"${FILESDIR}/${PN}"-239-revert-extern-to-static-change.patch
"${FILESDIR}/${PN}"-239-set-correct-cmake-project-ver.patch
"${FILESDIR}/${PN}"-239-set-correct-pkg-config-ver.patch
)
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test on off)
## This is "Build example applications" according to upstream
#-DBUILD_APPS=$(usex examples on off)
# The above requires a non-existent PortMidiConfig.cmake.
)
cmake_src_configure
}
src_test() {
# Remove this function when bumping. Upstream HEAD has CTest.
cd "${BUILD_DIR}"/test || die
./test </dev/null || die
}
|