Gentoo Archives: gentoo-commits

From: Slawek Lis <slis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/assimp/, media-libs/assimp/files/
Date: Mon, 26 Sep 2016 06:14:16
Message-Id: 1474869988.4053dbec8127eec2d8062731f08a020ffd0c5661.slis@gentoo
1 commit: 4053dbec8127eec2d8062731f08a020ffd0c5661
2 Author: Slawomir Lis <slis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 06:06:28 2016 +0000
4 Commit: Slawek Lis <slis <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 06:06:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4053dbec
7
8 media-libs/assimp: patch that fixes Findassimp cmake module path
9
10 In default assimp installation there are hardcoded paths for /usr/local/lib
11 Reported in bug 595066
12
13 Reported-By: Patrick Nicolas <patricknicolas <AT> laposte.net>
14
15 Package-Manager: portage-2.3.1
16
17 media-libs/assimp/assimp-3.3.1.ebuild | 5 +++++
18 media-libs/assimp/files/findassimp-3.3.1.patch | 25 +++++++++++++++++++++++++
19 2 files changed, 30 insertions(+)
20
21 diff --git a/media-libs/assimp/assimp-3.3.1.ebuild b/media-libs/assimp/assimp-3.3.1.ebuild
22 index 02d5f95..823efd8 100644
23 --- a/media-libs/assimp/assimp-3.3.1.ebuild
24 +++ b/media-libs/assimp/assimp-3.3.1.ebuild
25 @@ -24,6 +24,11 @@ DEPEND="${RDEPEND}
26 test? ( dev-cpp/gtest )
27 "
28
29 +src_prepare() {
30 + eapply "${FILESDIR}/findassimp-${PV}.patch"
31 + eapply_user
32 +}
33 +
34 src_configure() {
35 mycmakeargs=(
36 -DASSIMP_BUILD_SAMPLES=$(usex samples) \
37
38 diff --git a/media-libs/assimp/files/findassimp-3.3.1.patch b/media-libs/assimp/files/findassimp-3.3.1.patch
39 new file mode 100644
40 index 00000000..0f36faf
41 --- /dev/null
42 +++ b/media-libs/assimp/files/findassimp-3.3.1.patch
43 @@ -0,0 +1,25 @@
44 +--- a/cmake-modules/Findassimp.cmake 2016-09-26 07:52:09.719727490 +0200
45 ++++ b/cmake-modules/Findassimp.cmake 2016-09-26 07:52:28.509727838 +0200
46 +@@ -55,13 +55,13 @@
47 + find_path(
48 + assimp_INCLUDE_DIRS
49 + NAMES postprocess.h scene.h version.h config.h cimport.h
50 +- PATHS /usr/local/include/
51 ++ PATHS /usr/include/
52 + )
53 +
54 + find_library(
55 + assimp_LIBRARIES
56 + NAMES assimp
57 +- PATHS /usr/local/lib/
58 ++ PATHS /usr/lib/
59 + )
60 +
61 + if (assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
62 +@@ -78,4 +78,4 @@
63 + endif (assimp_FIND_REQUIRED)
64 + endif (assimp_FOUND)
65 +
66 +-endif(WIN32)
67 +\ Brak znaku nowej linii na końcu pliku
68 ++endif(WIN32)