From nobody Tue Apr 26 15:06:46 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9496A1A92290; Tue, 26 Apr 2022 15:06:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KnlbB6NWFz3h8L; Tue, 26 Apr 2022 15:06:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650985607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/QhF4OhJITqFV9HySHuxCMaHdyQwQ8Fyx29GqXLM9Do=; b=XXTA/fna7lWCWPYSDno2xdiW+PsT51mPA2l3bFvWoNxBh92KDwTuZ3CkpFEzIUl+Ulqm95 dqmkAOdaiGTmpSxFMkVoJoMbv3+9hy97fjsMmn54xu9km8Kya7cECf/0Vm3Tk9TeahJg0l HfXumf6D3uUoerVo2BvRg9xCaZeWit+k5+o6aoPhNghXx2Ydh3eiqcof1MYyA42rihkuGB YX83/8luIHkmaXBQ2Wgd3/Sg0UDaJN6SjaB1eVnyeylNL4cA8feeWz3VrtpfktKESq93/A +K38z1/vxfc3RTxGhHF+7w8Rc83PmQZaG5/FR2NGCcJ992pWaJPanh2BrKqebA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B13DA1193F; Tue, 26 Apr 2022 15:06:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23QF6kif040737; Tue, 26 Apr 2022 15:06:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23QF6kHL040736; Tue, 26 Apr 2022 15:06:46 GMT (envelope-from git) Date: Tue, 26 Apr 2022 15:06:46 GMT Message-Id: <202204261506.23QF6kHL040736@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 8456566af4bd - main - devel/p5-Data-MessagePack-Stream: Update to 1.05 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8456566af4bd2dfb3c9ad5fc33e1017cf2db7d46 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650985607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/QhF4OhJITqFV9HySHuxCMaHdyQwQ8Fyx29GqXLM9Do=; b=jA2chvEQB9kYihLuKOyBn7jef0lPiGULJoolQ9i7CADetkaTn3dgYh1XD9jQl7mQrdv7vG Xpt+YJBpU3OWINU3gJBPBcgd6LSJ+DcbN6IT8Ag9WPeN/lFPjwVN4tWH29Wzmc+4dd1zKj N0zHM1iyQ+fOAcu6EmagKHOEv+JCRiGF0Is8dobARA8cv4L5wJyBX4ZXjaAeleN2EYqEWS Abf1ociwQXPE7LDy0Q76n/2prZW3Q7CdjftK1LuqWRjAFTxFQTEfA+sJFGlPmfFS79g+IT 1pqWCPphjGD0gBOEAkTNOOr3JHBBk2ToXA9uURD+dWWayh2jJ6jSlXAvcoWprg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650985607; a=rsa-sha256; cv=none; b=iRaqQX+GURwpsq/kjFipI4+TWFDtEC3EYLg6/0l4fTj8taGRe/5n0LUVSRadF4xIN1ggQH 3Rt8LsWjONfwEM1AtdHZhiMx1ya2pLPmGzwQzLyjjvOiVpLRA7EmGdNu2dkeBzSgw5xrL7 sdKHXokxERdhWtqvppwl17OHwouvX7Ju5wLE9eYEPqTXQjbvUJ19uV1KlKVxzrm0/C5DVM 1mU+uw7x8ssoQdK+zFRScwHKb+GDa63iCFiofd8wZ1KtCsXVCI3JFzfhceQaQtNKtAw8yA LDYTV9ci5yy9RKRSzaeaZZN6HLKljhg7a+iRFv+oRRovGtqoyVd+bqCX10OeRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8456566af4bd2dfb3c9ad5fc33e1017cf2db7d46 commit 8456566af4bd2dfb3c9ad5fc33e1017cf2db7d46 Author: Po-Chuan Hsieh AuthorDate: 2022-04-26 14:56:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-26 15:01:45 +0000 devel/p5-Data-MessagePack-Stream: Update to 1.05 - Add RUN_DEPENDS - Strip shared library Changes: https://metacpan.org/dist/Data-MessagePack-Stream/changes --- devel/p5-Data-MessagePack-Stream/Makefile | 30 ++++++++---- devel/p5-Data-MessagePack-Stream/distinfo | 5 +- .../files/patch-builder-MyBuilder.pm | 53 ++++++++++++++++++++++ 3 files changed, 77 insertions(+), 11 deletions(-) diff --git a/devel/p5-Data-MessagePack-Stream/Makefile b/devel/p5-Data-MessagePack-Stream/Makefile index daf1eb6b5eb4..1a94b9b73720 100644 --- a/devel/p5-Data-MessagePack-Stream/Makefile +++ b/devel/p5-Data-MessagePack-Stream/Makefile @@ -1,6 +1,5 @@ PORTNAME= Data-MessagePack-Stream -PORTVERSION= 0.07 -PORTREVISION= 2 +PORTVERSION= 1.05 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -8,20 +7,33 @@ PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Perl extension for yet another messagepack streaming deserializer -BROKEN_mips= fails to build: atomic operations are not found -BROKEN_mips64= fails to build: atomic operations are not found -BROKEN_sparc64= fails to build: atomic operations are not found +BROKEN_mips= fails to build: atomic operations are not found +BROKEN_mips64= fails to build: atomic operations are not found +BROKEN_sparc64= fails to build: atomic operations are not found -BUILD_DEPENDS= p5-Data-MessagePack>0:devel/p5-Data-MessagePack +BUILD_DEPENDS= msgpack>=3.3.0:devel/msgpack \ + p5-File-Which>=0:sysutils/p5-File-Which \ + p5-Module-Build-XSUtil>=0:devel/p5-Module-Build-XSUtil \ + ${RUN_DEPENDS} +LIB_DEPENDS= libmsgpackc.so:devel/msgpack +RUN_DEPENDS= p5-Data-MessagePack>=0:devel/p5-Data-MessagePack -USES= perl5 -USE_PERL5= configure -MAKE_JOBS_UNSAFE= yes +USES= localbase:ldflags perl5 +USE_PERL5= modbuild CFLAGS_aarch64= -fPIC CFLAGS_armv7= -fPIC CFLAGS_i386= -fPIC CFLAGS_powerpc= -fPIC CFLAGS_riscv64= -fPIC +MAKE_JOBS_UNSAFE= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/builder/MyBuilder.pm +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/msgpack-3.3.0/ + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Data/MessagePack/Stream/Stream.so .include diff --git a/devel/p5-Data-MessagePack-Stream/distinfo b/devel/p5-Data-MessagePack-Stream/distinfo index 0559ffdae947..69ef2ace2303 100644 --- a/devel/p5-Data-MessagePack-Stream/distinfo +++ b/devel/p5-Data-MessagePack-Stream/distinfo @@ -1,2 +1,3 @@ -SHA256 (Data-MessagePack-Stream-0.07.tar.gz) = ee74d16e39bef749d2d0c77e4ecdd9ff5fd476f805a834ed03ca38ce2841f382 -SIZE (Data-MessagePack-Stream-0.07.tar.gz) = 487074 +TIMESTAMP = 1650970283 +SHA256 (Data-MessagePack-Stream-1.05.tar.gz) = a7472ec1419d15b94e3b7b521587e5d89a06781df336c08e25a4c2fb01276bb4 +SIZE (Data-MessagePack-Stream-1.05.tar.gz) = 497270 diff --git a/devel/p5-Data-MessagePack-Stream/files/patch-builder-MyBuilder.pm b/devel/p5-Data-MessagePack-Stream/files/patch-builder-MyBuilder.pm new file mode 100644 index 000000000000..9f090ca6b948 --- /dev/null +++ b/devel/p5-Data-MessagePack-Stream/files/patch-builder-MyBuilder.pm @@ -0,0 +1,53 @@ +--- builder/MyBuilder.pm.orig 2021-04-20 02:08:16 UTC ++++ builder/MyBuilder.pm +@@ -9,48 +9,24 @@ use Config; + + my $MSGPACK_VERSION = '3.3.0'; + +-__PACKAGE__->add_property(_cmake => undef); +- + sub new { + my ($class, %argv) = @_; + +- my $cmake = which 'cmake'; +- if (!$cmake) { +- die "Need 'cmake' command for building Data::MessagePack::Stream\n"; +- } + my $self = $class->SUPER::new( + %argv, +- include_dirs => [catdir("msgpack-$MSGPACK_VERSION", 'include')], ++ include_dirs => [catdir('%%LOCALBASE%%', 'include')], + generate_ppport_h => catfile('lib', 'Data', 'MessagePack', 'ppport.h'), + cc_warnings => 1, + ); +- $self->_cmake($cmake); + $self; + } + +-sub _build_msgpack { +- my $self = shift; +- +- my @opt = qw( +- -DMSGPACK_ENABLE_SHARED=OFF +- -DMSGPACK_ENABLE_CXX=OFF +- -DMSGPACK_BUILD_EXAMPLES=OFF +- -DCMAKE_POSITION_INDEPENDENT_CODE=ON +- ); +- chdir "msgpack-$MSGPACK_VERSION"; +- my $ok = $self->do_system($self->_cmake, @opt, "."); +- $ok &&= $self->do_system($Config{make}); +- chdir ".."; +- $ok; +-} +- + sub ACTION_code { + my ($self, @argv) = @_; + + my $spec = $self->_infer_xs_spec(catfile("lib", "Data", "MessagePack", "Stream.xs")); +- my $archive = catfile("msgpack-$MSGPACK_VERSION", "libmsgpackc.a"); ++ my $archive = catfile("%%LOCALBASE%%/lib", "libmsgpackc.so"); + if (!$self->up_to_date($archive, $spec->{lib_file})) { +- $self->_build_msgpack or die; + push @{$self->{properties}{objects}}, $archive; # XXX + } +