public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/msgpack/files/, dev-libs/msgpack/
Date: Sun,  5 Feb 2023 21:59:30 +0000 (UTC)	[thread overview]
Message-ID: <1675634349.c23fbbc365f94c571e705bb0a55d1b8b26f68d07.marecki@gentoo> (raw)

commit:     c23fbbc365f94c571e705bb0a55d1b8b26f68d07
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  5 21:39:13 2023 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sun Feb  5 21:59:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23fbbc3

dev-libs/msgpack-5.0.0: add *working* IUSE=static-libs

app-misc/tmate optionally relies on the availability of static
libmsgpack so until that dependency has been removed, keep this flag.
That said, having just tested it USE=static-libs is in fact a no-op
in case of =dev-libs/msgpack-3.3.0!

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../msgpack/files/msgpack-5.0.0-static_libs.patch  | 38 ++++++++++++++++++++++
 dev-libs/msgpack/msgpack-5.0.0.ebuild              |  7 +++-
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/dev-libs/msgpack/files/msgpack-5.0.0-static_libs.patch b/dev-libs/msgpack/files/msgpack-5.0.0-static_libs.patch
new file mode 100644
index 000000000000..e1ed2c2038a5
--- /dev/null
+++ b/dev-libs/msgpack/files/msgpack-5.0.0-static_libs.patch
@@ -0,0 +1,38 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -82,27 +82,6 @@
+     OPTION (MSGPACK_GEN_COVERAGE "Enable running gcov to get a test coverage report." OFF)
+ ENDIF ()
+ 
+-IF (DEFINED BUILD_SHARED_LIBS)
+-    IF (BUILD_SHARED_LIBS)
+-        IF (DEFINED MSGPACK_ENABLE_SHARED AND NOT MSGPACK_ENABLE_SHARED)
+-            MESSAGE(WARNING "MSGPACK_ENABLE_SHARED is overridden to ON by BUILD_SHARED_LIBS")
+-        ENDIF ()
+-        SET (MSGPACK_ENABLE_SHARED ON)
+-        IF (DEFINED MSGPACK_ENABLE_STATIC AND MSGPACK_ENABLE_STATIC)
+-            MESSAGE(WARNING "MSGPACK_ENABLE_STATIC is overridden to OFF by BUILD_SHARED_LIBS")
+-        ENDIF ()
+-        SET (MSGPACK_ENABLE_STATIC OFF)
+-    ELSE ()
+-        IF (DEFINED MSGPACK_ENABLE_SHARED AND MSGPACK_ENABLE_SHARED)
+-            MESSAGE(WARNING "MSGPACK_ENABLE_SHARED is overridden to OFF by BUILD_SHARED_LIBS")
+-        ENDIF ()
+-        SET (MSGPACK_ENABLE_SHARED OFF)
+-        IF (DEFINED MSGPACK_ENABLE_STATIC AND NOT MSGPACK_ENABLE_STATIC)
+-            MESSAGE(WARNING "MSGPACK_ENABLE_STATIC is overridden to ON by BUILD_SHARED_LIBS")
+-        ENDIF ()
+-        SET (MSGPACK_ENABLE_STATIC ON)
+-    ENDIF ()
+-ELSE ()
+     IF (NOT DEFINED MSGPACK_ENABLE_SHARED)
+         SET (MSGPACK_ENABLE_SHARED ON)
+     ENDIF ()
+@@ -110,7 +89,6 @@
+         SET (MSGPACK_ENABLE_STATIC ON)
+     ENDIF ()
+     SET (BUILD_SHARED_LIBS ${MSGPACK_ENABLE_SHARED})
+-ENDIF ()
+ 
+ INCLUDE (Files.cmake)
+ 

diff --git a/dev-libs/msgpack/msgpack-5.0.0.ebuild b/dev-libs/msgpack/msgpack-5.0.0.ebuild
index cc6f586a055f..14455fe7b732 100644
--- a/dev-libs/msgpack/msgpack-5.0.0.ebuild
+++ b/dev-libs/msgpack/msgpack-5.0.0.ebuild
@@ -15,7 +15,7 @@ SRC_URI="https://github.com/${PN}/${PN}-c/releases/download/c-${PV}/${MY_P}.tar.
 LICENSE="Boost-1.0"
 SLOT="0/2"
 KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="doc examples test"
+IUSE="doc examples static-libs test"
 
 RESTRICT="!test? ( test )"
 
@@ -25,12 +25,17 @@ BDEPEND="doc? ( app-doc/doxygen[dot] )
 		sys-libs/zlib[${MULTILIB_USEDEP}]
 	)"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-5.0.0-static_libs.patch
+)
+
 S="${WORKDIR}"/${MY_P}
 
 multilib_src_configure() {
 	local mycmakeargs=(
 		-DMSGPACK_BUILD_EXAMPLES=OFF
 		-DMSGPACK_BUILD_TESTS="$(usex test)"
+		-DMSGPACK_ENABLE_STATIC="$(usex static-libs)"
 	)
 
 	cmake_src_configure


             reply	other threads:[~2023-02-05 21:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-05 21:59 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-07 11:30 [gentoo-commits] repo/gentoo:master commit in: dev-libs/msgpack/files/, dev-libs/msgpack/ Marek Szuba
2020-09-30  2:57 Sam James
2018-12-28 21:06 Tim Harder
2017-12-11 20:58 Patrice Clement
2017-08-14 22:24 Patrice Clement
2017-07-25 21:52 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1675634349.c23fbbc365f94c571e705bb0a55d1b8b26f68d07.marecki@gentoo \
    --to=marecki@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox