1 |
commit: 6a9a725664ad99e22b74846d102e4ac52167ec46 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 03:14:05 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 07:01:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9a7256 |
7 |
|
8 |
sci-astronomy/pal: initial import |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sci-astronomy/pal/Manifest | 1 + |
13 |
sci-astronomy/pal/metadata.xml | 14 ++++++++++++++ |
14 |
sci-astronomy/pal/pal-0.9.7.ebuild | 33 +++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/sci-astronomy/pal/Manifest b/sci-astronomy/pal/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000..68bd522 |
20 |
--- /dev/null |
21 |
+++ b/sci-astronomy/pal/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pal-0.9.7.tar.gz 1220443 SHA256 7151aa05c2e2456394cae2043feb96e64d779286fb31a27ff11ec3dd66021286 SHA512 d3f13e7ff321500acc71198240392fe9a3304c4142cf5b1f1c3950ddb1351dddac8565ef27b1c724d608cc1053d15647c777c4d0dc466a99a1b08b64e62ec37b WHIRLPOOL e6d9986e43e91f35ee47e6586d3595c62f12d4dabb54f3e9adb6d524fcf075e54e92c6e985005bd3c892a55fbcf469a7a49f0e7672e0923ae2b6f1a321b65c15 |
24 |
|
25 |
diff --git a/sci-astronomy/pal/metadata.xml b/sci-astronomy/pal/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000..e435a24 |
28 |
--- /dev/null |
29 |
+++ b/sci-astronomy/pal/metadata.xml |
30 |
@@ -0,0 +1,14 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>sci-astronomy@g.o</email> |
36 |
+ <name>Gentoo Astronomy Project</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> |
39 |
+ The Positional Astronomy Library is a collection of code designed |
40 |
+ to aid in replacing the SLA library with code from NOVAS and |
41 |
+ ERFA. Where possible the API is similar to the C SLA API except |
42 |
+ for the use of a "pal" prefix. |
43 |
+ </longdescription> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/sci-astronomy/pal/pal-0.9.7.ebuild b/sci-astronomy/pal/pal-0.9.7.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000..bd8451b |
49 |
--- /dev/null |
50 |
+++ b/sci-astronomy/pal/pal-0.9.7.ebuild |
51 |
@@ -0,0 +1,33 @@ |
52 |
+# Copyright 1999-2016 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+# $Id$ |
55 |
+ |
56 |
+EAPI=6 |
57 |
+ |
58 |
+inherit eutils |
59 |
+ |
60 |
+DESCRIPTION="Positional Astronomy Library" |
61 |
+HOMEPAGE="http://github.com/Starlink/pal" |
62 |
+SRC_URI="https://github.com/Starlink/${PN}/releases/download/v${PV}/${P}.tar.gz" |
63 |
+ |
64 |
+LICENSE="GPL-2" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
67 |
+IUSE="doc static-libs" |
68 |
+RDEPEND="sci-astronomy/erfa:=" |
69 |
+DEPEND="${RDEPEND}" |
70 |
+ |
71 |
+src_configure() { |
72 |
+ econf --without-starlink \ |
73 |
+ --without-stardocs \ |
74 |
+ --with-erfa \ |
75 |
+ $(use_enable static-libs static) |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ default |
80 |
+ # remove cruft from non-fhs complient |
81 |
+ rm -r "${ED}"usr/share/pal || die |
82 |
+ rm -r "${ED}"usr/{docs,manifests,news} || die |
83 |
+ use static-libs || prune_libtool_files --all |
84 |
+} |