1 |
commit: f8601c9036718d6d4722694c8d36b97bd417d8d0 |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 07:02:34 2016 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 07:02:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8601c90 |
7 |
|
8 |
media-libs/assimp: install Findassimp cmake module |
9 |
|
10 |
As reported in bug 592892 there is need to install Findassimp.cmake |
11 |
file in target system |
12 |
|
13 |
Reported-by: Grygoriy I. Fuchedzhy <grygoriy.fuchedzhy <AT> gmail.com> |
14 |
|
15 |
Package-Manager: portage-2.3.0 |
16 |
|
17 |
media-libs/assimp/assimp-3.2-r3.ebuild | 55 ++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 55 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/assimp/assimp-3.2-r3.ebuild b/media-libs/assimp/assimp-3.2-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..69d5b6a |
23 |
--- /dev/null |
24 |
+++ b/media-libs/assimp/assimp-3.2-r3.ebuild |
25 |
@@ -0,0 +1,55 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=5 |
31 |
+ |
32 |
+inherit cmake-utils versionator multilib |
33 |
+ |
34 |
+DESCRIPTION="Importer library to import assets from 3D files" |
35 |
+HOMEPAGE="https://github.com/assimp/assimp" |
36 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD" |
39 |
+KEYWORDS="~amd64 ~arm ~x86" |
40 |
+IUSE="+boost samples static test tools" |
41 |
+SLOT="0" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ boost? ( dev-libs/boost ) |
45 |
+ samples? ( x11-libs/libX11 virtual/opengl media-libs/freeglut ) |
46 |
+ sys-libs/zlib |
47 |
+" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ test? ( dev-cpp/gtest ) |
50 |
+" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ epatch "${FILESDIR}/test-cmakelists.patch" |
54 |
+ epatch "${FILESDIR}/findassimp.patch" |
55 |
+} |
56 |
+ |
57 |
+src_configure() { |
58 |
+ mycmakeargs=( |
59 |
+ $(cmake-utils_use_build samples ASSIMP_SAMPLES) \ |
60 |
+ $(cmake-utils_use_build tools ASSIMP_TOOLS) \ |
61 |
+ $(cmake-utils_use_build static STATIC_LIB) \ |
62 |
+ $(cmake-utils_use_enable !boost BOOST_WORKAROUND) \ |
63 |
+ $(cmake-utils_use_build test TESTS) |
64 |
+ -DCMAKE_DEBUG_POSTFIX="" |
65 |
+ -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" |
66 |
+ ) |
67 |
+ |
68 |
+ cmake-utils_src_configure |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ cmake-utils_src_install |
73 |
+ |
74 |
+ insinto /usr/share/cmake/Modules |
75 |
+ doins cmake-modules/Findassimp.cmake |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+ "${BUILD_DIR}/test/unit" || die |
80 |
+} |