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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B93FD1382C5 for ; Sun, 29 Nov 2020 18:49:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91853E0845; Sun, 29 Nov 2020 18:49:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A307E0845 for ; Sun, 29 Nov 2020 18:49:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C61F341242 for ; Sun, 29 Nov 2020 18:49:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB87A2CA for ; Sun, 29 Nov 2020 18:49:31 +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: <1606675703.812e799438544560111c81fb6abfd1f0b80857f9.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libmpack/Manifest dev-libs/libmpack/libmpack-1.0.5.ebuild dev-libs/libmpack/metadata.xml X-VCS-Directories: dev-libs/libmpack/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 812e799438544560111c81fb6abfd1f0b80857f9 X-VCS-Branch: master Date: Sun, 29 Nov 2020 18:49:31 +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: 5a303398-ea1d-49be-8dd7-53b6e736c44e X-Archives-Hash: a0d73e37005c950f49a90b92b7b2b492 commit: 812e799438544560111c81fb6abfd1f0b80857f9 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Nov 29 18:31:57 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Nov 29 18:48:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812e7994 dev-libs/libmpack: new package This is the mpack C lib, which will be needed for a newer lua mpack module version. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> dev-libs/libmpack/Manifest | 1 + dev-libs/libmpack/libmpack-1.0.5.ebuild | 52 +++++++++++++++++++++++++++++++++ dev-libs/libmpack/metadata.xml | 11 +++++++ 3 files changed, 64 insertions(+) diff --git a/dev-libs/libmpack/Manifest b/dev-libs/libmpack/Manifest new file mode 100644 index 00000000000..f158170965e --- /dev/null +++ b/dev-libs/libmpack/Manifest @@ -0,0 +1 @@ +DIST libmpack-1.0.5.tar.gz 32966 BLAKE2B 8ad01de11c740c3efc7b42046b89f7691dd32d228e126485bc49224e54789e7f12a611982c0fd9d2bbe8b06d1ce2df1ceea1b302e139e30d0a8c31f251129166 SHA512 6e30edafcacfb580b410bc6749ed7fe8f18b3be0cb98959339853e77bc3ec0cda6df08a0f1f22768cfc773458a2ea6bcef4f0421eea55cf56c58981d13711a04 diff --git a/dev-libs/libmpack/libmpack-1.0.5.ebuild b/dev-libs/libmpack/libmpack-1.0.5.ebuild new file mode 100644 index 00000000000..479c92bd7b2 --- /dev/null +++ b/dev-libs/libmpack/libmpack-1.0.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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 ~x86" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_prepare() { + default + + # Make compiling verbose + sed -e 's/@$(LIBTOOL)/$(LIBTOOL)/g' -i Makefile || die + + # Respect users CFLAGS + sed -e 's/-ggdb//g' -i Makefile || die + sed -e 's/-O3//g' -i .config/release.mk || die +} + +src_compile() { + local myemakeargs=( + "CC=$(tc-getCC)" + "config=release" + "LIBDIR=/usr/$(get_libdir)" + ) + + emake "${myemakeargs[@]}" lib-bin +} + +src_install() { + local myemakeargs=( + "PREFIX=/usr" + "DESTDIR=${ED}" + "LIBDIR=/usr/$(get_libdir)" + "XLDFLAGS=-shared" + ) + + emake "${myemakeargs[@]}" install + + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-libs/libmpack/metadata.xml b/dev-libs/libmpack/metadata.xml new file mode 100644 index 00000000000..def85419cfb --- /dev/null +++ b/dev-libs/libmpack/metadata.xml @@ -0,0 +1,11 @@ + + + + + conikost@gentoo.org + Conrad Kostecki + + + libmpack/libmpack + +