summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-01-20 02:32:40 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-01-20 02:32:40 +0000
commitff7bcb3cc39ab41aa18c0f7fd4dc6835ad065a1c (patch)
tree83a9c69884557b0788b393d4642ea002e96d244b /sci-libs/ccfits
parentcleanup sys-cluster/openmpi (diff)
downloadgentoo-2-ff7bcb3cc39ab41aa18c0f7fd4dc6835ad065a1c.tar.gz
gentoo-2-ff7bcb3cc39ab41aa18c0f7fd4dc6835ad065a1c.tar.bz2
gentoo-2-ff7bcb3cc39ab41aa18c0f7fd4dc6835ad065a1c.zip
Initial import
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/ccfits')
-rw-r--r--sci-libs/ccfits/ChangeLog10
-rw-r--r--sci-libs/ccfits/ccfits-2.2.ebuild43
-rw-r--r--sci-libs/ccfits/files/ccfits-2.2-makefile.patch26
-rw-r--r--sci-libs/ccfits/metadata.xml12
4 files changed, 91 insertions, 0 deletions
diff --git a/sci-libs/ccfits/ChangeLog b/sci-libs/ccfits/ChangeLog
new file mode 100644
index 000000000000..b2ec6cfa98d2
--- /dev/null
+++ b/sci-libs/ccfits/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/ccfits
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ccfits/ChangeLog,v 1.1 2010/01/20 02:32:36 bicatali Exp $
+
+*ccfits-2.2 (20 Jan 2010)
+
+ 20 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> +ccfits-2.2.ebuild,
+ +files/ccfits-2.2-makefile.patch, +metadata.xml:
+ Initial import
+
diff --git a/sci-libs/ccfits/ccfits-2.2.ebuild b/sci-libs/ccfits/ccfits-2.2.ebuild
new file mode 100644
index 000000000000..8ec7af07377f
--- /dev/null
+++ b/sci-libs/ccfits/ccfits-2.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ccfits/ccfits-2.2.ebuild,v 1.1 2010/01/20 02:32:36 bicatali Exp $
+
+EAPI=2
+inherit eutils autotools
+
+MYPN=CCfits
+MYP=${MYPN}-${PV}
+
+DESCRIPTION="C++ interface for cfitsio"
+HOMEPAGE="http://heasarc.gsfc.nasa.gov/fitsio/CCfits/"
+SRC_URI="${HOMEPAGE}/${MYP}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=sci-libs/cfitsio-3.080"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}"
+
+src_prepare() {
+ # avoid building cookbook by default and no rpath
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ AT_M4DIR=config/m4 eautoreconf
+}
+
+src_test() {
+ emake check || die
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc CHANGES
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins *.pdf || die
+ doins -r html || die
+ fi
+}
diff --git a/sci-libs/ccfits/files/ccfits-2.2-makefile.patch b/sci-libs/ccfits/files/ccfits-2.2-makefile.patch
new file mode 100644
index 000000000000..e92d9306900c
--- /dev/null
+++ b/sci-libs/ccfits/files/ccfits-2.2-makefile.patch
@@ -0,0 +1,26 @@
+--- Makefile.am.orig 2010-01-20 02:52:22.000000000 +0000
++++ Makefile.am 2010-01-20 02:50:34.000000000 +0000
+@@ -26,12 +26,11 @@
+ EXTRA_DIST = config CHANGES README.INSTALL License.txt file1.pha $(MSVC_FILES)
+
+
+-bin_PROGRAMS = cookbook
++check_PROGRAMS = cookbook
+
+ cookbook_SOURCES = cookbook.cxx
+
+ cookbook_LDADD = libCCfits.la
+-cookbook_LDFLAGS = -R $(R_LIB_PATH) -R $(CXX_LIB_PATH)
+
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = CCfits.pc
+@@ -64,8 +63,7 @@
+
+ # This will tell shared library which STD C++ library to use without
+ # needing the user to use LD_LIBRARY_PATH environment variable
+-libCCfits_la_LIBADD = $(LIBSTDCPP)
+-libCCfits_la_LDFLAGS = -R $(R_LIB_PATH) -R $(CXX_LIB_PATH)
++#libCCfits_la_LIBADD = $(LIBSTDCPP)
+
+ libCCfits_ladir = $(pkgincludedir)
+
diff --git a/sci-libs/ccfits/metadata.xml b/sci-libs/ccfits/metadata.xml
new file mode 100644
index 000000000000..b4532406f703
--- /dev/null
+++ b/sci-libs/ccfits/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ CCfits is an object oriented interface to the cfitsio library. It is
+ designed to make the capabilities of cfitsio available to
+ programmers working in C++. It is written in ANSI C++ and
+ implemented using the C++ Standard Library with namespaces,
+ exception handling, and member template functions.
+</longdescription>
+</pkgmetadata>