diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2021-08-25 08:05:48 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-24 04:06:06 +0000 |
commit | c3f5d8e908b956a30e72a6b40f2c559d24a30b1e (patch) | |
tree | c5230e0237296c71f84679d6eb298b82465feaea /media-libs/lib3mf/lib3mf-2.2.0.ebuild | |
parent | dev-util/bats: bump version to 1.5.0 (diff) | |
download | gentoo-c3f5d8e908b956a30e72a6b40f2c559d24a30b1e.tar.gz gentoo-c3f5d8e908b956a30e72a6b40f2c559d24a30b1e.tar.bz2 gentoo-c3f5d8e908b956a30e72a6b40f2c559d24a30b1e.zip |
media-libs/lib3mf: bump to 2.2.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/22640
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/lib3mf/lib3mf-2.2.0.ebuild')
-rw-r--r-- | media-libs/lib3mf/lib3mf-2.2.0.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/media-libs/lib3mf/lib3mf-2.2.0.ebuild b/media-libs/lib3mf/lib3mf-2.2.0.ebuild new file mode 100644 index 000000000000..d37a2212018b --- /dev/null +++ b/media-libs/lib3mf/lib3mf-2.2.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Implementation of the 3D Manufacturing Format file standard" +HOMEPAGE="https://3mf.io/ https://github.com/3MFConsortium/lib3mf" +SRC_URI="https://github.com/3MFConsortium/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/2" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+system-act test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libzip:= + sys-apps/util-linux + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + system-act? ( dev-go/act ) + test? ( + dev-cpp/gtest + dev-libs/openssl + dev-util/valgrind + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0-0001-Gentoo-specific-avoid-pre-stripping-library.patch + "${FILESDIR}"/${P}-0001-use-system-provided-act-binary.patch + "${FILESDIR}"/${P}-0002-Gentoo-specific-remove-add_dependencies.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_INCLUDEDIR="include/${PN}" + -DLIB3MF_TESTS=$(usex test) + -DUSE_INCLUDED_LIBZIP=OFF + -DUSE_INCLUDED_ZLIB=OFF + -DUSE_SYSTEM_ACT=$(usex system-act) + ) + + 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() { + cmake_src_install + + for suf in abi types implicit; do + dosym -r /usr/include/${PN}/Bindings/Cpp/${PN}_${suf}.hpp /usr/include/${PN}/${PN}_${suf}.hpp + done +} |