summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-12-28 23:28:06 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-12-28 23:44:40 +0000
commit511f04161b70047f9789197ce809ae99f83a7ff0 (patch)
tree48d9e301877ef640911ba003a1b0757532fdc237 /sci-astronomy/sofa_c
parentsci-astronomy/erfa: version bump (diff)
downloadgentoo-511f04161b70047f9789197ce809ae99f83a7ff0.tar.gz
gentoo-511f04161b70047f9789197ce809ae99f83a7ff0.tar.bz2
gentoo-511f04161b70047f9789197ce809ae99f83a7ff0.zip
sci-astronomy/sofa_c: version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sci-astronomy/sofa_c')
-rw-r--r--sci-astronomy/sofa_c/Manifest1
-rw-r--r--sci-astronomy/sofa_c/sofa_c-20160503c.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/sci-astronomy/sofa_c/Manifest b/sci-astronomy/sofa_c/Manifest
index 078a0f3e879b..87fde28ffd3b 100644
--- a/sci-astronomy/sofa_c/Manifest
+++ b/sci-astronomy/sofa_c/Manifest
@@ -1 +1,2 @@
DIST sofa_c-20150209_a.tar.gz 1685051 SHA256 b542c5e4ca42d91ada3c66e8d5b86eb9dec085bf1a07d058c01920c6c0b1174a SHA512 45524228db30c388315ce76c1d85db422fac09da3c3ed1442e362a6a2b4a10d27c19ea4a2d51c854280102a99706663622e0375b4afbf096b79877e7602fec4c WHIRLPOOL f4b084145cb3b9c2d722885ed89d2b8298d8fa4a21da25778852d76d20342331c3e7e2c6e28b3d0df04bc9bdf6fc921fe0e60f545ca91dcf69fe86316252006f
+DIST sofa_c-20160503_c.tar.gz 1720164 SHA256 202608f75ae51b03fad5599d6efd7226f0c5073f9b409a82fddc7e841f165e16 SHA512 d21f02d0669a8707e8b2d34be4f30b4acc222b4155e7b4e4f9fc54bbabf1edc99b49e66619581bc3427eff8ed1d26668aae86af73f63a5fd21eb73f3339e0f26 WHIRLPOOL b4b276cbed394f423eb945fd95a3de27643e445ed58c90f3dd6d8512a469f775b2c0804a2a2bf9c4807d301bcb2714b5eaa961298787d5d3a6aadf1e43809b1b
diff --git a/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild b/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild
new file mode 100644
index 000000000000..745e93293ba9
--- /dev/null
+++ b/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+YYYY=${PV:0:4}
+MMDD=${PV:4:4}
+MYPV=${YYYY}${MMDD}_${PV:8:1}
+
+DESCRIPTION="Library for algorithms for models in fundamental astronomy"
+HOMEPAGE=" http://www.iausofa.org/current_C.html"
+SRC_URI="http://www.iausofa.org/${YYYY}_${MMDD}_C/${PN}-${MYPV}.tar.gz"
+
+LICENSE="SOFA"
+SLOT=0
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=""
+DEPEND=""
+
+PATCHES=( "${FILESDIR}"/${PN}-makefile.patch )
+
+S="${WORKDIR}/sofa/${MYPV}/c/src"
+
+src_prepare() {
+ default
+ sed -i -e "s:/lib:/$(get_libdir):" makefile || die
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ cd ..
+ dodoc 00READ.ME
+ use doc && dodoc doc/*.lis doc/*.pdf
+}