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 7A6B7138336 for ; Fri, 20 Dec 2019 05:46:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9CCFE08C3; Fri, 20 Dec 2019 05:46:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 58A5EE08AC for ; Fri, 20 Dec 2019 05:46:03 +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 9708234D808 for ; Fri, 20 Dec 2019 05:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 502CA986 for ; Fri, 20 Dec 2019 05:45:59 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1576820707.0a97bed539cc8f61dbdbda86214a5f0d84cc84ff.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/criterion/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/criterion/Manifest dev-libs/criterion/criterion-2.3.3.ebuild dev-libs/criterion/metadata.xml X-VCS-Directories: dev-libs/criterion/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 0a97bed539cc8f61dbdbda86214a5f0d84cc84ff X-VCS-Branch: master Date: Fri, 20 Dec 2019 05:45:59 +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: b833dbc4-77ad-4dad-80b2-f9e81aecaa4b X-Archives-Hash: 2057ae90246b4a3358d1d4f6d826ba31 commit: 0a97bed539cc8f61dbdbda86214a5f0d84cc84ff Author: Tomas Mozes gmail com> AuthorDate: Thu Dec 19 15:05:39 2019 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Dec 20 05:45:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a97bed5 dev-libs/criterion: add new package Needed for app-admin/syslog-ng tests Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Tomáš Mózes gmail.com> Signed-off-by: Joonas Niilola gentoo.org> dev-libs/criterion/Manifest | 1 + dev-libs/criterion/criterion-2.3.3.ebuild | 54 +++++++++++++++++++++++++++++++ dev-libs/criterion/metadata.xml | 15 +++++++++ 3 files changed, 70 insertions(+) diff --git a/dev-libs/criterion/Manifest b/dev-libs/criterion/Manifest new file mode 100644 index 00000000000..4b651b0aa21 --- /dev/null +++ b/dev-libs/criterion/Manifest @@ -0,0 +1 @@ +DIST criterion-v2.3.3.tar.bz2 1821413 BLAKE2B 7972bf03870ae07da57252f7d62f3f5818755ad9ea2a0bed7b73d42649fbf5069c1a9af16bd8da9366d0506bbc86ec93a12904809bf91e36618d53f5d8674c18 SHA512 bf53716ff90421a42dd4d1bbd61451a4183aa6436af901c222e43e9e9b3e008008a891157a1c982b80c04e7e68aadc287392503094a3c4ad9c2066432d548e16 diff --git a/dev-libs/criterion/criterion-2.3.3.ebuild b/dev-libs/criterion/criterion-2.3.3.ebuild new file mode 100644 index 00000000000..ffb7d5c2202 --- /dev/null +++ b/dev-libs/criterion/criterion-2.3.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake-utils + +DESCRIPTION="Cross platform unit testing framework for C and C++" +HOMEPAGE="https://github.com/Snaipe/Criterion" +SRC_URI="https://github.com/Snaipe/Criterion/releases/download/v${PV}/${PN}-v${PV}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +REPEND="dev-libs/nanomsg:=" +DDEPEND="${DEPEND} + test? ( dev-util/cram )" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${PN}-v${PV}" + +QA_EXECSTACK="usr/lib*/libcriterion.so*" + +src_configure() { + local mycmakeargs=( + -DCTESTS="$(usex test ON OFF)" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use test; then + cmake-utils_src_make criterion_tests + fi +} + +src_install() { + cmake-utils_src_install + + if [[ "/usr/lib" != "/usr/$(get_libdir)" ]]; then + mkdir -p "${D}/usr/$(get_libdir)" || die + mv "${D}"/usr/lib/libcriterion.so* "${D}/usr/$(get_libdir)/" || die + fi + + sed -i "s@${prefix}/lib@${prefix}/$(get_libdir)@g" \ + "${D}/usr/share/pkgconfig/criterion.pc" || die +} diff --git a/dev-libs/criterion/metadata.xml b/dev-libs/criterion/metadata.xml new file mode 100644 index 00000000000..5df5b286363 --- /dev/null +++ b/dev-libs/criterion/metadata.xml @@ -0,0 +1,15 @@ + + + + + hydrapolic@gmail.com + Tomáš Mózes + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Snaipe/Criterion + +