Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 20:06:47 GMT
From:      Juraj Lutter <otis@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c67a6464ada6 - main - net/rabbitmq-c: Update to 0.11.0
Message-ID:  <202106302006.15UK6l4J098460@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by otis:

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

commit c67a6464ada6bdb6ec5c247ce95330450baed48e
Author:     Daniel Engberg <daniel.engberg.lists@pyret.net>
AuthorDate: 2021-06-30 20:04:48 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2021-06-30 20:06:02 +0000

    net/rabbitmq-c: Update to 0.11.0
    
    - Update to 0.11.0
    
    And while here, also:
    - Rearrage Makefile to Porter's Handbooks guidelines
    - Remove unneeded Python dependency
    - Make static library options
    - Add support for "make test"
    
    PR:             256842
    Approved by:    dch (maintainer)
---
 net/rabbitmq-c/Makefile                   | 21 ++++++++++++---------
 net/rabbitmq-c/distinfo                   |  6 +++---
 net/rabbitmq-c/files/patch-CMakeLists.txt | 13 +++++++++++++
 net/rabbitmq-c/pkg-plist                  | 18 +++++++++++-------
 4 files changed, 39 insertions(+), 19 deletions(-)

diff --git a/net/rabbitmq-c/Makefile b/net/rabbitmq-c/Makefile
index 407f1b6b96b3..631bb381e215 100644
--- a/net/rabbitmq-c/Makefile
+++ b/net/rabbitmq-c/Makefile
@@ -1,8 +1,8 @@
 # Created by: Geoff Garside
 
 PORTNAME=	rabbitmq-c
-PORTVERSION=	0.10.0
 DISTVERSIONPREFIX=	v
+DISTVERSION=	0.11.0
 CATEGORIES=	net
 
 MAINTAINER=	dch@FreeBSD.org
@@ -11,18 +11,21 @@ COMMENT=	RabbitMQ C AMQP client library
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE-MIT
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:devel/py-simplejson@${PY_FLAVOR}
+LIB_DEPENDS=	libpopt.so:devel/popt
 
-USES=		cmake pathfix python tar:bzip2
+USES=		cmake localbase ssl
 USE_GITHUB=	yes
-USE_LDCONFIG=	yes
 GH_ACCOUNT=	alanxz
+USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	POPT
+CMAKE_OFF=	BUILD_EXAMPLES
+TEST_TARGET=	test
+
+OPTIONS_DEFINE=	STATIC TEST
 OPTIONS_SUB=	yes
-POPT_DESC=	Popt support in tools
-POPT_LIB_DEPENDS=	libpopt.so:devel/popt
-POPT_CFLAGS=	-I${LOCALBASE}/include
-POPT_LDFLAGS=	-L${LOCALBASE}/lib
+
+STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS
+TEST_IMPLIES=		STATIC
+TEST_CMAKE_BOOL=	BUILD_TESTS
 
 .include <bsd.port.mk>
diff --git a/net/rabbitmq-c/distinfo b/net/rabbitmq-c/distinfo
index b0604e6fa924..7e4754df70c0 100644
--- a/net/rabbitmq-c/distinfo
+++ b/net/rabbitmq-c/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1623921575
-SHA256 (alanxz-rabbitmq-c-v0.10.0_GH0.tar.gz) = 6455efbaebad8891c59f274a852b75b5cc51f4d669dfc78d2ae7e6cc97fcd8c0
-SIZE (alanxz-rabbitmq-c-v0.10.0_GH0.tar.gz) = 145361
+TIMESTAMP = 1624699278
+SHA256 (alanxz-rabbitmq-c-v0.11.0_GH0.tar.gz) = 437d45e0e35c18cf3e59bcfe5dfe37566547eb121e69fca64b98f5d2c1c2d424
+SIZE (alanxz-rabbitmq-c-v0.11.0_GH0.tar.gz) = 145638
diff --git a/net/rabbitmq-c/files/patch-CMakeLists.txt b/net/rabbitmq-c/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..4a45c9ad5b6e
--- /dev/null
+++ b/net/rabbitmq-c/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+--- CMakeLists.txt.orig	2021-06-26 16:16:31 UTC
++++ CMakeLists.txt
+@@ -319,8 +319,8 @@ foreach (lib ${SOCKET_LIBRARIES})
+ endforeach(lib)
+ set(libs_private "${libs_private} -l${LIBRT}")
+ if (ENABLE_SSL_SUPPORT)
+-  set(requires_private "openssl")
+-  set(libs_private "${libs_private} ${CMAKE_THREAD_LIBS_INIT}")
++#  set(requires_private "openssl")
++  set(libs_private "${libs_private} -lssl -lcrypto ${CMAKE_THREAD_LIBS_INIT}")
+ endif()
+ 
+ set(prefix ${CMAKE_INSTALL_PREFIX})
diff --git a/net/rabbitmq-c/pkg-plist b/net/rabbitmq-c/pkg-plist
index b2f6907e765a..db0e02d7fa1b 100644
--- a/net/rabbitmq-c/pkg-plist
+++ b/net/rabbitmq-c/pkg-plist
@@ -1,14 +1,18 @@
-%%POPT%%bin/amqp-consume
-%%POPT%%bin/amqp-declare-queue
-%%POPT%%bin/amqp-delete-queue
-%%POPT%%bin/amqp-get
-%%POPT%%bin/amqp-publish
+bin/amqp-consume
+bin/amqp-declare-queue
+bin/amqp-delete-queue
+bin/amqp-get
+bin/amqp-publish
 include/amqp.h
 include/amqp_framing.h
 include/amqp_ssl_socket.h
 include/amqp_tcp_socket.h
-lib/librabbitmq.a
+lib/cmake/rabbitmq-c/rabbitmq-c-config-version.cmake
+lib/cmake/rabbitmq-c/rabbitmq-c-config.cmake
+lib/cmake/rabbitmq-c/rabbitmq-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/rabbitmq-c/rabbitmq-targets.cmake
+%%STATIC%%lib/librabbitmq.a
 lib/librabbitmq.so
 lib/librabbitmq.so.4
-lib/librabbitmq.so.4.4.0
+lib/librabbitmq.so.4.5.0
 libdata/pkgconfig/librabbitmq.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106302006.15UK6l4J098460>