* [gentoo-commits] proj/sci:master commit in: sci-mathematics/gismo/files/, sci-mathematics/gismo/
@ 2015-10-15 17:10 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2015-10-15 17:10 UTC (permalink / raw
To: gentoo-commits
commit: 300271cd1929ea46c443b25f741efca100d6c970
Author: Harald Weiner <harald.weiner <AT> jku <DOT> at>
AuthorDate: Wed Oct 14 15:38:20 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Oct 15 16:36:22 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=300271cd
added ebuild for gismo (Geometry+Simulation),
see https://gs.jku.at/gismo
feedback from science-overlay-user(s)
and more fixes
.../gismo/files/examples-CMakeLists.patch | 46 ++++++++++++++++++++++
sci-mathematics/gismo/gismo-0.8.1.ebuild | 36 +++++++++++++++++
sci-mathematics/gismo/metadata.xml | 8 ++++
3 files changed, 90 insertions(+)
diff --git a/sci-mathematics/gismo/files/examples-CMakeLists.patch b/sci-mathematics/gismo/files/examples-CMakeLists.patch
new file mode 100644
index 0000000..980f482
--- /dev/null
+++ b/sci-mathematics/gismo/files/examples-CMakeLists.patch
@@ -0,0 +1,46 @@
+--- examples/CMakeLists.txt 2015-08-08 12:39:45.000000000 +0200
++++ examples/CMakeLists.txt 2015-10-14 16:19:16.387637011 +0200
+@@ -1,7 +1,8 @@
+ ### CMakeLists.txt ---
+ ##
+ ## Author: Angelos Mantzaflaris
+-## Copyright (C) 2012 - RICAM-Linz.
++## Author: Harald Weiner
++## Copyright (C) 2012-2015 - RICAM-Linz.
+ ######################################################################
+
+ cmake_minimum_required(VERSION 2.8.8)
+@@ -11,7 +12,12 @@
+ cmake_policy(SET CMP0048 OLD)
+ endif()
+
+-project(gismo-examples)
++project(examples)
++
++# Add a grouping target that builds all tests this is equivalent to
++# running "make" inside the tests build folder
++add_custom_target(${PROJECT_NAME})
++set_property(TARGET ${PROJECT_NAME} PROPERTY LABELS "${PROJECT_NAME};gismo")
+
+ #find_package(gismo REQUIRED)
+ #include_directories( ${GISMO_INCLUDE_DIRS})
+@@ -24,6 +30,19 @@
+
+ foreach(file ${FILES})
+ add_gismo_executable(${file})
++ get_filename_component(tarname ${file} NAME_WE) # name without extension
++ set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME};gismo")
++ add_dependencies(${PROJECT_NAME} ${tarname})
++ # install the example executables to <CMAKE_INSTALL_PREFIX>/bin/
++ # message("install_bin_dir='${INSTALL_BIN_DIR}'")
++ # message("targets add='${tarname}'")
++ install(TARGETS ${tarname}
++ DESTINATION "${INSTALL_BIN_DIR}/"
++ PERMISSIONS
++ OWNER_READ OWNER_WRITE OWNER_EXECUTE
++ GROUP_READ GROUP_WRITE GROUP_EXECUTE
++ WORLD_READ WORLD_EXECUTE
++ )
+ endforeach(file ${FILES})
+
+ list(LENGTH FILES len)
diff --git a/sci-mathematics/gismo/gismo-0.8.1.ebuild b/sci-mathematics/gismo/gismo-0.8.1.ebuild
new file mode 100644
index 0000000..ff9f443
--- /dev/null
+++ b/sci-mathematics/gismo/gismo-0.8.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION='C++ library for geometric design and numerical simulation'
+HOMEPAGE="https://gs.jku.at/gismo"
+SRC_URI="https://github.com/filiatra/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+# Unbundling in progress,
+# preparing local changes to get upstream
+
+src_prepare() {
+ epatch "${FILESDIR}/examples-CMakeLists.patch"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use examples GISMO_BUILD_EXAMPLES)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ cd "${S}_build" || die "could not find cmake build folder"
+ emake doc
+}
diff --git a/sci-mathematics/gismo/metadata.xml b/sci-mathematics/gismo/metadata.xml
new file mode 100644
index 0000000..c517ec5
--- /dev/null
+++ b/sci-mathematics/gismo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>harald.weiner@jku.at</email>
+ <name>Harald Weiner</name>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-15 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 17:10 [gentoo-commits] proj/sci:master commit in: sci-mathematics/gismo/files/, sci-mathematics/gismo/ Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox