diff options
author | 2006-06-01 19:56:17 +0000 | |
---|---|---|
committer | 2006-06-01 19:56:17 +0000 | |
commit | 75978df11082dd560d6d9103d6f0bbe687bdc81f (patch) | |
tree | 62ea82221df3f497acaefeb11f43769e5d17d902 /sci-libs/cfitsio | |
parent | numpy-0.9.8: version bump (diff) | |
download | sci-75978df11082dd560d6d9103d6f0bbe687bdc81f.tar.gz sci-75978df11082dd560d6d9103d6f0bbe687bdc81f.tar.bz2 sci-75978df11082dd560d6d9103d6f0bbe687bdc81f.zip |
cfitsio-3.006-r1: proper libtoolization
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@215 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/cfitsio')
-rw-r--r-- | sci-libs/cfitsio/ChangeLog | 34 | ||||
-rw-r--r-- | sci-libs/cfitsio/Manifest | 8 | ||||
-rw-r--r-- | sci-libs/cfitsio/cfitsio-3.006-r1.ebuild (renamed from sci-libs/cfitsio/cfitsio-3.006.ebuild) | 18 | ||||
-rw-r--r-- | sci-libs/cfitsio/files/Makefile.am | 26 | ||||
-rw-r--r-- | sci-libs/cfitsio/files/configure.ac | 230 | ||||
-rw-r--r-- | sci-libs/cfitsio/files/digest-cfitsio-3.006-r1 (renamed from sci-libs/cfitsio/files/digest-cfitsio-3.006) | 0 |
6 files changed, 297 insertions, 19 deletions
diff --git a/sci-libs/cfitsio/ChangeLog b/sci-libs/cfitsio/ChangeLog index 0bfe4bbcb..e13aeaaa1 100644 --- a/sci-libs/cfitsio/ChangeLog +++ b/sci-libs/cfitsio/ChangeLog @@ -1,13 +1,31 @@ # ChangeLog for sci-libs/cfitsio # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - - -*cfitsio-3.006 (22 Feb 2006) - - 22 Feb 2006; Sebastien Fabbro <seb@ist.utl.pt> +cfitsio-3.006.ebuild, - New version bump, added src_test, corrected minor stuff, added long - description in metadata.xml +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cfitsio/ChangeLog,v 1.9 2006/05/23 20:13:56 corsair Exp $ + +*cfitsio-3.006-r1 (01 Jun 2006) + + 01 Jun 2006; Sebastien Fabbro <seb@ist.utl.pt> + +files/Makefile.am + +files/configure.ac + +files/cfitsio-3.006-r1.ebuild + metadata.xml + Proper autotoolization, added longdescription in metadata.xml + + 23 May 2006; Markus Rothe <corsair@gentoo.org> cfitsio-2.510-r1.ebuild: + Stable on ppc64 + + 17 May 2006; Steve Arnold <nerdboy@gentoo.org> cfitsio-2.510-r1.ebuild, + cfitsio-3.006.ebuild: + fixed minor issue with lib installation; added symlink + +*cfitsio-3.006 (17 May 2006) + + 17 May 2006; Steve Arnold <nerdboy@gentoo.org> + +files/cfitsio-2.510-configure.patch, + +files/cfitsio-3.006-configure.patch, +cfitsio-2.510-r1.ebuild, + +cfitsio-3.006.ebuild, -cfitsio-2.510.ebuild: + fixed broken configure and bumped to the current release; newer portage + will bomb on the older ebuilds. 16 Sep 2005; Aron Griffis <agriffis@gentoo.org> cfitsio-2.510.ebuild: Mark 2.510 stable on alpha diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest index a89ab986a..94730d8bb 100644 --- a/sci-libs/cfitsio/Manifest +++ b/sci-libs/cfitsio/Manifest @@ -1,4 +1,6 @@ -MD5 3dd2f6f963223367500338254741d62a ChangeLog 2057 -MD5 19644604bf680603f0822d3cb0382fbd cfitsio-3.006.ebuild 1127 -MD5 0726d0c8ac1fab10d9b5a140cc6265a6 files/digest-cfitsio-3.006 64 +MD5 d9eb5d7cfb1c36de4a887a3d2f5f9797 ChangeLog 2770 +MD5 ce43be3cedc92597cc10ed8c2135db27 cfitsio-3.006-r1.ebuild 941 +MD5 88a5ecb927507caf1e038c610d97fef4 files/Makefile.am 1079 +MD5 f6966240945562f0e2bcaabd7fdd7e2c files/configure.ac 6748 +MD5 0726d0c8ac1fab10d9b5a140cc6265a6 files/digest-cfitsio-3.006-r1 64 MD5 cccca64c98378bb8cf5a3681ec6b776e metadata.xml 672 diff --git a/sci-libs/cfitsio/cfitsio-3.006.ebuild b/sci-libs/cfitsio/cfitsio-3.006-r1.ebuild index d255bcadd..53fe9b567 100644 --- a/sci-libs/cfitsio/cfitsio-3.006.ebuild +++ b/sci-libs/cfitsio/cfitsio-3.006-r1.ebuild @@ -2,6 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ +inherit autotools + +IUSE="doc" DESCRIPTION="C and Fortran library for manipulating FITS files" HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html" @@ -10,16 +13,16 @@ SRC_URI="ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${PN}${PV//.}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="doc" + +DEPEND="virtual/libc" S=${WORKDIR}/${PN} -src_compile() { - econf --prefix=${D}usr || die "econf failed" - sed -i -e "s:CFITSIO_LIB = /usr/lib:CFITSIO_LIB = ${D}usr/lib:g" Makefile - sed -i -e "s:CFITSIO_INCLUDE = /usr/include:CFITSIO_INCLUDE = ${D}usr/include:g" Makefile - emake || die "emake failed" - make shared fitscopy imcopy listhead +src_unpack() { + unpack ${A} + cd "${S}" + cp "${FILESDIR}"/{Makefile.am,configure.ac} . + eautoreconf } src_test() { @@ -31,7 +34,6 @@ src_test() { src_install () { make DESTDIR="${D}" install || die "make install failed" - dobin fitscopy imcopy listhead dodoc changes.txt README License.txt insinto /usr/share/doc/${P} doins cookbook.{f,c} diff --git a/sci-libs/cfitsio/files/Makefile.am b/sci-libs/cfitsio/files/Makefile.am new file mode 100644 index 000000000..291e7409f --- /dev/null +++ b/sci-libs/cfitsio/files/Makefile.am @@ -0,0 +1,26 @@ +lib_LTLIBRARIES = libcfitsio.la +libcfitsio_la_SOURCES = \ + buffers.c cfileio.c checksum.c compress.c drvrfile.c drvrmem.c \ + drvrnet.c drvrsmem.c editcol.c edithdu.c eval_l.c eval_y.c \ + eval_f.c fitscore.c getcol.c getcolb.c getcold.c getcole.c \ + getcoli.c getcolj.c getcolk.c getcoll.c getcols.c getcolsb.c \ + getcoluk.c getcolui.c getcoluj.c getkey.c group.c grparser.c \ + histo.c iraffits.c \ + modkey.c putcol.c putcolb.c putcold.c putcole.c putcoli.c \ + putcolj.c putcolk.c putcoluk.c putcoll.c putcols.c putcolsb.c \ + putcolu.c putcolui.c putcoluj.c putkey.c region.c scalnull.c \ + swapproc.c wcssub.c wcsutil.c imcompress.c quantize.c ricecomp.c \ + pliocomp.c \ + f77_wrap1.c f77_wrap2.c f77_wrap3.c f77_wrap4.c +libcfitsio_la_LIBADD = -lm +include_HEADERS = fitsio.h fitsio2.h longnam.h drvrsmem.h +LDADD = libcfitsio.la +noinst_PROGRAMS = testprog speed cookbook +bin_PROGRAMS = fitscopy imcopy listhead +testprog_SOURCES = testprog.c + +fitscopy_SOURCES = fitscopy.c +speed_SOURCES = speed.c +imcopy_SOURCES = imcopy.c +listhead_SOURCES = listhead.c +cookbook_SOURCES = cookbook.c diff --git a/sci-libs/cfitsio/files/configure.ac b/sci-libs/cfitsio/files/configure.ac new file mode 100644 index 000000000..95c08f9fc --- /dev/null +++ b/sci-libs/cfitsio/files/configure.ac @@ -0,0 +1,230 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT(cfitsio, 3.006, pence@tetra.gsfc.nasa.gov) +AM_INIT_AUTOMAKE([foreign]) +AC_PROG_LIBTOOL + +# taken from configure.in +# determine system type +#-------------------------------------------------------------------- +AC_PROGRAM_CHECK(uname_found, uname, 1, 0) + +if test $uname_found -eq 0 ; then + echo "cfitsio: No uname found; setting system type to unknown." + system="unknown" +else + system=`uname -s`-`uname -r` +fi + +case $system in + Darwin-*) + # For large file support (but may break Absoft compilers): + AC_DEFINE(_LARGEFILE_SOURCE) + AC_DEFINE(_FILE_OFFSET_BITS,64) + ;; + HP-UX-*) + if test "x$CFORTRANFLAGS" = x ; then + CFORTRANFLAGS="-Dappendus" + fi + CFLAGS="$CFLAGS -DPG_PPU" + LIBPRE="-Wl," + ;; + SunOS-5*) + if test "x$CFORTRANFLAGS" = x ; then + CFORTRANFLAGS="-Dsolaris" + fi + # For large file support: + AC_DEFINE(_LARGEFILE_SOURCE) + AC_DEFINE(_FILE_OFFSET_BITS,64) + ;; + IRIX*) + CFLAGS="$CFLAGS -DHAVE_POSIX_SIGNALS" + ;; + Linux*) + AC_DEFINE(_LARGEFILE_SOURCE) + AC_DEFINE(_FILE_OFFSET_BITS,64) + ;; + CYGWIN*) + CFLAGS="$CFLAGS -DHAVE_POSIX_SIGNALS" + ;; + *) + ;; +esac + +CFLAGS="$CFLAGS $CFORTRANFLAGS" + +case $CC in + gcc) + GCCVERSION="`gcc -dumpversion 2>&1`" + echo "cfitsio: == Using gcc version $GCCVERSION" + AC_SUBST(GCCVERSION) + changequote(,) + if test `echo $GCCVERSION | grep -c '2\.[45678]'` -gt 0 + then + CFLAGS=`echo $CFLAGS | sed 's:-O[^ ]* *::'` +# AC_MSG_WARN(This gcc is pretty old. Disabling optimization to be safe.) + fi + changequote([,]) + ;; + cc) + echo "cfitsio: Old CFLAGS is $CFLAGS" + CFLAGS=`echo $CFLAGS | sed -e "s/-g/-O/"` + case $system in + SunOS-5*) + changequote(,) + if test `echo $CFLAGS | grep -c fast` -gt 0 + then + echo "cfitsio: Replacing -fast with -O3" + CFLAGS=`echo $CFLAGS | sed 's:-fast:-O3:'` + fi + changequote([,]) + CFLAGS="$CFLAGS -DHAVE_ALLOCA_H -DHAVE_POSIX_SIGNALS" + ;; + *) + echo "== No special changes for $system" + ;; + esac + echo "New CFLAGS is $CFLAGS" + ;; + *) + # Don't do anything now + ;; +esac + +# ================= test for the unix ftruncate function ================ + +AC_MSG_CHECKING("whether ftruncate works") +AC_TRY_LINK([#include <unistd.h> +], [ +ftruncate(0, 0); +], [ +AC_DEFINE(HAVE_FTRUNCATE) +AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + + +# --------------------------------------------------------- +# some systems define long long for 64-bit ints +# --------------------------------------------------------- + +AC_MSG_CHECKING("whether long long is defined") +AC_TRY_COMPILE([#include <stdlib.h> +], [ +long long filler; +], [ +AC_DEFINE(HAVE_LONGLONG) +AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +# ==================== SHARED MEMORY DRIVER SECTION ======================= +# +# 09-Mar-98 : modified by JB/ISDC +# 3 checks added to support autoconfiguration of shared memory +# driver. First generic check is made whether shared memory is supported +# at all, then 2 more specific checks are made (architecture dependent). +# Currently tested on : sparc-solaris, intel-linux, sgi-irix, dec-alpha-osf + +# ------------------------------------------------------------------------- +# check is System V IPC is supported on this machine +# ------------------------------------------------------------------------- + +AC_MSG_CHECKING("whether system V style IPC services are supported") +AC_TRY_LINK([#include <sys/ipc.h> +#include <sys/shm.h> +#include <sys/sem.h> +], [ +shmat(0, 0, 0); +shmdt(0); +shmget(0, 0, 0); +semget(0, 0, 0); +], [ +AC_DEFINE(HAVE_SHMEM_SERVICES) +my_shmem=\${SOURCES_SHMEM} +AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +AC_SUBST(my_shmem) + +# ------------------------------------------------------------------------- +# some systems define flock_t, for others we have to define it ourselves +# ------------------------------------------------------------------------- + +AC_MSG_CHECKING("do we have flock_t defined in sys/fcntl.h") +AC_TRY_COMPILE([#include <sys/fcntl.h> +], [ +flock_t filler; +], [ +AC_DEFINE(HAVE_FLOCK_T) +AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +if test "$HAVE_FLOCK_T" != 1; then + AC_MSG_CHECKING("do we have flock_t defined in sys/flock.h") + AC_TRY_COMPILE([#include <sys/flock.h> + ], [ + flock_t filler; + ], [ + AC_DEFINE(HAVE_FLOCK_T) + AC_MSG_RESULT("yes") + ], AC_MSG_RESULT("no") ) +fi + +# ------------------------------------------------------------------------- +# there are some idiosyncrasies with semun defs (used in semxxx). Solaris +# does not define it at all +# ------------------------------------------------------------------------- + +AC_MSG_CHECKING("do we have union semun defined") +AC_TRY_COMPILE( +[#include <sys/ipc.h> +#include <sys/shm.h> +#include <sys/sem.h> +], [ +union semun filler; +], [ +AC_DEFINE(HAVE_UNION_SEMUN) +AC_MSG_RESULT("yes") +], AC_MSG_RESULT("no") ) + +# ==================== END OF SHARED MEMORY DRIVER SECTION ================ +# ================= test for the unix networking functions ================ + +#-------------------------------------------------------------------- +# Check for the existence of the -lsocket and -lnsl libraries. +# The order here is important, so that they end up in the right +# order in the command line generated by make. Here are some +# special considerations: +# 1. Use "connect" and "accept" to check for -lsocket, and +# "gethostbyname" to check for -lnsl. +# 2. Use each function name only once: can't redo a check because +# autoconf caches the results of the last check and won't redo it. +# 3. Use -lnsl and -lsocket only if they supply procedures that +# aren't already present in the normal libraries. This is because +# IRIX 5.2 has libraries, but they aren't needed and they're +# bogus: they goof up name resolution if used. +# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. +# To get around this problem, check for both libraries together +# if -lsocket doesn't work by itself. +#-------------------------------------------------------------------- +cfitsio_checkBoth=0 +AC_CHECK_FUNC(connect, cfitsio_checkSocket=0, cfitsio_checkSocket=1) +if test "$cfitsio_checkSocket" = 1; then + AC_CHECK_LIB(socket, main, LIBS="$LIBS -lsocket", cfitsio_checkBoth=1) +fi +if test "$cfitsio_checkBoth" = 1; then + tk_oldLibs=$LIBS + LIBS="$LIBS -lsocket -lnsl" + AC_CHECK_FUNC(accept, cfitsio_checkNsl=0, [LIBS=$tk_oldLibs]) +fi +AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) + +AC_DEFINE(HAVE_NET_SERVICES) + +# ==================== END OF unix networking SECTION ================ + + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + diff --git a/sci-libs/cfitsio/files/digest-cfitsio-3.006 b/sci-libs/cfitsio/files/digest-cfitsio-3.006-r1 index fbcc16749..fbcc16749 100644 --- a/sci-libs/cfitsio/files/digest-cfitsio-3.006 +++ b/sci-libs/cfitsio/files/digest-cfitsio-3.006-r1 |