public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcslib/
Date: Sat, 15 Aug 2015 14:41:59 +0000 (UTC)	[thread overview]
Message-ID: <1439649704.d74b53ae75779f93fb56a1ef60529f56db1ca628.jlec@gentoo> (raw)

commit:     d74b53ae75779f93fb56a1ef60529f56db1ca628
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 15 14:30:37 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Aug 15 14:41:44 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d74b53ae

sci-astronomy/wcslib: Version Bump

Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 sci-astronomy/wcslib/Manifest             |  1 +
 sci-astronomy/wcslib/metadata.xml         | 12 ++---
 sci-astronomy/wcslib/wcslib-4.25.1.ebuild | 74 +++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+), 6 deletions(-)

diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest
index 41f86ff..43af518 100644
--- a/sci-astronomy/wcslib/Manifest
+++ b/sci-astronomy/wcslib/Manifest
@@ -1,3 +1,4 @@
 DIST wcslib-4.21.tar.bz2 1865628 SHA256 530eb67e432ce0d881f91e9b08734a346a98cee06233433da79ad0c7d5f144ae SHA512 0fdd7b6cb234565e2dc3b619ec219918103c7a14916294004c12c709be803b10f064fa01c9647a46d2588d4f880ed7db6e65758b510d1a556b3b46f7bc836cdd WHIRLPOOL daaa3ba60cab0aac0619d317ea338f8d734a6d924c49d806a509560e6cd89a896f4594d48e760997d1289d2639c6a81b8802f65a2d95a3cd82efa533476a354a
 DIST wcslib-4.22.tar.bz2 1866676 SHA256 afafdf772cb0fe97ae886cbf512fb114d842ca358cce7df9fa93449d1b556950 SHA512 9288314d842a9b54536b5f512900933e2ac307ef81003172fa511c8334f430161f28084309cde7ad2d94d39020eacec33cf8944d30d78abb51f3e7ff01be2bc4 WHIRLPOOL 629bbca2672d0d9ac03696deadfcea155c912c14ef115defac48966c41714ae692fe5cd60587a733ce691612bea9f48d212587dd0a2327739839328b90eae399
 DIST wcslib-4.23.tar.bz2 1876150 SHA256 baf0fc85fb290e8a575eab4b7046517818a12754a0f01da74db9483467dde5a2 SHA512 cc82818b1aa88d325b72c5a7967b688060c9d0bfd6ba4fef39c0e9dab00bab547282b1c301dafb1331156c69e6266ef80c39f0dc44b894a977d2b2b3cafb9c87 WHIRLPOOL 90ca6e91511371c4e791b7e31b395a6cfda29d1f613176282960896170651b7d5ca7b215254befab1021b18e03e283a88820a248c9c4e6e07edef1bed3adca03
+DIST wcslib-4.25.1.tar.bz2 2027340 SHA256 1e5127513c2f402a30daa280f5b4f6da53e73484cbc8085868bc432f807c8495 SHA512 0ed9eeb4b84d2f022394a1ccd04db8a62cb4593d43c5c12e0034f27a12d52cc8c8bf4b14f5d30f71e933682809e3dac5377be1c69bfc6321f6d96b91f6f1da3c WHIRLPOOL 75785c8687cfad92ba6d33444757005c13346188a46913b38afb66997676bae5284e27ccd7f348e88a9d14b6c27d522a06d37e744a5a258e76ef3ed73cefb262

diff --git a/sci-astronomy/wcslib/metadata.xml b/sci-astronomy/wcslib/metadata.xml
index 8d2a6dc..555cb5b 100644
--- a/sci-astronomy/wcslib/metadata.xml
+++ b/sci-astronomy/wcslib/metadata.xml
@@ -1,20 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>sci-astronomy</herd>
-<longdescription lang="en">
+  <herd>sci-astronomy</herd>
+  <longdescription lang="en">
   WCSLIB is a C library, supplied with a full set of Fortran wrappers,
   that implements the "World Coordinate System" (WCS) convention in FITS
   (Flexible Image Transport System).  It also includes a PGPLOT-based routine,
   PGSBOX, for drawing general curvilinear coordinate graticules and a number of
   utility programs.
 </longdescription>
-<use>
-  <flag name="fits">
+  <use>
+    <flag name="fits">
     Enable support for the FITS format through <pkg>sci-libs/cfitsio</pkg>
   </flag>
-  <flag name="pgplot">
+    <flag name="pgplot">
     Builds PGBSOX routines, needs <pkg>sci-libs/pgplot</pkg> library
   </flag>
-</use>
+  </use>
 </pkgmetadata>

diff --git a/sci-astronomy/wcslib/wcslib-4.25.1.ebuild b/sci-astronomy/wcslib/wcslib-4.25.1.ebuild
new file mode 100644
index 0000000..b14ecc6
--- /dev/null
+++ b/sci-astronomy/wcslib/wcslib-4.25.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+FORTRAN_NEEDED=fortran
+
+inherit eutils fortran-2 multilib
+
+DESCRIPTION="Astronomical World Coordinate System transformations library"
+HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
+SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
+
+SLOT="0/4"
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc fortran fits pgplot static-libs"
+
+RDEPEND="
+	fits? ( sci-libs/cfitsio:0= )
+	pgplot? ( sci-libs/pgplot:0= )"
+DEPEND="${RDEPEND}
+	sys-devel/flex
+	virtual/pkgconfig"
+
+src_prepare() {
+	sed -i -e 's/COPYING\*//' GNUmakefile || die
+}
+
+src_configure() {
+	local myconf=(
+		--docdir="${EPREFIX}"/usr/share/doc/${PF}
+		$(use_enable static-libs static)
+		$(use_enable fortran)
+	)
+	# hacks because cfitsio and pgplot directories are hard-coded
+	if use fits; then
+		myconf+=(
+			--with-cfitsioinc="${EPREFIX}/usr/include"
+			--with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)"
+		)
+	else
+		myconf+=( --without-cfitsio )
+	fi
+	if use pgplot; then
+		myconf+=(
+			--with-pgplotinc="${EPREFIX}/usr/include"
+			--with-pgplotlib="${EPREFIX}/usr/$(get_libdir)"
+		)
+	else
+		myconf+=( --without-pgplot )
+	fi
+	econf ${myconf[@]}
+}
+
+src_compile() {
+	# nasty makefile, debugging means probably full rewrite
+	emake -j1
+}
+
+src_test() {
+	emake -j1 check
+}
+
+src_install () {
+	default
+	# static libs are same as shared (compiled with PIC)
+	# so they are not compiled twice
+	use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a
+	use doc || rm -r \
+		"${ED}"/usr/share/doc/${PF}/html \
+		"${ED}"/usr/share/doc/${PF}/*.pdf
+}


             reply	other threads:[~2015-08-15 14:42 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-15 14:41 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-18 18:09 [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcslib/ Sebastien Fabbro
2016-02-18 18:11 Sebastien Fabbro
2016-04-11 23:44 Sebastien Fabbro
2016-06-23 13:40 Michael Palimaka
2017-01-30 19:47 Sebastien Fabbro
2019-12-09 14:38 Agostino Sarubbo
2019-12-10  9:17 Agostino Sarubbo
2019-12-11 16:52 Andreas Sturmlechner
2020-06-27 20:45 Andreas K. Hüttel
2020-11-09  6:52 Benda XU
2021-01-07 15:04 Sam James
2021-01-07 16:53 Sam James
2021-01-09  4:21 Sam James
2021-01-09  4:21 Sam James
2021-02-19 13:02 Sam James
2021-06-16 17:50 Andrew Ammerlaan
2022-04-05  3:33 Sam James
2022-05-13 20:25 Sam James
2022-05-13 20:25 Sam James
2022-05-13 20:25 Sam James
2022-09-14  8:44 Andrew Ammerlaan
2022-09-14  8:44 Andrew Ammerlaan
2022-10-07  9:34 Agostino Sarubbo
2022-10-07  9:36 Agostino Sarubbo
2023-05-26 14:38 Sam James
2023-05-26 20:06 Arthur Zamarin
2024-03-17  6:44 Sam James
2024-03-17  6:44 Sam James
2024-03-17  9:09 Sam James
2024-07-23  3:40 Eli Schwartz
2024-07-23  3:40 Eli Schwartz
2024-09-27  9:03 Andrew Ammerlaan
2024-09-27  9:03 Andrew Ammerlaan
2024-09-27  9:03 Andrew Ammerlaan
2024-09-28 13:21 Arthur Zamarin
2024-10-04 17:37 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439649704.d74b53ae75779f93fb56a1ef60529f56db1ca628.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox