Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/sofa_c/
Date: Wed, 28 Dec 2016 23:44:57
Message-Id: 1482968680.511f04161b70047f9789197ce809ae99f83a7ff0.bicatali@gentoo
1 commit: 511f04161b70047f9789197ce809ae99f83a7ff0
2 Author: S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 23:28:06 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 23:44:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=511f0416
7
8 sci-astronomy/sofa_c: version bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 sci-astronomy/sofa_c/Manifest | 1 +
13 sci-astronomy/sofa_c/sofa_c-20160503c.ebuild | 40 ++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/sci-astronomy/sofa_c/Manifest b/sci-astronomy/sofa_c/Manifest
17 index 078a0f3..87fde28 100644
18 --- a/sci-astronomy/sofa_c/Manifest
19 +++ b/sci-astronomy/sofa_c/Manifest
20 @@ -1 +1,2 @@
21 DIST sofa_c-20150209_a.tar.gz 1685051 SHA256 b542c5e4ca42d91ada3c66e8d5b86eb9dec085bf1a07d058c01920c6c0b1174a SHA512 45524228db30c388315ce76c1d85db422fac09da3c3ed1442e362a6a2b4a10d27c19ea4a2d51c854280102a99706663622e0375b4afbf096b79877e7602fec4c WHIRLPOOL f4b084145cb3b9c2d722885ed89d2b8298d8fa4a21da25778852d76d20342331c3e7e2c6e28b3d0df04bc9bdf6fc921fe0e60f545ca91dcf69fe86316252006f
22 +DIST sofa_c-20160503_c.tar.gz 1720164 SHA256 202608f75ae51b03fad5599d6efd7226f0c5073f9b409a82fddc7e841f165e16 SHA512 d21f02d0669a8707e8b2d34be4f30b4acc222b4155e7b4e4f9fc54bbabf1edc99b49e66619581bc3427eff8ed1d26668aae86af73f63a5fd21eb73f3339e0f26 WHIRLPOOL b4b276cbed394f423eb945fd95a3de27643e445ed58c90f3dd6d8512a469f775b2c0804a2a2bf9c4807d301bcb2714b5eaa961298787d5d3a6aadf1e43809b1b
23
24 diff --git a/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild b/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild
25 new file mode 100644
26 index 00000000..745e932
27 --- /dev/null
28 +++ b/sci-astronomy/sofa_c/sofa_c-20160503c.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +inherit toolchain-funcs
37 +
38 +YYYY=${PV:0:4}
39 +MMDD=${PV:4:4}
40 +MYPV=${YYYY}${MMDD}_${PV:8:1}
41 +
42 +DESCRIPTION="Library for algorithms for models in fundamental astronomy"
43 +HOMEPAGE=" http://www.iausofa.org/current_C.html"
44 +SRC_URI="http://www.iausofa.org/${YYYY}_${MMDD}_C/${PN}-${MYPV}.tar.gz"
45 +
46 +LICENSE="SOFA"
47 +SLOT=0
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="doc"
50 +
51 +RDEPEND=""
52 +DEPEND=""
53 +
54 +PATCHES=( "${FILESDIR}"/${PN}-makefile.patch )
55 +
56 +S="${WORKDIR}/sofa/${MYPV}/c/src"
57 +
58 +src_prepare() {
59 + default
60 + sed -i -e "s:/lib:/$(get_libdir):" makefile || die
61 + tc-export CC
62 +}
63 +
64 +src_install() {
65 + emake DESTDIR="${ED}" install
66 + cd ..
67 + dodoc 00READ.ME
68 + use doc && dodoc doc/*.lis doc/*.pdf
69 +}