public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmpack/
Date: Wed, 30 Aug 2023 18:30:08 +0000 (UTC)	[thread overview]
Message-ID: <1693420201.a13cf65c6083a6edf98b1fbf505c348d664097df.conikost@gentoo> (raw)

commit:     a13cf65c6083a6edf98b1fbf505c348d664097df
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Tue Aug 29 14:59:07 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed Aug 30 18:30:01 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a13cf65c

dev-libs/libmpack: Don't compile during src_install

Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/32514
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/libmpack/libmpack-1.0.5-r4.ebuild | 69 ++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/dev-libs/libmpack/libmpack-1.0.5-r4.ebuild b/dev-libs/libmpack/libmpack-1.0.5-r4.ebuild
new file mode 100644
index 000000000000..2b6ab319eef8
--- /dev/null
+++ b/dev-libs/libmpack/libmpack-1.0.5-r4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Simple implementation of msgpack in C"
+HOMEPAGE="https://github.com/libmpack/libmpack"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-libtool.patch # 778899
+)
+
+src_prepare() {
+	default
+
+	# Respect users CFLAGS
+	sed -e 's/-ggdb//g' -i Makefile.in || die
+	sed -e 's/-O3//g' -i .config/release.mk || die
+
+	eautoreconf
+}
+
+src_compile() {
+	local myemakeargs=(
+		"VERBOSE=1"
+		"PREFIX=${EPREFIX}/usr"
+		"CC=$(tc-getCC)"
+		"config=release"
+		"LIBDIR=${EPREFIX}/usr/$(get_libdir)"
+		"INCDIR=${EPREFIX}/usr/include"
+	)
+
+	emake "${myemakeargs[@]}" lib-bin
+}
+
+src_test() {
+	emake VERBOSE=1 XLDFLAGS="-shared" test
+}
+
+src_install() {
+	local myemakeargs=(
+		"VERBOSE=1"
+		"PREFIX=${EPREFIX}/usr"
+		"DESTDIR=${D}"
+		"config=release"
+		"LIBDIR=${EPREFIX}/usr/$(get_libdir)"
+		"INCDIR=${EPREFIX}/usr/include"
+		"XLDFLAGS=-shared"
+	)
+
+	emake "${myemakeargs[@]}" install
+
+	if [[ ${CHOST} == *-darwin* ]] ; then
+		local file="libmpack.0.0.0.dylib"
+		install_name_tool \
+			-id "${EPREFIX}/usr/$(get_libdir)/${file}" \
+			"${ED}/usr/$(get_libdir)/${file}" \
+			|| die "Failed to adjust install_name"
+	fi
+
+	find "${ED}" -name '*.la' -delete || die
+}


             reply	other threads:[~2023-08-30 18:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 18:30 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-04 14:42 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmpack/ Conrad Kostecki
2023-10-03 23:55 Sam James
2023-10-03 23:55 Sam James
2023-10-03 23:55 Sam James
2023-09-02 19:52 Conrad Kostecki
2023-08-05 22:41 Conrad Kostecki
2022-07-21  8:31 Conrad Kostecki
2022-07-21  7:13 Agostino Sarubbo
2022-07-20 20:01 Sam James
2022-07-20 20:01 Sam James
2022-07-15  7:40 Sam James
2022-07-14 19:43 Fabian Groffen
2022-02-20 15:11 Conrad Kostecki
2021-10-11 13:47 Yixun Lan
2021-04-21 20:29 Conrad Kostecki
2021-04-18 19:41 Sergei Trofimovich
2021-03-28  1:29 Sam James
2021-03-08  2:02 Aaron Bauman
2021-01-23  4:20 Sam James
2021-01-23  4:09 Sam James
2020-12-05 20:55 Conrad Kostecki
2020-11-29 18:49 Conrad Kostecki

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=1693420201.a13cf65c6083a6edf98b1fbf505c348d664097df.conikost@gentoo \
    --to=conikost@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