[gentoo-commits] repo/gentoo:master commit in: media-libs/fidlib/, media-libs/fidlib/files/

2022-09-29 Thread Sam James
commit: 45a76f207644511be49fab8395ba5a82dddb5b70
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 30 00:57:54 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 30 00:58:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a76f20

media-libs/fidlib: fix implicit function declarations (clang 16)

Closes: https://bugs.gentoo.org/870886
Signed-off-by: Sam James  gentoo.org>

 media-libs/fidlib/fidlib-0.9.10-r1.ebuild | 14 +++---
 .../fidlib-0.9.10-Add-missing-unistd.h-include.patch  | 15 +++
 2 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild 
b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
index f1ded950cbab..750558152e41 100644
--- a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
+++ b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit edo flag-o-matic toolchain-funcs
+inherit edo toolchain-funcs
 
 DESCRIPTION="Run-time filter design and execution library"
 HOMEPAGE="http://uazu.net/fidlib/;
@@ -15,17 +15,9 @@ KEYWORDS="amd64 x86"
 
 PATCHES=(
"${FILESDIR}"/${P}-extern.patch
+   "${FILESDIR}"/${PN}-0.9.10-Add-missing-unistd.h-include.patch
 )
 
-src_prepare() {
-   default
-
-   # Avoid ICE under gcc-4.6, fixed in 4.6.3
-   if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then
-   replace-flags -O? -O0
-   fi
-}
-
 src_compile() {
# build library
edo $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} 
-Wl,-soname,libfidlib.so.${PV:0:1} \

diff --git 
a/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch 
b/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch
new file mode 100644
index ..2a4ae2d09ea7
--- /dev/null
+++ b/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch
@@ -0,0 +1,15 @@
+From ffe98aaaef253621d71b73b3a0e54813d220ece9 Mon Sep 17 00:00:00 2001
+From: Sam James 
+Date: Fri, 30 Sep 2022 01:54:08 +0100
+Subject: [PATCH] Add missing unistd.h include
+
+--- a/firun.c
 b/firun.c
+@@ -58,6 +58,7 @@ NL "  -L Ignore following arguments, display list of 
filter types."
+ #include 
+ #include 
+ #include 
++#include 
+ #include "fidlib.h"
+ 
+ typedef unsigned char uchar;



[gentoo-commits] repo/gentoo:master commit in: media-libs/fidlib/, media-libs/fidlib/files/

2021-04-03 Thread Sam James
commit: c9f518a29c02a674bb3aae54743cd81252143787
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr  3 21:47:22 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr  3 21:47:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9f518a2

media-libs/fidlib: port to EAPI 7

Signed-off-by: Sam James  gentoo.org>

 media-libs/fidlib/fidlib-0.9.10-r1.ebuild  | 12 
 media-libs/fidlib/files/fidlib-0.9.10-extern.patch |  4 ++--
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild 
b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
index 939921d2acf..43f1384db12 100644
--- a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
+++ b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit toolchain-funcs flag-o-matic eutils multilib
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Run-time filter design and execution library"
 HOMEPAGE="http://uazu.net/fidlib/;
@@ -13,13 +13,17 @@ LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS="amd64 x86"
 
+PATCHES=(
+   "${FILESDIR}"/${P}-extern.patch
+)
+
 doecho() {
echo "$@"
"$@" || die
 }
 
 src_prepare() {
-   epatch "${FILESDIR}"/${P}-extern.patch
+   default
 
# Avoid ICE under gcc-4.6, fixed in 4.6.3
if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then

diff --git a/media-libs/fidlib/files/fidlib-0.9.10-extern.patch 
b/media-libs/fidlib/files/fidlib-0.9.10-extern.patch
index 0e819942907..691a9e273c4 100644
--- a/media-libs/fidlib/files/fidlib-0.9.10-extern.patch
+++ b/media-libs/fidlib/files/fidlib-0.9.10-extern.patch
@@ -1,5 +1,5 @@
 fidlib-0.9.10/fidlib.h
-+++ fidlib-0.9.10/fidlib.h
+--- a/fidlib.h
 b/fidlib.h
 @@ -2,6 +2,13 @@
  //fidlib include file
  //



[gentoo-commits] repo/gentoo:master commit in: media-libs/fidlib/, media-libs/fidlib/files/

2019-12-14 Thread David Seifert
commit: 32b725776e00345cec55cf0a2d0ce7eba0f6
Author: David Seifert  gentoo  org>
AuthorDate: Sat Dec 14 21:16:47 2019 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Dec 14 21:16:47 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32b72577

media-libs/fidlib: Remove old

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert  gentoo.org>

 media-libs/fidlib/fidlib-0.9.10.ebuild | 49 --
 .../fidlib/files/fidlib-0.9.10-cpp-extern.patch| 21 --
 2 files changed, 70 deletions(-)

diff --git a/media-libs/fidlib/fidlib-0.9.10.ebuild 
b/media-libs/fidlib/fidlib-0.9.10.ebuild
deleted file mode 100644
index eb2c394daff..000
--- a/media-libs/fidlib/fidlib-0.9.10.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit toolchain-funcs flag-o-matic eutils multilib
-
-DESCRIPTION="Run-time filter design and execution library"
-HOMEPAGE="http://uazu.net/fidlib/;
-SRC_URI="http://uazu.net/fidlib/${P}.tgz;
-
-LICENSE="GPL-2 LGPL-2.1"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-
-doecho() {
-   echo "$@"
-   "$@" || die
-}
-
-src_prepare() {
-   epatch "${FILESDIR}"/${P}-cpp-extern.patch
-
-   # Avoid ICE under gcc-4.6, fixed in 4.6.3
-   if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then
-   replace-flags -O? -O0
-   fi
-}
-
-src_compile() {
-   # build library
-   doecho $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} 
-Wl,-soname,libfidlib.so.${PV:0:1} \
-   -fPIC -shared fidlib.c -lm -o libfidlib.so.${PV:0:1}
-
-   # build command-line tool
-   doecho $(tc-getCC) ${CFLAGS} ${LDFLAGS} firun.c -lm 
./libfidlib.so.${PV:0:1} -o firun
-}
-
-src_install() {
-   dobin firun
-   dolib.so libfidlib.so.${PV:0:1}
-   dosym libfidlib.so.${PV:0:1} /usr/$(get_libdir)/libfidlib.so
-
-   insinto /usr/include/fidlib
-   doins fidlib.h
-
-   dodoc NEWS README fidlib.txt firun.txt
-}

diff --git a/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch 
b/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch
deleted file mode 100644
index 221ec825f17..000
--- a/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch
+++ /dev/null
@@ -1,21 +0,0 @@
 fidlib-0.9.10/fidlib.h
-+++ fidlib-0.9.10/fidlib.h
-@@ -2,6 +2,10 @@
- //fidlib include file
- //
- 
-+#ifdef __cplusplus
-+extern "C" {
-+#endif
-+
- typedef struct FidFilter FidFilter;
- struct FidFilter {
-short typ; // Type of filter element 'I' IIR, 'F' FIR, or 0 for 
end of list
-@@ -66,3 +70,7 @@
- extern void fid_run_zapbuf(void *buf);
- extern void fid_run_freebuf(void *runbuf);
- extern void fid_run_free(void *run);
-+
-+#ifdef __cplusplus
-+}
-+#endif