summaryrefslogtreecommitdiff
path: root/media-libs/libcddb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-02 00:07:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-02 00:07:23 +0100
commit6657c680376cedf378fcf328e5fa03ed3b41d580 (patch)
tree44ea8d174f647daca562b9bdcbcb527a85a77d0a /media-libs/libcddb
parent1551fe56fd6ba43a94509cffc61b6bf854b7ac9f (diff)
gentoo auto-resync : 02:06:2024 - 00:07:23
Diffstat (limited to 'media-libs/libcddb')
-rw-r--r--media-libs/libcddb/Manifest2
-rw-r--r--media-libs/libcddb/files/libcddb-1.3.2-c99.patch14
-rw-r--r--media-libs/libcddb/libcddb-1.3.2-r2.ebuild63
3 files changed, 79 insertions, 0 deletions
diff --git a/media-libs/libcddb/Manifest b/media-libs/libcddb/Manifest
index 4b78cffbec29..eaadf882f0b2 100644
--- a/media-libs/libcddb/Manifest
+++ b/media-libs/libcddb/Manifest
@@ -1,3 +1,5 @@
+AUX libcddb-1.3.2-c99.patch 591 BLAKE2B 504043c76ef660727a1972e368852fa9b1ef4c7c70127e024e84b31a6a878b9bdca94d35c0027bf527dfa97aa7bb71bd67b6df1132a33fc8d4cdafd555ef8752 SHA512 7c82bd6d61b03faea4c0e9bfd59ac91bb3f0f03d0be6058c2c4081f1a017bc0ba8ba59a71d283cb212759f37f513e684db52778f8e13f0fad027d361936a2f80
DIST libcddb-1.3.2.tar.bz2 352909 BLAKE2B 8386ea051f23004396d53ad228a595d13c8c194361223026e901ff859f8e3d2dadb93d5e779902ec4698c164a3e06073fc82f331b22b4cf42f5ab8b1fae562e6 SHA512 0e07e7d37f2013164d75b530a5528f54847271fd20f3b7bedb192a05d1f61dcf006d10dc2927efe155a01eddcc57b940bc31d8ac88d5dfc4f1a09771caa84e0a
EBUILD libcddb-1.3.2-r1.ebuild 1221 BLAKE2B 0fc20982808a80080d9cb4014b7f2839bc81233b712ab70af250b47340f9820986be7f2eb534ef57970deb8f288d100d17add1c4072f5a9f9ee1723790030da9 SHA512 0edcafde2a1e423c9ca59e74bcea904a7a611b578e8a4448a91be73bce31425c4583254735289f3b960df67b387c08dabb47c115db68c66abf85f4e8dd5be9ec
+EBUILD libcddb-1.3.2-r2.ebuild 1278 BLAKE2B 3f935c7632338af4fa5f6a49b7959c3b94f363a8c2e2dec611a8bf8b4f0b43e8f1be8e54e52d30882ed4c82bf79845ec0b9a644ed79a110ac24b2adebe1edd6e SHA512 549c41602e271286dac4df57925159d18fc8a884e061f048f756cf98b33f9176e9880cc3184fd53784984659fe1745470eeae2772cbbd3a35bf96d14709741f4
MISC metadata.xml 331 BLAKE2B 08fdd45ed8c06d710353283e93f825766554b6b2dfcca76ee250173172236375a94e968ca380512b8406be2d86031bb1084989262e180c4c1ad8901df72309e9 SHA512 421db591a3d825b41f15d08a13b2d9c98c18b0c220a5716c608d61e0e6c78a7e82749cbdf6ad8feffdf05667eef1d8f8e4dd8c29f7f0764556b2f1f9aec32738
diff --git a/media-libs/libcddb/files/libcddb-1.3.2-c99.patch b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
new file mode 100644
index 000000000000..20f7b3d8ea3f
--- /dev/null
+++ b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/919280
+https://src.fedoraproject.org/rpms/libcddb/blob/rawhide/f/pointer-types.patch
+--- a/lib/cddb_net.c
++++ b/lib/cddb_net.c
+@@ -329,7 +329,7 @@
+ default:
+ /* we got connected, check error condition */
+ l = sizeof(rv);
+- getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
++ getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, (socklen_t * restrict)&l);
+ if (rv) {
+ /* something went wrong, simulate normal connect behaviour */
+ errno = rv;
+
diff --git a/media-libs/libcddb/libcddb-1.3.2-r2.ebuild b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild
new file mode 100644
index 000000000000..63506b46fe3b
--- /dev/null
+++ b/media-libs/libcddb/libcddb-1.3.2-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Library for accessing a CDDB server"
+HOMEPAGE="https://libcddb.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc static-libs"
+
+RDEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-text/doxygen )"
+
+RESTRICT="test"
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/cddb/version.h )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.2-c99.patch
+)
+
+src_prepare() {
+ default
+ # Required for CONFIG_SHELL != bash (bug #528012)
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --without-cdio
+ $(use_enable static-libs static)
+ )
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+ default
+
+ if use doc ; then
+ cd "${S}"/doc || die
+ doxygen doxygen.conf || die
+ fi
+}
+
+multilib_src_install_all() {
+ default
+
+ find "${ED}" -type f -name "*.la" -delete || die
+
+ if use doc ; then
+ docinto html
+ dodoc "${S}"/doc/html/*
+ fi
+}