1 |
commit: c8a29b1ed68d7e9cf3af6b55f55275515d719c4f |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 1 04:00:25 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 1 04:35:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c8a29b1e |
7 |
|
8 |
media-libs/implicitmesher: initial commit of 0_p20191111 |
9 |
|
10 |
This is included as a dependency of sci-physics/opticks. |
11 |
|
12 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
13 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
14 |
|
15 |
.../files/implicitmesher-0_glm.patch | 34 ++++++++++++++++++++++ |
16 |
.../implicitmesher-0_p20191111.ebuild | 29 ++++++++++++++++++ |
17 |
media-libs/implicitmesher/metadata.xml | 7 +++++ |
18 |
3 files changed, 70 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/implicitmesher/files/implicitmesher-0_glm.patch b/media-libs/implicitmesher/files/implicitmesher-0_glm.patch |
21 |
new file mode 100644 |
22 |
index 000000000..c3707e210 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/implicitmesher/files/implicitmesher-0_glm.patch |
25 |
@@ -0,0 +1,34 @@ |
26 |
+Index: implicitmesher-0_p20191111/CMakeLists.txt |
27 |
+=================================================================== |
28 |
+--- implicitmesher-0_p20191111.orig/CMakeLists.txt |
29 |
++++ implicitmesher-0_p20191111/CMakeLists.txt |
30 |
+@@ -3,19 +3,12 @@ set(name ImplicitMesher) |
31 |
+ project(${name} VERSION 0.1.0) |
32 |
+ |
33 |
+ include(CTest) |
34 |
+-include(OpticksBuildOptions) |
35 |
+- |
36 |
+-include(GNUInstallDirs) |
37 |
+-set(CMAKE_INSTALL_INCLUDEDIR "externals/include/${name}") |
38 |
+-set(CMAKE_INSTALL_LIBDIR "externals/lib") |
39 |
+-set(CMAKE_INSTALL_BINDIR "lib") |
40 |
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}") |
41 |
+ |
42 |
+ find_package(BCM REQUIRED) |
43 |
+ include(BCMDeploy) |
44 |
+ #include(EchoTarget) |
45 |
+ |
46 |
+-find_package(GLM REQUIRED) |
47 |
++find_package(glm REQUIRED) |
48 |
+ |
49 |
+ set(SOURCES |
50 |
+ |
51 |
+@@ -45,7 +38,7 @@ set(HEADERS |
52 |
+ ) |
53 |
+ |
54 |
+ add_library(${name} SHARED ${SOURCES}) |
55 |
+-target_link_libraries(${name} PUBLIC Opticks::GLM) |
56 |
++target_link_libraries(${name} PUBLIC glm) |
57 |
+ |
58 |
+ # needed for tests that use non-installed headers |
59 |
+ target_include_directories(${name} PUBLIC |
60 |
|
61 |
diff --git a/media-libs/implicitmesher/implicitmesher-0_p20191111.ebuild b/media-libs/implicitmesher/implicitmesher-0_p20191111.ebuild |
62 |
new file mode 100644 |
63 |
index 000000000..92156267e |
64 |
--- /dev/null |
65 |
+++ b/media-libs/implicitmesher/implicitmesher-0_p20191111.ebuild |
66 |
@@ -0,0 +1,29 @@ |
67 |
+# Copyright 1999-2019 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=7 |
71 |
+ |
72 |
+inherit mercurial cmake-utils |
73 |
+ |
74 |
+EHG_REPO_URI="https://bitbucket.org/simoncblyth/${PN}" |
75 |
+EHG_REVISION="a087394946d788bfd35a20b4b07909fa62f76a7a" |
76 |
+ |
77 |
+DESCRIPTION="Real-time implicit surface polygonization" |
78 |
+HOMEPAGE="https://bitbucket.org/simoncblyth/implicitmesher" |
79 |
+ |
80 |
+LICENSE="GPL-3" |
81 |
+SLOT="0" |
82 |
+KEYWORDS="~amd64" |
83 |
+ |
84 |
+RDEPEND="media-libs/glm" |
85 |
+DEPEND="${RDEPEND}" |
86 |
+ |
87 |
+PATCHES=( "${FILESDIR}"/implicitmesher-0_glm.patch ) |
88 |
+ |
89 |
+src_configure() { |
90 |
+ local mycmakeargs=( |
91 |
+ -DCMAKE_INSTALL_INCLUDEDIR=include/ImplicitMesher |
92 |
+ ) |
93 |
+ |
94 |
+ cmake-utils_src_configure |
95 |
+} |
96 |
|
97 |
diff --git a/media-libs/implicitmesher/metadata.xml b/media-libs/implicitmesher/metadata.xml |
98 |
new file mode 100644 |
99 |
index 000000000..7203fb853 |
100 |
--- /dev/null |
101 |
+++ b/media-libs/implicitmesher/metadata.xml |
102 |
@@ -0,0 +1,7 @@ |
103 |
+<?xml version="1.0" encoding="UTF-8"?> |
104 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
105 |
+<pkgmetadata> |
106 |
+ <maintainer type="person"> |
107 |
+ <email>heroxbd@g.o</email> |
108 |
+ </maintainer> |
109 |
+</pkgmetadata> |