Browse Source

Add ebuilds for TEOS-10 GSW Oceanographic Toolbox in C

master
Michael Uleysky 4 years ago
parent
commit
19bfb92d68
  1. 8
      sci-geosciences/gsw-c/files/CMakeLists.txt
  2. 36
      sci-geosciences/gsw-c/gsw-c-3.05.0.4.ebuild
  3. 36
      sci-geosciences/gsw-c/gsw-c-9999.ebuild
  4. 15
      sci-geosciences/gsw-c/metadata.xml

8
sci-geosciences/gsw-c/files/CMakeLists.txt

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.0)
project(gswteos-10)
add_library(gswteos-10 SHARED gsw_saar.c gsw_oceanographic_toolbox.c)
install(TARGETS gswteos-10 DESTINATION lib)
install(FILES gswteos-10.h DESTINATION include)

36
sci-geosciences/gsw-c/gsw-c-3.05.0.4.ebuild

@ -0,0 +1,36 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="TEOS-10 GSW Oceanographic Toolbox in C"
HOMEPAGE="https://github.com/TEOS-10/GSW-C"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/TEOS-10/GSW-C.git"
INHERIT_GIT="git-r3"
MY_P="${P}"
else
MY_PV=$(ver_rs 3 '-')
INHERIT_GIT=""
SRC_URI="https://github.com/TEOS-10/GSW-C/archive/${MY_PV}.tar.gz -> GSW-C-${MY_PV}.tar.gz"
S="${WORKDIR}/GSW-C-${MY_PV}"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
fi
inherit cmake-utils ${INHERIT_GIT}
LICENSE="Artistic"
SLOT="0"
RDEPEND=""
DEPEND="${RDEPEND}"
src_prepare() {
cp "${FILESDIR}"/CMakeLists.txt "${S}" || die
sed \
-e "/DESTINATION/s:lib:$(get_libdir):g" \
-e "/INSTALL/s:lib:$(get_libdir):g" \
-i CMakeLists.txt || die
cmake-utils_src_prepare
}

36
sci-geosciences/gsw-c/gsw-c-9999.ebuild

@ -0,0 +1,36 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="TEOS-10 GSW Oceanographic Toolbox in C"
HOMEPAGE="https://github.com/TEOS-10/GSW-C"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/TEOS-10/GSW-C.git"
INHERIT_GIT="git-r3"
MY_P="${P}"
else
MY_PV=$(ver_rs 3 '-')
INHERIT_GIT=""
SRC_URI="https://github.com/TEOS-10/GSW-C/archive/${MY_PV}.tar.gz -> GSW-C-${MY_PV}.tar.gz"
S="${WORKDIR}/GSW-C-${MY_PV}"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
fi
inherit cmake-utils ${INHERIT_GIT}
LICENSE="Artistic"
SLOT="0"
RDEPEND=""
DEPEND="${RDEPEND}"
src_prepare() {
cp "${FILESDIR}"/CMakeLists.txt "${S}" || die
sed \
-e "/DESTINATION/s:lib:$(get_libdir):g" \
-e "/INSTALL/s:lib:$(get_libdir):g" \
-i CMakeLists.txt || die
cmake-utils_src_prepare
}

15
sci-geosciences/gsw-c/metadata.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>uleysky@gmail.com</email>
<name>Michael Uleysky</name>
</maintainer>
<longdescription lang="en">
The Gibbs-SeaWater (GSW) Oceanographic Toolbox contains the TEOS-10 subroutines for evaluating
the thermodynamic properties of pure water (using IAPWS-09) and seawater (using IAPWS-08 for
the saline part). The GSW library does not provide properties of ice or moist air (these
properties can be found in the SIA library). This GSW Oceanographic Toolbox does not adhere
to strict basic-SI units but rather oceanographic units are adopted.
</longdescription>
</pkgmetadata>
Loading…
Cancel
Save