[gentoo-commits] repo/gentoo:master commit in: dev-libs/libezV24/, dev-libs/libezV24/files/

2024-01-11 Thread Joonas Niilola
commit: 24520d4ae8eedf7c4a8b3ee987e5b99e7de7a229
Author: Brahmajit Das  gmail  com>
AuthorDate: Mon Oct 30 17:44:00 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Jan 11 13:26:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24520d4a

dev-libs/libezV24: Fix call to undeclared function fcvt

Closes: https://bugs.gentoo.org/895044
Signed-off-by: Brahmajit Das  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33588
Signed-off-by: Joonas Niilola  gentoo.org>

 .../files/libezV24-0.1.1-clang16-build-fix.patch   | 21 
 dev-libs/libezV24/libezV24-0.1.1-r3.ebuild | 38 ++
 2 files changed, 59 insertions(+)

diff --git a/dev-libs/libezV24/files/libezV24-0.1.1-clang16-build-fix.patch 
b/dev-libs/libezV24/files/libezV24-0.1.1-clang16-build-fix.patch
new file mode 100644
index ..6579fe476c0f
--- /dev/null
+++ b/dev-libs/libezV24/files/libezV24-0.1.1-clang16-build-fix.patch
@@ -0,0 +1,21 @@
+Bug: https://bugs.gentoo.org/895044
+--- a/ezV24.c
 b/ezV24.c
+@@ -42,6 +42,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ 
+ #define __EZV24_C__
+--- a/snprintf.c
 b/snprintf.c
+@@ -61,6 +61,7 @@
+ 
+ /* From: Id: sprint.c,v 1.5 1995/09/10 18:35:09 chuck Exp */
+ 
++#define _GNU_SOURCE
+ #include 
+ #include 
+ #include 

diff --git a/dev-libs/libezV24/libezV24-0.1.1-r3.ebuild 
b/dev-libs/libezV24/libezV24-0.1.1-r3.ebuild
new file mode 100644
index ..eae3daeb9b04
--- /dev/null
+++ b/dev-libs/libezV24/libezV24-0.1.1-r3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="library that provides an easy API to Linux serial ports"
+HOMEPAGE="http://ezv24.sourceforge.net";
+SRC_URI="mirror://sourceforge/ezv24/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+HTML_DOCS=( api-html/. )
+
+PATCHES=(
+   "${FILESDIR}"/${P}-build.patch
+   "${FILESDIR}"/${P}-test.patch
+   "${FILESDIR}"/${P}-clang16-build-fix.patch
+)
+
+src_prepare() {
+   default
+
+   tc-export AR CC RANLIB
+   sed -i -e 's:__LINUX__:__linux__:' *.c *.h || die
+}
+
+src_install() {
+   export NO_LDCONFIG="stupid"
+   emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+   einstalldocs
+
+   find "${ED}" -name '*.a' -delete || die
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libezV24/, dev-libs/libezV24/files/

2019-07-20 Thread Michał Górny
commit: 724e88c098412f1c135989812ca572deaf02e14c
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Wed May 22 16:20:55 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jul 20 18:53:20 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=724e88c0

dev-libs/libezV24: fix LICENSE, EAPI=7 bump

Closes: https://bugs.gentoo.org/686556
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12082
Signed-off-by: Michał Górny  gentoo.org>

 dev-libs/libezV24/files/libezV24-0.1.1-test.patch |  4 +--
 dev-libs/libezV24/libezV24-0.1.1-r1.ebuild| 34 +++
 dev-libs/libezV24/libezV24-0.1.1.ebuild   |  4 +--
 3 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libezV24/files/libezV24-0.1.1-test.patch 
b/dev-libs/libezV24/files/libezV24-0.1.1-test.patch
index f3c2b676546..425c3203656 100644
--- a/dev-libs/libezV24/files/libezV24-0.1.1-test.patch
+++ b/dev-libs/libezV24/files/libezV24-0.1.1-test.patch
@@ -4,8 +4,8 @@ RCS file: /cvsroot/ezv24/libezv24/test-v24.c,v
 retrieving revision 1.2
 retrieving revision 1.3
 diff -u -p -r1.2 -r1.3
 test-v24.c 11 Feb 2003 13:29:43 -  1.2
-+++ test-v24.c 13 Oct 2003 07:50:26 -  1.3
+--- a/test-v24.c   11 Feb 2003 13:29:43 -  1.2
 b/test-v24.c   13 Oct 2003 07:50:26 -  1.3
 @@ -30,7 +33,11 @@
  #include 
  #include 

diff --git a/dev-libs/libezV24/libezV24-0.1.1-r1.ebuild 
b/dev-libs/libezV24/libezV24-0.1.1-r1.ebuild
new file mode 100644
index 000..b6b2424b2a9
--- /dev/null
+++ b/dev-libs/libezV24/libezV24-0.1.1-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="library that provides an easy API to Linux serial ports"
+HOMEPAGE="http://ezv24.sourceforge.net";
+SRC_URI="mirror://sourceforge/ezv24/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+HTML_DOCS=( api-html/. )
+
+PATCHES=(
+   "${FILESDIR}"/${P}-build.patch
+   "${FILESDIR}"/${P}-test.patch
+)
+
+src_prepare() {
+   tc-export AR CC RANLIB
+   default
+   sed -i -e 's:__LINUX__:__linux__:' *.c *.h || die
+}
+
+src_install() {
+   export NO_LDCONFIG="stupid"
+   emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \
+   LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+   einstalldocs
+}

diff --git a/dev-libs/libezV24/libezV24-0.1.1.ebuild 
b/dev-libs/libezV24/libezV24-0.1.1.ebuild
index db6b724d1f4..30ac27fe878 100644
--- a/dev-libs/libezV24/libezV24-0.1.1.ebuild
+++ b/dev-libs/libezV24/libezV24-0.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=0
@@ -9,7 +9,7 @@ DESCRIPTION="library that provides an easy API to Linux serial 
ports"
 HOMEPAGE="http://ezv24.sourceforge.net";
 SRC_URI="mirror://sourceforge/ezv24/${P}.tar.gz"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="alpha amd64 ppc sparc x86"
 IUSE=""