Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lmms/
Date: Wed, 13 Mar 2019 14:31:34
Message-Id: 1552487476.f803187d334a0b771d118f00879f2e4c452372d2.polynomial-c@gentoo
1 commit: f803187d334a0b771d118f00879f2e4c452372d2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 13 14:28:42 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 13 14:31:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f803187d
7
8 media-sound/lmms: Synced live ebuild.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-sound/lmms/lmms-9999.ebuild | 27 ++++++++++++++++-----------
14 1 file changed, 16 insertions(+), 11 deletions(-)
15
16 diff --git a/media-sound/lmms/lmms-9999.ebuild b/media-sound/lmms/lmms-9999.ebuild
17 index 85c5734ae47..44670637ff5 100644
18 --- a/media-sound/lmms/lmms-9999.ebuild
19 +++ b/media-sound/lmms/lmms-9999.ebuild
20 @@ -1,9 +1,11 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 -inherit cmake-utils xdg-utils
29 +# The order is important here! Both, cmake-utils and xdg define src_prepare.
30 +# We need the one from cmake-utils
31 +inherit xdg cmake-utils
32
33 DESCRIPTION="Cross-platform music production software"
34 HOMEPAGE="https://lmms.io"
35 @@ -11,7 +13,7 @@ if [[ ${PV} == "9999" ]]; then
36 EGIT_REPO_URI="https://github.com/LMMS/lmms.git"
37 inherit git-r3
38 else
39 - SRC_URI="https://github.com/LMMS/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
40 + SRC_URI="https://github.com/LMMS/lmms/releases/download/v${PV/_/-}/${P/_/-}.tar.xz -> ${P}.tar.xz"
41 KEYWORDS="~amd64 ~x86"
42 S="${WORKDIR}/${P/_/-}"
43 fi
44 @@ -24,6 +26,8 @@ IUSE="alsa debug fluidsynth jack libgig mp3 ogg portaudio pulseaudio sdl soundio
45 COMMON_DEPEND="
46 dev-qt/qtcore:5
47 dev-qt/qtgui:5
48 + dev-qt/qtwidgets:5
49 + dev-qt/qtxml:5
50 >=media-libs/libsamplerate-0.1.8
51 >=media-libs/libsndfile-1.0.11
52 sci-libs/fftw:3.0
53 @@ -48,9 +52,9 @@ COMMON_DEPEND="
54 stk? ( media-libs/stk )
55 vst? ( virtual/wine )
56 "
57 -DEPEND="${COMMON_DEPEND}
58 +DEPEND="${COMMON_DEPEND}"
59 +BDEPEND="
60 dev-qt/linguist-tools:5
61 - >=dev-util/cmake-2.4.5
62 "
63 RDEPEND="${COMMON_DEPEND}
64 media-libs/ladspa-cmt
65 @@ -72,7 +76,6 @@ src_configure() {
66 -DWANT_CMT=FALSE
67 -DWANT_CALF=FALSE
68 -DWANT_QT5=TRUE
69 - -DCMAKE_INSTALL_LIBDIR=$(get_libdir)
70 -DWANT_ALSA=$(usex alsa)
71 -DWANT_JACK=$(usex jack)
72 -DWANT_GIG=$(usex libgig)
73 @@ -89,12 +92,14 @@ src_configure() {
74 cmake-utils_src_configure
75 }
76
77 +pkg_preinst() {
78 + xdg_pkg_preinst
79 +}
80 +
81 pkg_postinst() {
82 - xdg_mimeinfo_database_update
83 - xdg_desktop_database_update
84 + xdg_pkg_postinst
85 }
86
87 pkg_postrm() {
88 - xdg_mimeinfo_database_update
89 - xdg_desktop_database_update
90 + xdg_pkg_postrm
91 }