commit:     a0b085d840f666bdb596d13681a6282602e1d510
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 20 19:11:42 2022 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Jul 20 19:13:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0b085d8

dev-libs/serd: bump to 0.30.14, eapi8, switched to meson

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-libs/serd/Manifest            |  1 +
 dev-libs/serd/metadata.xml        | 19 ++++++-----
 dev-libs/serd/serd-0.30.14.ebuild | 66 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 78 insertions(+), 8 deletions(-)

diff --git a/dev-libs/serd/Manifest b/dev-libs/serd/Manifest
index bab9811e84b1..00f147abb5fe 100644
--- a/dev-libs/serd/Manifest
+++ b/dev-libs/serd/Manifest
@@ -1 +1,2 @@
 DIST serd-0.30.12.tar.bz2 594475 BLAKE2B 
acd065613494f05d1b2016c2097c1efbd1ebe3a5b901fac3a60d27140fee5c51ec17314df7ac2d3ad89d852dcb016dcf7255271f506f900445ce275335ed7d01
 SHA512 
c330648eb2c947a6d220f42d0af63fd2744da496301483e58be3cda387da166711d6acd5cee2df8cbb837ab450e1802b3f9a0a2973e5ad6d976b69b863aecb7f
+DIST serd-0.30.14.tar.xz 168728 BLAKE2B 
42ed92e8eed3564c2625dd2f8e9bff55b65d1c8c993f13f2aa7ea0ab41a4c261b6b8fe9d4c61a915157616df1dba11d37f3813cd7bf7cd4571cb535895cb8f9c
 SHA512 
d753bf60d4ff37220e64fda6a5dc6c69dc1a52ef435ab5b1e698f72dc5a7280ea764bb53b015753c3dc0910f252ca96c0ebafcb902a9956fcbf0a4480ce4e1dc

diff --git a/dev-libs/serd/metadata.xml b/dev-libs/serd/metadata.xml
index fdc9981e73ed..7b0adafdec04 100644
--- a/dev-libs/serd/metadata.xml
+++ b/dev-libs/serd/metadata.xml
@@ -1,13 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer type="project">
-       <email>[email protected]</email>
-       <name>Gentoo ProAudio Project</name>
-</maintainer>
-<longdescription lang="en">
-       Serd is a lightweight C library for RDF syntax which supports reading 
and writing Turtle and NTriples.
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo ProAudio Project</name>
+       </maintainer>
+       <longdescription lang="en">
+               Serd is a lightweight C library for RDF syntax which supports 
reading and writing Turtle and NTriples.
 
-       Serd is not intended to be a swiss-army knife of RDF syntax, but rather 
is suited to resource limited or performance critical applications, or 
situations where a simple reader/writer with minimal dependencies is ideal 
(e.g. in LV2 hosts or plugins).
-</longdescription>
+               Serd is not intended to be a swiss-army knife of RDF syntax, 
but rather is suited to resource limited or performance critical applications, 
or situations where a simple reader/writer with minimal dependencies is ideal 
(e.g. in LV2 hosts or plugins).
+       </longdescription>
+       <use>
+               <flag name="tools">Build command line utilities</flag>
+       </use>
 </pkgmetadata>

diff --git a/dev-libs/serd/serd-0.30.14.ebuild 
b/dev-libs/serd/serd-0.30.14.ebuild
new file mode 100644
index 000000000000..47c9b2a8c802
--- /dev/null
+++ b/dev-libs/serd/serd-0.30.14.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_REQ_USE='threads(+)'
+
+inherit meson-multilib python-any-r1
+
+DESCRIPTION="Library for RDF syntax which supports reading and writing Turtle 
and NTriples"
+HOMEPAGE="http://drobilla.net/software/serd/";
+SRC_URI="http://download.drobilla.net/${P}.tar.xz";
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc static-libs test +tools"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       doc? (
+               app-doc/doxygen
+               dev-python/sphinx
+               dev-python/sphinx_lv2_theme
+)
+"
+RDEPEND=""
+DEPEND="${RDEPEND}
+       ${PYTHON_DEPS}
+"
+
+src_prepare() {
+       default
+
+       # fix doc installation path
+       sed -i "s/versioned_name/'${P}'/g" doc/c/meson.build || die
+}
+
+multilib_src_configure() {
+       local emesonargs=(
+               $(meson_native_use_feature doc docs)
+               $(meson_use static-libs static)
+               $(meson_feature test tests)
+               $(meson_feature tools)
+       )
+
+       meson_src_configure
+}
+
+multilib_src_test() {
+       meson_src_test
+}
+
+multilib_src_compile() {
+       meson_src_compile
+}
+
+multilib_src_install() {
+       meson_src_install
+}
+
+mutlilib_src_install_all() {
+       local DOCS=( AUTHORS NEWS README.md )
+       einstalldocs
+}

Reply via email to