Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/liblscp/, media-libs/liblscp/files/
Date: Fri, 01 Jul 2022 13:29:36
Message-Id: 1656682170.9ceb40e5ded62ce22d1014134d3477fa5bc9c937.fordfrog@gentoo
1 commit: 9ceb40e5ded62ce22d1014134d3477fa5bc9c937
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 13:28:44 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 13:29:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ceb40e5
7
8 media-libs/liblscp: bump to 0.9.6, switched to cmake, eapi8, updated live
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 media-libs/liblscp/Manifest | 1 +
13 .../liblscp/files/liblscp-0.9.6-conditional.patch | 17 ++++++++++
14 media-libs/liblscp/liblscp-0.9.6.ebuild | 37 ++++++++++++++++++++
15 media-libs/liblscp/liblscp-9999.ebuild | 39 +++++++++++-----------
16 4 files changed, 75 insertions(+), 19 deletions(-)
17
18 diff --git a/media-libs/liblscp/Manifest b/media-libs/liblscp/Manifest
19 index ea071a9a9f86..d12d04f5f7e9 100644
20 --- a/media-libs/liblscp/Manifest
21 +++ b/media-libs/liblscp/Manifest
22 @@ -1 +1,2 @@
23 DIST liblscp-0.9.4.tar.gz 697219 BLAKE2B f1824c75237e478888ffcd95c15b72e4746cbc8997924f70cced966baddb68877526cbbcd56ff419fa1eb5f1ca6a1537ce5db368ba41cac39e51813921720e9b SHA512 6aa9b15d538925edf3327ca05023bac8285611902703fec20572416dde5cd7300ed429a7db464d92b9f6c1d524b89066888f8cbd0d56283ff3c78074605f396a
24 +DIST liblscp-0.9.6.tar.gz 100811 BLAKE2B a86a5e9e6d52dfd2449274e1c800e40887094dcea3e39d257670dded8b3805f2cdf575b41f640b0df95cd008656d3e7c8ca93d5bc5360c8727b80d6d2695ed83 SHA512 51c3b0b3dfe3947ac5d7cfec18fec597a4282aacc489cdda5a30d5853c3a43778e207ddf2f211c28ba04386fd6f30a09eed62dc2a33177e5aeccd7f77b4ef520
25
26 diff --git a/media-libs/liblscp/files/liblscp-0.9.6-conditional.patch b/media-libs/liblscp/files/liblscp-0.9.6-conditional.patch
27 new file mode 100644
28 index 000000000000..a7f1cdf5c45f
29 --- /dev/null
30 +++ b/media-libs/liblscp/files/liblscp-0.9.6-conditional.patch
31 @@ -0,0 +1,17 @@
32 +diff --git a/CMakeLists.txt b/CMakeLists.txt
33 +index cf38831..a13f094 100644
34 +--- a/CMakeLists.txt
35 ++++ b/CMakeLists.txt
36 +@@ -129,8 +129,10 @@ endif ()
37 + #
38 +
39 + add_subdirectory (src)
40 +-add_subdirectory (doc)
41 +-add_subdirectory (examples)
42 ++
43 ++if (BUILD_DOC)
44 ++ add_subdirectory (doc)
45 ++endif ()
46 +
47 + configure_file (liblscp.spec.in liblscp.spec IMMEDIATE @ONLY)
48 +
49
50 diff --git a/media-libs/liblscp/liblscp-0.9.6.ebuild b/media-libs/liblscp/liblscp-0.9.6.ebuild
51 new file mode 100644
52 index 000000000000..5d0c3733b0ff
53 --- /dev/null
54 +++ b/media-libs/liblscp/liblscp-0.9.6.ebuild
55 @@ -0,0 +1,37 @@
56 +# Copyright 1999-2022 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=8
60 +
61 +inherit cmake
62 +
63 +DESCRIPTION="C++ library for the Linux Sampler control protocol"
64 +HOMEPAGE="https://www.linuxsampler.org"
65 +
66 +if [[ ${PV} == "9999" ]] ; then
67 + inherit subversion
68 + ESVN_REPO_URI="https://svn.linuxsampler.org/svn/liblscp/trunk"
69 +else
70 + SRC_URI="https://www.rncbc.org/archive/${P}.tar.gz
71 + https://download.linuxsampler.org/packages/${P}.tar.gz"
72 + KEYWORDS="~amd64 ~ppc ~x86"
73 +fi
74 +
75 +LICENSE="LGPL-2.1"
76 +SLOT="0"
77 +IUSE="doc"
78 +
79 +BDEPEND="doc? ( app-doc/doxygen )"
80 +
81 +PATCHES=(
82 + "${FILESDIR}/${PN}-0.9.6-conditional.patch"
83 +)
84 +
85 +DOCS=( ChangeLog README )
86 +
87 +src_configure() {
88 + local mycmakeargs=(
89 + -DBUILD_DOC=$(usex doc)
90 + )
91 + cmake_src_configure
92 +}
93
94 diff --git a/media-libs/liblscp/liblscp-9999.ebuild b/media-libs/liblscp/liblscp-9999.ebuild
95 index f456569bf546..5d0c3733b0ff 100644
96 --- a/media-libs/liblscp/liblscp-9999.ebuild
97 +++ b/media-libs/liblscp/liblscp-9999.ebuild
98 @@ -1,36 +1,37 @@
99 -# Copyright 1999-2020 Gentoo Authors
100 +# Copyright 1999-2022 Gentoo Authors
101 # Distributed under the terms of the GNU General Public License v2
102
103 -EAPI=7
104 +EAPI=8
105
106 -inherit autotools subversion
107 +inherit cmake
108
109 DESCRIPTION="C++ library for the Linux Sampler control protocol"
110 HOMEPAGE="https://www.linuxsampler.org"
111 -ESVN_REPO_URI="https://svn.linuxsampler.org/svn/liblscp/trunk"
112 +
113 +if [[ ${PV} == "9999" ]] ; then
114 + inherit subversion
115 + ESVN_REPO_URI="https://svn.linuxsampler.org/svn/liblscp/trunk"
116 +else
117 + SRC_URI="https://www.rncbc.org/archive/${P}.tar.gz
118 + https://download.linuxsampler.org/packages/${P}.tar.gz"
119 + KEYWORDS="~amd64 ~ppc ~x86"
120 +fi
121
122 LICENSE="LGPL-2.1"
123 SLOT="0"
124 -KEYWORDS=""
125 IUSE="doc"
126
127 BDEPEND="doc? ( app-doc/doxygen )"
128
129 -DOCS=( AUTHORS ChangeLog TODO NEWS README )
130 -
131 -src_prepare() {
132 - default
133 +PATCHES=(
134 + "${FILESDIR}/${PN}-0.9.6-conditional.patch"
135 +)
136
137 - emake -f Makefile.git
138 - eautoreconf
139 -}
140 +DOCS=( ChangeLog README )
141
142 src_configure() {
143 - econf --disable-static
144 -}
145 -
146 -src_install() {
147 - use doc && local HTML_DOCS=( doc/html/. )
148 - default
149 - find "${D}" -name '*.la' -delete || die
150 + local mycmakeargs=(
151 + -DBUILD_DOC=$(usex doc)
152 + )
153 + cmake_src_configure
154 }