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 68D1813835A for ; Sun, 14 Mar 2021 08:41:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E66CE08DD; Sun, 14 Mar 2021 08:41:17 +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 61559E08DD for ; Sun, 14 Mar 2021 08:41:17 +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 4561D33BF11 for ; Sun, 14 Mar 2021 08:41:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A557959D for ; Sun, 14 Mar 2021 08:41:14 +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: <1615711265.912dfd38e9a2a55f289804a23b083c5b03577064.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lib3mf/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/lib3mf/Manifest media-libs/lib3mf/lib3mf-2.1.1.ebuild X-VCS-Directories: media-libs/lib3mf/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 912dfd38e9a2a55f289804a23b083c5b03577064 X-VCS-Branch: master Date: Sun, 14 Mar 2021 08:41:14 +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: 35dc2a2b-315b-4f8a-af46-9b8d9673b4cd X-Archives-Hash: 2f78bcd2e1c318bb3ca9d67f45f19f17 commit: 912dfd38e9a2a55f289804a23b083c5b03577064 Author: Bernd Waibel posteo net> AuthorDate: Fri Mar 12 21:37:58 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Mar 14 08:41:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=912dfd38 media-libs/lib3mf: bump to 2.1.1 Vulnerability fix (CVE-2021-21772) Bug: https://bugs.gentoo.org/775362 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Bernd Waibel posteo.net> Signed-off-by: Joonas Niilola gentoo.org> media-libs/lib3mf/Manifest | 1 + media-libs/lib3mf/lib3mf-2.1.1.ebuild | 67 +++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/media-libs/lib3mf/Manifest b/media-libs/lib3mf/Manifest index af5345d038a..8c637f54738 100644 --- a/media-libs/lib3mf/Manifest +++ b/media-libs/lib3mf/Manifest @@ -1,2 +1,3 @@ DIST lib3mf-1.8.1.tar.gz 8415939 BLAKE2B 45652aab8c84eb5d500455db211eb911c6e74decf4fbbb652976847e1b3ea16db9c626bd37cd9669aefc8dea29c424e6518e0517e8f96fa6282771e34f840290 SHA512 f7fd75bcb6472de1595a018e5add516d0d78ab0aee92462b686b77f8d2bef05270e7b737cb7e1d31fc5850815056e753874c2f9ec456a455e8461c4010fe914a DIST lib3mf-2.1.0.tar.gz 15882048 BLAKE2B 9466e1fd30d82600dcc52f61709c1430ae3c129358225162a343ec0d7f489e14572882a9c5239ccd63ea66ee7faec1563fa5aa0e788f28d18ad96db0ae7b9f36 SHA512 05f92da9cbbac279baf33fe3a7ce43ff7faad987c4ba08120094406e1a8f9bab2330b47822fa0a84d1558be9c829f3e805782a46ed85b706e7f85cb861d0d4f5 +DIST lib3mf-2.1.1.tar.gz 15917671 BLAKE2B eacf066147d5c4e15f79d374a377b5ef3b4bc8b4db20ca29e95df5cded11420874ab2df8b5bc48d4a47bbbb6bcb28390e72dae422ad43d5df4d1fd0cd4ed4878 SHA512 43b1091721e994adfa8390ed6542dc207b62dee278d8747fcca044692a72123c3445d4e7795d5476d15bb535fd1a3ce1da2c2796ab8edb28eb66528778fec846 diff --git a/media-libs/lib3mf/lib3mf-2.1.1.ebuild b/media-libs/lib3mf/lib3mf-2.1.1.ebuild new file mode 100644 index 00000000000..e6fa7ddca77 --- /dev/null +++ b/media-libs/lib3mf/lib3mf-2.1.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake eapi8-dosym + +DESCRIPTION="Implementation of the 3D Manufacturing Format file standard" +HOMEPAGE="https://3mf.io/" +SRC_URI="https://github.com/3MFConsortium/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/2" +# the included ACT binary is a statically x86_64 built one +# see https://github.com/3MFConsortium/lib3mf/issues/199 +# no package available for ACT yet in Gentoo. +# Keywords x86 and arm64 can be re-added after we have a package +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libzip:= + sys-apps/util-linux + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-cpp/gtest + dev-libs/openssl + dev-util/valgrind + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0-0001-Gentoo-specific-avoid-pre-stripping-library.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_INCLUDEDIR="include/${PN}" + -DLIB3MF_TESTS=$(usex test) + -DUSE_INCLUDED_LIBZIP=OFF + -DUSE_INCLUDED_ZLIB=OFF + ) + + if use test; then + mycmakeargs+=( + -DUSE_INCLUDED_GTEST=OFF + # code says it uses libressl, but works with openssl too + -DUSE_INCLUDED_SSL=OFF + ) + fi + + cmake_src_configure +} + +src_install() { + local DOCS=( CONTRIBUTING.md README.md ) + cmake_src_install + + for suf in abi types implicit; do + dosym8 -r /usr/include/${PN}/Bindings/Cpp/${PN}_${suf}.hpp /usr/include/${PN}/${PN}_${suf}.hpp + done +}