Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: media-libs/DualContouringSample/files/, media-libs/DualContouringSample/
Date: Sun, 01 Dec 2019 04:37:24
Message-Id: 1575174926.4be0e2ffbed7ec50f59a29b1fb0c17626a59a497.heroxbd@gentoo
1 commit: 4be0e2ffbed7ec50f59a29b1fb0c17626a59a497
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 1 03:57:31 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=4be0e2ff
7
8 media-libs/DualContouringSample: 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 .../DualContouringSample-0_p20191111.ebuild | 28 ++++++++++++++++++
16 .../files/DualContouringSample-0_glm.patch | 33 ++++++++++++++++++++++
17 media-libs/DualContouringSample/metadata.xml | 7 +++++
18 3 files changed, 68 insertions(+)
19
20 diff --git a/media-libs/DualContouringSample/DualContouringSample-0_p20191111.ebuild b/media-libs/DualContouringSample/DualContouringSample-0_p20191111.ebuild
21 new file mode 100644
22 index 000000000..4caa506bb
23 --- /dev/null
24 +++ b/media-libs/DualContouringSample/DualContouringSample-0_p20191111.ebuild
25 @@ -0,0 +1,28 @@
26 +# Copyright 1999-2019 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit cmake-utils git-r3
32 +
33 +DESCRIPTION="A sample Dual Contouring implementation"
34 +HOMEPAGE="https://github.com/simoncblyth/DualContouringSample"
35 +
36 +EGIT_REPO_URI="https://github.com/simoncblyth/${PN}.git"
37 +EGIT_COMMIT="d5ed08c21228575f948292422cd8542cbdce255c"
38 +KEYWORDS="~amd64"
39 +
40 +LICENSE="GPL-3"
41 +SLOT="0"
42 +
43 +DEPEND="dev-util/bcm"
44 +
45 +PATCHES=( "${FILESDIR}"/DualContouringSample-0_glm.patch )
46 +
47 +src_configure() {
48 + local mycmakeargs=(
49 + -DCMAKE_INSTALL_INCLUDEDIR=include/${PN}
50 + )
51 +
52 + cmake-utils_src_configure
53 +}
54
55 diff --git a/media-libs/DualContouringSample/files/DualContouringSample-0_glm.patch b/media-libs/DualContouringSample/files/DualContouringSample-0_glm.patch
56 new file mode 100644
57 index 000000000..efa40b66e
58 --- /dev/null
59 +++ b/media-libs/DualContouringSample/files/DualContouringSample-0_glm.patch
60 @@ -0,0 +1,33 @@
61 +Index: DualContouringSample-0_p20191111/CMakeLists.txt
62 +===================================================================
63 +--- DualContouringSample-0_p20191111.orig/CMakeLists.txt
64 ++++ DualContouringSample-0_p20191111/CMakeLists.txt
65 +@@ -3,18 +3,11 @@ set(name DualContouringSample)
66 + project(${name} VERSION 0.1.0)
67 +
68 + include(CTest)
69 +-include(OpticksBuildOptions)
70 +-
71 +-include(GNUInstallDirs)
72 +-set(CMAKE_INSTALL_INCLUDEDIR "externals/include/${name}")
73 +-set(CMAKE_INSTALL_LIBDIR "externals/lib")
74 +-set(CMAKE_INSTALL_BINDIR "lib")
75 +-#set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
76 +
77 + find_package(BCM REQUIRED)
78 + include(BCMDeploy)
79 +
80 +-find_package(GLM REQUIRED)
81 ++find_package(glm REQUIRED)
82 +
83 +
84 + set(SOURCES
85 +@@ -37,7 +30,7 @@ set(HEADERS
86 + )
87 +
88 + add_library(${name} SHARED ${SOURCES})
89 +-target_link_libraries(${name} PUBLIC Opticks::GLM)
90 ++target_link_libraries(${name} PUBLIC glm)
91 +
92 + # needed for tests that use non-installed headers
93 + target_include_directories(${name} PUBLIC
94
95 diff --git a/media-libs/DualContouringSample/metadata.xml b/media-libs/DualContouringSample/metadata.xml
96 new file mode 100644
97 index 000000000..7203fb853
98 --- /dev/null
99 +++ b/media-libs/DualContouringSample/metadata.xml
100 @@ -0,0 +1,7 @@
101 +<?xml version="1.0" encoding="UTF-8"?>
102 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
103 +<pkgmetadata>
104 + <maintainer type="person">
105 + <email>heroxbd@g.o</email>
106 + </maintainer>
107 +</pkgmetadata>