Skip to content

Commit

Permalink
media-sound/drumkv1: new package, add 0.9.34, 9999
Browse files Browse the repository at this point in the history
This version fixes both build issues due to missing qmake-qt5, but also
restructures the ebuild to use upstream's CMake build system and support
both Qt5 and Qt6.

Closes: gentoo-audio#559
  • Loading branch information
NexAdn committed Mar 30, 2024
1 parent 3be7e89 commit 2fd13ee
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
4 changes: 1 addition & 3 deletions media-sound/drumkv1/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
DIST drumkv1-0.9.18.tar.gz 279219 BLAKE2B be6e5ba3293238fb344930a55ccae8977244711615a8654dc220c80f981fac77f42f9dd8e6ac59c9fba8853a67126416801d6e8ad5494f7395dc7282cea3a34f SHA512 71e00f220169d0c6095680ac86d4923fa4d8b9bf4d83ed052b6baa5e0d0e28c2f55fd36935a2f15ea6f8f5572574f43416e0fc412cfa68a84e9dd8c70e890498
DIST drumkv1-0.9.19.tar.gz 279647 BLAKE2B 8cd5b76b70f60de90d47f481eb685b052f467eea6de4056b702736d0409afed13e9be25387e15b1c2d411725dcfbfdb1fd482be3182f44e44c5069e51f53b9dd SHA512 e2bf221441ace4036782e8c02a37b89d3c27701c2066337e2deae64fb851d14e3c838c33509957727384b1c3c236211b59d74c7295255351d8eda72918b81b9f
DIST drumkv1-0.9.21.tar.gz 280509 BLAKE2B 7142d64ca2cc2338bea00940d04b87c42fd3a16bc45ea739599f15da1079bbb3f6c261e7ece2851485c5787617d193364631bb7fbf90eb65f30899e289d794c2 SHA512 3a0d122011eb3141dd57a0a1188d9c93f1052994f15fd2116d7bf3dca5ff2713db3ba7ffb0caff40b2e9669e59e04841701be4bc2ebe0d16b2d9ad943ba40a2d
DIST drumkv1_0_9_34.tar.gz 263554 BLAKE2B 39181b1ac04b65d3a8cbc42749f54ce32d12bdf7b1e424049b16c71eb3504f3e396cd95c76c7975c4cd63436938d59cc399baf7940939b0e6b669a665fb67f50 SHA512 ce5ae44e0fa00c7fd3478d0822c838b2537060036d60bd0ddaaff46ce5f52e1c271eedeefd482ebe8d7b251a66628064b580dd9bdf3f2e915e7333f2bb96d280
1 change: 1 addition & 0 deletions media-sound/drumkv1/drumkv1-0.9.34.ebuild
75 changes: 75 additions & 0 deletions media-sound/drumkv1/drumkv1-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg

DESCRIPTION="An old-school all-digital drum-kit sampler synthesizer with stereo fx"
HOMEPAGE="https://drumkv1.sourceforge.net/"

if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/rncbc/${PN}.git"
else
MY_PV="$(ver_rs 1- _)"
MY_P="${PN}_${MY_PV}"

SRC_URI="https://github.com/rncbc/${PN}/archive/${MY_P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${MY_P}"
fi

LICENSE="GPL-2+"
SLOT="0"
IUSE="+standalone alsa lv2 osc qt6"
REQUIRED_USE="
|| ( standalone lv2 )
alsa? ( standalone )
"

RDEPEND="
dev-qt/qtbase:6=[gui]
media-libs/libsndfile
standalone? ( virtual/jack )
alsa? ( media-libs/alsa-lib )
lv2? ( media-libs/lv2 )
osc? ( media-libs/liblo )
qt6? (
dev-qt/qtbase:6=[gui,widgets,xml]
)
!qt6? (
dev-qt/qtcore:5=
dev-qt/qtgui:5=
dev-qt/qtwidgets:5=
dev-qt/qtxml:5=
)
"
# drumkv1 for some reason wants qtsvg as dependency during build, but runs without it
DEPEND="
${RDEPEND}
qt6? ( dev-qt/qtsvg:6= )
"

src_prepare() {
sed -e 's/COMMAND strip/COMMAND true/' \
-i src/CMakeLists.txt \
|| die

cmake_src_prepare
}

src_configure() {
local -a mycmakeargs=(
-DCONFIG_ALSA_MIDI=$(usex alsa)
-DCONFIG_JACK=$(usex standalone)
-DCONFIG_JACK_SESSION=$(usex standalone)
-DCONFIG_JACK_MIDI=$(usex standalone)
-DCONFIG_LV2=$(usex lv2)
-DCONFIG_LIBLO=$(usex osc)
-DCONFIG_QT6=$(usex qt6)
)
cmake_src_configure
}

0 comments on commit 2fd13ee

Please sign in to comment.