Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2015 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
4 |
|
5 |
EAPI=5 |
6 |
inherit cmake-utils flag-o-matic |
7 |
|
8 |
DESCRIPTION="WYSIWYG Music Score Typesetter" |
9 |
HOMEPAGE="http://musescore.org/" |
10 |
SRC_URI="https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
|
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="audiofile debug jack portaudio pulseaudio" |
16 |
|
17 |
RDEPEND=" |
18 |
>=dev-qt/qtconcurrent-5.3.0:5 |
19 |
>=dev-qt/qtcore-5.3.0:5 |
20 |
>=dev-qt/qtdeclarative-5.3.0:5 |
21 |
>=dev-qt/qtgui-5.3.0:5 |
22 |
>=dev-qt/qthelp-5.3.0:5 |
23 |
>=dev-qt/qtsvg-5.3.0:5 |
24 |
>=dev-qt/qtwebkit-5.3.0:5 |
25 |
>=dev-qt/qtxmlpatterns-5.3.0:5 |
26 |
>=media-libs/alsa-lib-1.0.0 |
27 |
>=media-libs/freetype-2.5.2 |
28 |
sys-libs/zlib |
29 |
audiofile? ( |
30 |
media-libs/audiofile |
31 |
media-libs/libsndfile |
32 |
) |
33 |
portaudio? ( media-libs/portaudio ) |
34 |
pulseaudio? ( media-sound/pulseaudio ) |
35 |
" |
36 |
|
37 |
DEPEND="${RDEPEND} |
38 |
>=dev-util/cmake-2.8.7 |
39 |
dev-qt/linguist-tools:5 |
40 |
media-sound/lame |
41 |
virtual/pkgconfig |
42 |
jack? ( >=media-sound/jack-audio-connection-kit-0.98.0 ) |
43 |
" |
44 |
|
45 |
S="${WORKDIR}/MuseScore-${PV}" |
46 |
|
47 |
src_configure() { |
48 |
local mycmakeargs=( |
49 |
$(cmake-utils_use_has audiofile) |
50 |
$(cmake-utils_use_build jack) |
51 |
$(cmake-utils_use_use portaudio) |
52 |
$(cmake-utils_use_use pulseaudio) |
53 |
) |
54 |
CMAKE_BUILD_TYPE="$(usex debug DEBUG RELEASE)" |
55 |
cmake-utils_src_configure |
56 |
} |
57 |
|
58 |
src_compile() { |
59 |
cd "${BUILD_DIR}" || die |
60 |
cmake-utils_src_make -j1 lrelease manpages |
61 |
cmake-utils_src_compile |
62 |
} |
63 |
|
64 |
pkg_postinst() { |
65 |
einfo "Keep media-sound/lame installed for MP3 encoding support." |
66 |
einfo "Keep =media-sound/jack-audio-connection-kit-0.98.0 installed for JACK support." |
67 |
} |