diff options
author | 2024-12-17 13:55:39 +0100 | |
---|---|---|
committer | 2025-01-05 20:33:26 +0000 | |
commit | f52e387ec3243c44746f2f7bc646c700c86c55b9 (patch) | |
tree | bfb740986aef3b45985f6b71aaffd295d5b157bd /media-libs | |
parent | media-gfx/netgen: add 6.2.2406 (diff) | |
download | gentoo-f52e387ec3243c44746f2f7bc646c700c86c55b9.tar.gz gentoo-f52e387ec3243c44746f2f7bc646c700c86c55b9.tar.bz2 gentoo-f52e387ec3243c44746f2f7bc646c700c86c55b9.zip |
media-libs/lib3mf: add 2.3.2
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/lib3mf/Manifest | 1 | ||||
-rw-r--r-- | media-libs/lib3mf/lib3mf-2.3.2.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/media-libs/lib3mf/Manifest b/media-libs/lib3mf/Manifest index be0a6fe8db35..637d297e7cfb 100644 --- a/media-libs/lib3mf/Manifest +++ b/media-libs/lib3mf/Manifest @@ -1 +1,2 @@ DIST lib3mf-2.2.0.tar.gz 16439833 BLAKE2B c98f57ea99f90625f2bfbdbcde9df8dbd8aeccc655e1bd9be165c24b2d9fb74471e4b01c816d8f665e5793db77c7bcf52016f030ec1947f908d6647e9ad12745 SHA512 2a9ee92312396b8966967a7ed696c58c69a77438f94432ad071659adc8c9d12fba34a3cf3d8c8d3ad3b26c12c9a89f4d8645e6f396987dc05b04952b004a1f07 +DIST lib3mf-2.3.2.tar.gz 35247937 BLAKE2B 8e20e44d715a2942dea8b3d08cb18593162bfd12b9f09b82b182e901f6beb76e2c88d83860c39cdd4e4c239e18f6949e9f9fd5921bc8a9d257975c54a8777e26 SHA512 875529759aff6128b32291d0719b95a75a72a3b19f98711b12c9b1076727b231668b3b14604e69bb1fec79b4725fd098f030b7e965072e566bfb061f3086279c diff --git a/media-libs/lib3mf/lib3mf-2.3.2.ebuild b/media-libs/lib3mf/lib3mf-2.3.2.ebuild new file mode 100644 index 000000000000..2bd7621d2d20 --- /dev/null +++ b/media-libs/lib3mf/lib3mf-2.3.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2025 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 ~ppc64 ~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-debug/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 + "${FILESDIR}"/${P}-0001-remove-std-and-opt-flags.patch + "${FILESDIR}"/${P}-include-cstdint.patch +) + +src_prepare() { + cmake_src_prepare + + rm -r Include/Libraries/{libzip,zlib} || die + ln -s "${EPREFIX}/usr/include" Include/Libraries/zlib || die + ln -s "${EPREFIX}/usr/include" Include/Libraries/libzip || die +} + +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 +} |