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 BB25B158041 for ; Thu, 9 Sep 2021 12:31:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CBFDE0930; Thu, 9 Sep 2021 12:31:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 E5823E0930 for ; Thu, 9 Sep 2021 12:31:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 BA5AC335C60 for ; Thu, 9 Sep 2021 12:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 47D8B35 for ; Thu, 9 Sep 2021 12:31:51 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1631190694.db52e915bc26b21247bb79a9a702c038c7782356.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libaxc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libaxc/Manifest net-libs/libaxc/libaxc-0.3.6.ebuild X-VCS-Directories: net-libs/libaxc/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: db52e915bc26b21247bb79a9a702c038c7782356 X-VCS-Branch: master Date: Thu, 9 Sep 2021 12:31:51 +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: ba16521d-4520-4436-bd62-55d3aa716074 X-Archives-Hash: 38cff34e67098bd6932204f9fd3fcbc4 commit: db52e915bc26b21247bb79a9a702c038c7782356 Author: Sebastian Pipping gentoo org> AuthorDate: Thu Sep 9 12:29:53 2021 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu Sep 9 12:31:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db52e915 net-libs/libaxc: 0.3.6 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.22, Repoman-3.0.3 net-libs/libaxc/Manifest | 1 + net-libs/libaxc/libaxc-0.3.6.ebuild | 71 +++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-libs/libaxc/Manifest b/net-libs/libaxc/Manifest index 4528d6764d9..248c57f93c7 100644 --- a/net-libs/libaxc/Manifest +++ b/net-libs/libaxc/Manifest @@ -1,2 +1,3 @@ DIST libaxc-0.3.4.tar.gz 40198 BLAKE2B 78fc122eefbc5c6173bdad5cf31734cf95b750c09bddede5b2656a88bede3d6c25fb22af5447681c58eb1f296ee326480e22aacb843d951f1bd7a6933155432a SHA512 7b6b5466ee89d78d3c3a2e7cf961dfb3310bff01947e69e906c83ff97e89d1bdc0e2e92f7bd0d4b48a97af91409f435a4fd869229af5b67b2f66ba464bbfd7b8 DIST libaxc-0.3.5.tar.gz 40418 BLAKE2B bcafe30c295fb6c5bd075cc7ecb9b81dcb094301a65d51ec7bcff82159c4fecdc6a4a64530e81c429803c8e267c3d6f6ccede8b5fda7d920af1c10c3806d66f0 SHA512 7708c136dfd57cc799ac467bea010ddbdcfe78a4cdae3c5882f97de7674e38e5f183f94fd42dd2df74dfec451f1822ef43122321aca46c042d5355b74e128694 +DIST libaxc-0.3.6.tar.gz 40488 BLAKE2B e59d73e0011b11c0e594297d15353f0e7c378c5ce29c2f747f0a10f7ac302abbe8a0e6f3cad37a652a5a4763d15f393e2cbd7272c4249883c0c99640d18ab518 SHA512 0e02282e42597eaf641fcd620c103c4892b26120f9aec442ce61b99e2a5042d62213bed7786aede296e1024fea26ef9a21950d96a9a520ca6a5d5c524620f42d diff --git a/net-libs/libaxc/libaxc-0.3.6.ebuild b/net-libs/libaxc/libaxc-0.3.6.ebuild new file mode 100644 index 00000000000..b5901be4efd --- /dev/null +++ b/net-libs/libaxc/libaxc-0.3.6.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_P="axc-${PV}" +DESCRIPTION="Client library for libsignal-protocol-c" +HOMEPAGE="https://github.com/gkdr/axc" +SRC_URI="https://github.com/gkdr/axc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" # not GPL-3+ +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs test" + +RDEPEND=" + dev-db/sqlite + dev-libs/glib + dev-libs/libgcrypt + net-libs/libsignal-protocol-c + " +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + test? ( dev-util/cmocka ) + " + +S="${WORKDIR}"/${MY_P} +RESTRICT="!test? ( test )" + +DOCS=( CHANGELOG.md README.md ) + +src_prepare() { + rm -R lib || die # unbundle libsignal-protocol-c + default +} + +src_compile() { + local make_args=( + PREFIX=/usr + + AR="$(tc-getAR)" + CC="$(tc-getCC)" + PKG_CONFIG="$(tc-getPKG_CONFIG)" + ) + emake "${make_args[@]}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + + # Respect libdir other than /usr/lib, e.g. /usr/lib64 + local libdir="$(get_libdir)" + if [[ ${libdir} != lib ]]; then + mv "${D}"/usr/{lib,${libdir}} || die + sed "s|^libdir=.*|libdir=\${prefix}/${libdir}|" \ + -i "${D}/usr/${libdir}/pkgconfig/libaxc.pc" || die + fi + + einstalldocs + + if ! use static-libs ; then + rm "${D}/usr/${libdir}/libaxc.a" || die + fi +} + +src_test() { + emake -j1 test +}