Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/gismo/, sci-mathematics/gismo/files/
Date: Tue, 28 Feb 2017 20:06:01
Message-Id: 1488310578.ebd458594375d36d0906106d234240ab5f496724.jlec@gentoo
1 commit: ebd458594375d36d0906106d234240ab5f496724
2 Author: Harald Weiner <timeraider4u <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Tue Feb 28 19:36:18 2017 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 19:36:18 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ebd45859
7
8 sci-mathematics/gismo: version bump (#743)
9
10 Package-manager: portage-2.3.3 repoman-2.3.1
11
12 sci-mathematics/gismo/files/doc-install.patch | 46 ----------------------
13 .../gismo/files/examples-CMakeLists.patch | 46 ----------------------
14 ...{gismo-0.8.1.ebuild => gismo-2017.02.16.ebuild} | 15 +++----
15 sci-mathematics/gismo/metadata.xml | 4 ++
16 4 files changed, 10 insertions(+), 101 deletions(-)
17
18 diff --git a/sci-mathematics/gismo/files/doc-install.patch b/sci-mathematics/gismo/files/doc-install.patch
19 deleted file mode 100644
20 index 6f730bd3e..000000000
21 --- a/sci-mathematics/gismo/files/doc-install.patch
22 +++ /dev/null
23 @@ -1,46 +0,0 @@
24 ---- cmake/gsInstall.cmake 2015-08-08 12:39:45.000000000 +0200
25 -+++ cmake/gsInstall.cmake 2015-10-15 19:08:34.735776106 +0200
26 -@@ -1,6 +1,15 @@
27 --## #################################################################
28 -+######################################################################
29 -+## gsIntall.cmake ---
30 -+## This file is part of the G+Smo library.
31 -+##
32 -+## Author: Angelos Mantzaflaris
33 -+## Author: Harald Weiner
34 -+## Copyright (C) 2012-2015 - RICAM-Linz.
35 -+######################################################################
36 -+
37 -+######################################################################
38 - ## Installation
39 --## #################################################################
40 -+######################################################################
41 -
42 - message (" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}")
43 -
44 -@@ -128,3 +137,25 @@
45 - message ("Configure with -DGISMO_BUILD_LIB=ON to compile the library")
46 - endif(GISMO_BUILD_LIB)
47 -
48 -+# Install docs (if available)
49 -+set(DOC_SRC_DIR "${PROJECT_BINARY_DIR}/doc/html/")
50 -+#message("DOC_SRC_DIR='${DOC_SRC_DIR}'")
51 -+
52 -+set(TMP_VERSION "${gismo_VERSION}")
53 -+string(REGEX REPLACE "[a-zA-Z]+" "" TMP_VERSION ${TMP_VERSION})
54 -+#message("TMP_VERSION='${TMP_VERSION}'")
55 -+set(DOC_INSTALL_DIR share/doc/gismo-${TMP_VERSION} CACHE PATH
56 -+ "Installation directory for documentation")
57 -+#message("DOC_INSTALL_DIR='${DOC_INSTALL_DIR}'")
58 -+
59 -+install(DIRECTORY "${DOC_SRC_DIR}"
60 -+ DESTINATION "${DOC_INSTALL_DIR}/"
61 -+ USE_SOURCE_PERMISSIONS
62 -+ OPTIONAL
63 -+ FILES_MATCHING
64 -+ PATTERN "*.css"
65 -+ PATTERN "*.html"
66 -+ PATTERN "*.js"
67 -+ PATTERN "*.jpg"
68 -+ PATTERN "*.png"
69 -+)
70
71 diff --git a/sci-mathematics/gismo/files/examples-CMakeLists.patch b/sci-mathematics/gismo/files/examples-CMakeLists.patch
72 deleted file mode 100644
73 index 980f4825c..000000000
74 --- a/sci-mathematics/gismo/files/examples-CMakeLists.patch
75 +++ /dev/null
76 @@ -1,46 +0,0 @@
77 ---- examples/CMakeLists.txt 2015-08-08 12:39:45.000000000 +0200
78 -+++ examples/CMakeLists.txt 2015-10-14 16:19:16.387637011 +0200
79 -@@ -1,7 +1,8 @@
80 - ### CMakeLists.txt ---
81 - ##
82 - ## Author: Angelos Mantzaflaris
83 --## Copyright (C) 2012 - RICAM-Linz.
84 -+## Author: Harald Weiner
85 -+## Copyright (C) 2012-2015 - RICAM-Linz.
86 - ######################################################################
87 -
88 - cmake_minimum_required(VERSION 2.8.8)
89 -@@ -11,7 +12,12 @@
90 - cmake_policy(SET CMP0048 OLD)
91 - endif()
92 -
93 --project(gismo-examples)
94 -+project(examples)
95 -+
96 -+# Add a grouping target that builds all tests this is equivalent to
97 -+# running "make" inside the tests build folder
98 -+add_custom_target(${PROJECT_NAME})
99 -+set_property(TARGET ${PROJECT_NAME} PROPERTY LABELS "${PROJECT_NAME};gismo")
100 -
101 - #find_package(gismo REQUIRED)
102 - #include_directories( ${GISMO_INCLUDE_DIRS})
103 -@@ -24,6 +30,19 @@
104 -
105 - foreach(file ${FILES})
106 - add_gismo_executable(${file})
107 -+ get_filename_component(tarname ${file} NAME_WE) # name without extension
108 -+ set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME};gismo")
109 -+ add_dependencies(${PROJECT_NAME} ${tarname})
110 -+ # install the example executables to <CMAKE_INSTALL_PREFIX>/bin/
111 -+ # message("install_bin_dir='${INSTALL_BIN_DIR}'")
112 -+ # message("targets add='${tarname}'")
113 -+ install(TARGETS ${tarname}
114 -+ DESTINATION "${INSTALL_BIN_DIR}/"
115 -+ PERMISSIONS
116 -+ OWNER_READ OWNER_WRITE OWNER_EXECUTE
117 -+ GROUP_READ GROUP_WRITE GROUP_EXECUTE
118 -+ WORLD_READ WORLD_EXECUTE
119 -+ )
120 - endforeach(file ${FILES})
121 -
122 - list(LENGTH FILES len)
123
124 diff --git a/sci-mathematics/gismo/gismo-0.8.1.ebuild b/sci-mathematics/gismo/gismo-2017.02.16.ebuild
125 similarity index 69%
126 rename from sci-mathematics/gismo/gismo-0.8.1.ebuild
127 rename to sci-mathematics/gismo/gismo-2017.02.16.ebuild
128 index 86eea9414..e3a8f1869 100644
129 --- a/sci-mathematics/gismo/gismo-0.8.1.ebuild
130 +++ b/sci-mathematics/gismo/gismo-2017.02.16.ebuild
131 @@ -1,13 +1,13 @@
132 -# Copyright 1999-2015 Gentoo Foundation
133 +# Copyright 1999-2017 Gentoo Foundation
134 # Distributed under the terms of the GNU General Public License v2
135
136 -EAPI=5
137 +EAPI=6
138
139 inherit cmake-utils eutils
140
141 DESCRIPTION='C++ library for geometric design and numerical simulation'
142 HOMEPAGE="https://gs.jku.at/gismo"
143 -SRC_URI="https://github.com/filiatra/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
144 +SRC_URI="https://timeraider4u.github.io/distfiles/files/${P}.tar.gz"
145
146 LICENSE="MPL-2.0"
147 SLOT="0"
148 @@ -19,14 +19,11 @@ IUSE="doc examples"
149 DEPEND="
150 doc? ( >=app-doc/doxygen-1.8 )"
151
152 -src_prepare() {
153 - epatch "${FILESDIR}/examples-CMakeLists.patch"
154 - epatch "${FILESDIR}/doc-install.patch"
155 -}
156 -
157 src_configure() {
158 local mycmakeargs=(
159 - $(cmake-utils_use examples GISMO_BUILD_EXAMPLES)
160 + -DGISMO_BUILD_EXAMPLES=$(usex examples)
161 + # set to same directory as the one used by einstalldocs
162 + -DDOC_INSTALL_DIR="/usr/share/doc/${PF}"
163 )
164 cmake-utils_src_configure
165 }
166
167 diff --git a/sci-mathematics/gismo/metadata.xml b/sci-mathematics/gismo/metadata.xml
168 index d9e70962e..ce39098f1 100644
169 --- a/sci-mathematics/gismo/metadata.xml
170 +++ b/sci-mathematics/gismo/metadata.xml
171 @@ -5,4 +5,8 @@
172 <email>harald.weiner@×××.at</email>
173 <name>Harald Weiner</name>
174 </maintainer>
175 + <use>
176 + <flag name="doc">Build doxygen-documentation</flag>
177 + <flag name="examples">Build examples</flag>
178 + </use>
179 </pkgmetadata>