From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 684C315800A for ; Wed, 30 Aug 2023 18:30:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B23192BC01C; Wed, 30 Aug 2023 18:30:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 546C32BC01C for ; Wed, 30 Aug 2023 18:30:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 59971335D7B for ; Wed, 30 Aug 2023 18:30:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFA52EF4 for ; Wed, 30 Aug 2023 18:30:08 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1693420201.a13cf65c6083a6edf98b1fbf505c348d664097df.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libmpack/libmpack-1.0.5-r4.ebuild X-VCS-Directories: dev-libs/libmpack/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a13cf65c6083a6edf98b1fbf505c348d664097df X-VCS-Branch: master Date: Wed, 30 Aug 2023 18:30:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4058a835-624a-45c4-b36c-9c626eda58c1 X-Archives-Hash: 1186c2159582974039495890350277bf commit: a13cf65c6083a6edf98b1fbf505c348d664097df Author: Horodniceanu Andrei proton me> AuthorDate: Tue Aug 29 14:59:07 2023 +0000 Commit: Conrad Kostecki gentoo 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 proton.me> Closes: https://github.com/gentoo/gentoo/pull/32514 Signed-off-by: Conrad Kostecki 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 +}