Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/alembic/, media-gfx/alembic/files/
Date: Tue, 04 May 2021 22:03:02
Message-Id: 1620165694.47b69a1658ffcb36fcc019efd112d0fa3a948b3a.sam@gentoo
1 commit: 47b69a1658ffcb36fcc019efd112d0fa3a948b3a
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Fri Apr 23 16:07:03 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 22:01:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47b69a16
7
8 media-gfx/alembic: bump to 1.8.0
9
10 Closes: https://bugs.gentoo.org/783843
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
13 Closes: https://github.com/gentoo/gentoo/pull/20515
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 media-gfx/alembic/Manifest | 1 +
17 media-gfx/alembic/alembic-1.8.0.ebuild | 52 ++++++++++++++++++++
18 .../alembic-1.8.0-0001-set-correct-libdir.patch | 57 ++++++++++++++++++++++
19 3 files changed, 110 insertions(+)
20
21 diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest
22 index 6b21cc8ad5b..99b7d902ae5 100644
23 --- a/media-gfx/alembic/Manifest
24 +++ b/media-gfx/alembic/Manifest
25 @@ -1 +1,2 @@
26 DIST alembic-1.7.16.tar.gz 855709 BLAKE2B 8009ed199b7dca190e40f56969d7c446e65bd78f58cee75dda4883ecf02b6c7ee422db76c4f523a76a4b2d42ef1547ededf5de0055cdb5d801c5cd4918a0b5f4 SHA512 bd4777dc4abf15bfb8307b00fd2d67671e89944d0dd8a74a657f4aee49e6a1cd0ab1fe5bb7f9afc63abcce2123466bb8a9a3886d41724ed2c242bc61d7d5b3a1
27 +DIST alembic-1.8.0.tar.gz 860886 BLAKE2B eccb1c74e90094a9b473ecb66260714a519110c20b18248c4fc5ecff5edf2b424b303764f80ee76333e588e85a92499d75a8104b972ccd142cc26532fd89df30 SHA512 23fc881863741f7fd081342f5c53c1ec3d00ab300ba8cd10e4a659ee820a9ed1244cf7cf2fd40482f6be32b9d7df44128363246e942bd03c802f3a2a81533b57
28
29 diff --git a/media-gfx/alembic/alembic-1.8.0.ebuild b/media-gfx/alembic/alembic-1.8.0.ebuild
30 new file mode 100644
31 index 00000000000..dedaae796d0
32 --- /dev/null
33 +++ b/media-gfx/alembic/alembic-1.8.0.ebuild
34 @@ -0,0 +1,52 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit cmake
41 +
42 +DESCRIPTION="Open framework for storing and sharing scene data"
43 +HOMEPAGE="https://www.alembic.io/"
44 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +LICENSE="BSD"
46 +
47 +SLOT="0"
48 +# arm{,64} either pyilmbase needs to be keyworded or imath merged and keyworded
49 +# to re-add python / pyalembic support
50 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
51 +IUSE="examples hdf5 test"
52 +RESTRICT="!test? ( test )"
53 +
54 +# TODO: once imath has been merge, switch to use imath instead
55 +# of ilmbase
56 +RDEPEND="
57 + >=media-libs/ilmbase-2.5.5:=
58 + hdf5? (
59 + >=sci-libs/hdf5-1.10.2:=[zlib(+)]
60 + >=sys-libs/zlib-1.2.11-r1
61 + )
62 +"
63 +DEPEND="${RDEPEND}"
64 +
65 +DOCS=( ACKNOWLEDGEMENTS.txt FEEDBACK.txt NEWS.txt README.txt )
66 +
67 +PATCHES=( "${FILESDIR}/${P}-0001-set-correct-libdir.patch" )
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + -DALEMBIC_BUILD_LIBS=ON
72 + -DALEMBIC_SHARED_LIBS=ON
73 + -DDOCS_PATH=OFF # currently does nothing but require doxygen
74 + -DUSE_ARNOLD=OFF
75 + -DUSE_BINARIES=ON
76 + -DUSE_EXAMPLES=$(usex examples)
77 + -DUSE_HDF5=$(usex hdf5)
78 + -DUSE_MAYA=OFF
79 + -DUSE_PRMAN=OFF
80 + # TODO: needs imath merged and keyworded for arm{,64}
81 + -DUSE_PYALEMBIC=OFF
82 + -DUSE_TESTS=$(usex test)
83 + )
84 +
85 + cmake_src_configure
86 +}
87
88 diff --git a/media-gfx/alembic/files/alembic-1.8.0-0001-set-correct-libdir.patch b/media-gfx/alembic/files/alembic-1.8.0-0001-set-correct-libdir.patch
89 new file mode 100644
90 index 00000000000..3216e38d238
91 --- /dev/null
92 +++ b/media-gfx/alembic/files/alembic-1.8.0-0001-set-correct-libdir.patch
93 @@ -0,0 +1,57 @@
94 +From 9e877b10c05e9482ef00bda99033508cc64211fd Mon Sep 17 00:00:00 2001
95 +From: Bernd Waibel <waebbl-gentoo@××××××.net>
96 +Date: Fri, 23 Apr 2021 15:20:15 +0200
97 +Subject: [PATCH] set correct libdir
98 +
99 +Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net>
100 +---
101 + CMakeLists.txt | 8 ++++----
102 + lib/Alembic/CMakeLists.txt | 4 ++--
103 + 2 files changed, 6 insertions(+), 6 deletions(-)
104 +
105 +diff --git a/CMakeLists.txt b/CMakeLists.txt
106 +index 69fff1e..97d1e2d 100644
107 +--- a/CMakeLists.txt
108 ++++ b/CMakeLists.txt
109 +@@ -73,12 +73,12 @@ option(DOCS_PATH
110 +
111 + # Set static/dynamic build options
112 + SET(LIB_TYPE STATIC)
113 +-SET(RUNTIME_INSTALL_DIR lib)
114 +-SET(LIBRARY_INSTALL_DIR lib)
115 +-SET(ARCHIVE_INSTALL_DIR lib)
116 ++SET(RUNTIME_INSTALL_DIR lib${LIB_SUFFIX})
117 ++SET(LIBRARY_INSTALL_DIR lib${LIB_SUFFIX})
118 ++SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX})
119 + IF (ALEMBIC_SHARED_LIBS)
120 + SET(LIB_TYPE SHARED)
121 +- SET(ARCHIVE_INSTALL_DIR lib)
122 ++ SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX})
123 + IF (WIN32)
124 + ADD_DEFINITIONS(-DALEMBIC_DLL)
125 + ENDIF()
126 +diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt
127 +index 20acfed..9859bbe 100644
128 +--- a/lib/Alembic/CMakeLists.txt
129 ++++ b/lib/Alembic/CMakeLists.txt
130 +@@ -78,7 +78,7 @@ TARGET_LINK_LIBRARIES(Alembic
131 + ${ZLIB_LIBRARY}
132 + )
133 +
134 +-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs")
135 ++SET( ALEMBIC_LIB_INSTALL_DIR lib${LIB_SUFFIX} CACHE PATH "Where to install the Alembic libs")
136 + INSTALL(TARGETS Alembic
137 + EXPORT AlembicTargets
138 + LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
139 +@@ -91,7 +91,7 @@ INSTALL(TARGETS Alembic
140 +
141 + set(alembic_targets_file "${PROJECT_NAME}Targets.cmake")
142 +
143 +-SET(ConfigPackageLocation lib/cmake/Alembic CACHE PATH
144 ++SET(ConfigPackageLocation lib${LIB_SUFFIX}/cmake/Alembic CACHE PATH
145 + "Where to install the Alembic's cmake files")
146 +
147 + INCLUDE(CMakePackageConfigHelpers)
148 +--
149 +2.31.1
150 +