git: add75df273fa - main - devel/libserialport: Update version 0.1.1=>0.1.2

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 15 Oct 2024 06:19:39 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=add75df273fa37fbeeccb0317a53da3cc634f283

commit add75df273fa37fbeeccb0317a53da3cc634f283
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-10-15 05:30:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-10-15 06:19:15 +0000

    devel/libserialport: Update version 0.1.1=>0.1.2
    
    - Pet portclippy
    
    Changelog: https://www.sigrok.org/blog/libserialport-012-released
---
 devel/libserialport/Makefile              |  8 ++++----
 devel/libserialport/distinfo              |  6 +++---
 devel/libserialport/files/patch-freebsd.c | 12 ++++++------
 devel/libserialport/pkg-plist             |  2 +-
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/devel/libserialport/Makefile b/devel/libserialport/Makefile
index b8234108d89b..20e75a9931a8 100644
--- a/devel/libserialport/Makefile
+++ b/devel/libserialport/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	libserialport
-PORTVERSION=	0.1.1
-PORTREVISION=	1
+DISTVERSION=	0.1.2
 CATEGORIES=	devel
 MASTER_SITES=	http://sigrok.org/download/source/libserialport/
 
@@ -10,11 +9,12 @@ WWW=		https://sigrok.org/
 
 LICENSE=	LGPL3
 
-USE_LDCONFIG=	yes
 USES=		libtool pathfix pkgconfig
+USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
-INSTALL_TARGET=	install-strip
+
 MAKE_JOBS_UNSAFE=	yes
+INSTALL_TARGET=	install-strip
 
 .include <bsd.port.mk>
diff --git a/devel/libserialport/distinfo b/devel/libserialport/distinfo
index b74268dac56d..c526633c5edb 100644
--- a/devel/libserialport/distinfo
+++ b/devel/libserialport/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1468437932
-SHA256 (libserialport-0.1.1.tar.gz) = 4a2af9d9c3ff488e92fb75b4ba38b35bcf9b8a66df04773eba2a7bbf1fa7529d
-SIZE (libserialport-0.1.1.tar.gz) = 405251
+TIMESTAMP = 1728969985
+SHA256 (libserialport-0.1.2.tar.gz) = 5deb92b5ca72c0347b07b786848350deca2dcfd975ce613b8e0e1d947a4b4ca9
+SIZE (libserialport-0.1.2.tar.gz) = 470818
diff --git a/devel/libserialport/files/patch-freebsd.c b/devel/libserialport/files/patch-freebsd.c
index 1bf54294cbee..d71551c014ab 100644
--- a/devel/libserialport/files/patch-freebsd.c
+++ b/devel/libserialport/files/patch-freebsd.c
@@ -1,9 +1,9 @@
---- freebsd.c.orig	2018-07-17 13:22:11 UTC
+--- freebsd.c.orig	2017-04-29 08:27:51 UTC
 +++ freebsd.c
-@@ -327,9 +327,8 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***li
+@@ -326,9 +326,8 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***li
+ {
  	DIR *dir;
- 	struct dirent entry;
- 	struct dirent *result;
+ 	struct dirent *entry;
 -	struct termios tios;
  	char name[PATH_MAX];
 -	int fd, ret;
@@ -11,7 +11,7 @@
  
  	DEBUG("Enumerating tty devices");
  	if (!(dir = opendir("/dev")))
-@@ -353,21 +352,10 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***li
+@@ -352,21 +351,10 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***li
  		DEBUG_FMT("Found device %s", name);
  
  		/* Check that we can open tty/cua device in rw mode - we need that. */
@@ -34,4 +34,4 @@
 -			continue;
  
  		DEBUG_FMT("Found port %s", name);
- 		DBG("%s: %s\n", __func__, entry.d_name);
+ 		DBG("%s: %s\n", __func__, entry->d_name);
diff --git a/devel/libserialport/pkg-plist b/devel/libserialport/pkg-plist
index 4249195deef9..8b43d92e5539 100644
--- a/devel/libserialport/pkg-plist
+++ b/devel/libserialport/pkg-plist
@@ -2,5 +2,5 @@ include/libserialport.h
 lib/libserialport.a
 lib/libserialport.so
 lib/libserialport.so.0
-lib/libserialport.so.0.1.0
+lib/libserialport.so.0.1.1
 libdata/pkgconfig/libserialport.pc