diff options
author | 2021-01-14 00:17:54 +0100 | |
---|---|---|
committer | 2021-01-14 00:17:54 +0100 | |
commit | ed3d458a0390ff32516bed6606d9ff7482b03959 (patch) | |
tree | e5e6d3e5237ac2b71c11488d4999d7e069b95b27 /media-sound/qsynth/qsynth-9999.ebuild | |
parent | x11-misc/xsettingsd: 1.0.2 version bump (diff) | |
download | gentoo-ed3d458a0390ff32516bed6606d9ff7482b03959.tar.gz gentoo-ed3d458a0390ff32516bed6606d9ff7482b03959.tar.bz2 gentoo-ed3d458a0390ff32516bed6606d9ff7482b03959.zip |
media-sound/qsynth: 0.9.0 version bump, switch to cmake
CMake does not rely on shaky guesswork of Qt binary names and locations.
Closes: https://bugs.gentoo.org/764944
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/qsynth/qsynth-9999.ebuild')
-rw-r--r-- | media-sound/qsynth/qsynth-9999.ebuild | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/media-sound/qsynth/qsynth-9999.ebuild b/media-sound/qsynth/qsynth-9999.ebuild index 7866d934551b..70d95bac46aa 100644 --- a/media-sound/qsynth/qsynth-9999.ebuild +++ b/media-sound/qsynth/qsynth-9999.ebuild @@ -1,18 +1,26 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit desktop qmake-utils xdg-utils git-r3 autotools +inherit cmake desktop qmake-utils xdg-utils DESCRIPTION="Qt application to control FluidSynth" HOMEPAGE="https://qsynth.sourceforge.io/" -EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code" + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code" + inherit git-r3 +else + SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi LICENSE="GPL-2" SLOT="0" IUSE="+alsa debug jack pulseaudio" -KEYWORDS="" + +REQUIRED_USE="|| ( alsa jack pulseaudio )" BDEPEND=" dev-qt/linguist-tools:5 @@ -26,24 +34,23 @@ DEPEND=" " RDEPEND="${DEPEND}" -REQUIRED_USE="|| ( alsa jack pulseaudio )" +PATCHES=( "${FILESDIR}/${P}-cmake-no-git-version.patch" ) src_prepare() { - default - eautoreconf + cmake_src_prepare + + sed -e "/^find_package.*QT/s/Qt6 //" -i CMakeLists.txt || die } src_configure() { - sed -e "/@gzip.*mandir)\/man1/d" -i Makefile.in || die - econf \ - $(use_enable debug) - - eqmake5 ${PN}.pro -o ${PN}.mak + local mycmakeargs=( + -DCONFIG_DEBUG=$(usex debug 1 0) + ) + cmake_src_configure } src_install() { - emake DESTDIR="${D}" INSTALL_ROOT="${D}" install - einstalldocs + cmake_src_install # The desktop file is invalid, and we also change the command # depending on useflags |