diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-08-26 06:18:25 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-08-26 06:18:25 +0000 |
commit | 849736bfa089191870c7ca80509c800528c113da (patch) | |
tree | 5104a068d02006968e0b1392a8884891bc2a0884 /sci-libs | |
parent | Initial commit. (diff) | |
download | historical-849736bfa089191870c7ca80509c800528c113da.tar.gz historical-849736bfa089191870c7ca80509c800528c113da.tar.bz2 historical-849736bfa089191870c7ca80509c800528c113da.zip |
Better autotools patch, ready to resend upstream
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/cfitsio/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/cfitsio/Manifest | 14 | ||||
-rw-r--r-- | sci-libs/cfitsio/files/cfitsio-3.140-autotools.patch | 160 |
3 files changed, 112 insertions, 70 deletions
diff --git a/sci-libs/cfitsio/ChangeLog b/sci-libs/cfitsio/ChangeLog index dea69edfa791..f87896c82ddf 100644 --- a/sci-libs/cfitsio/ChangeLog +++ b/sci-libs/cfitsio/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-libs/cfitsio -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/cfitsio/ChangeLog,v 1.30 2009/03/28 13:31:17 bluebird Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cfitsio/ChangeLog,v 1.31 2009/08/26 06:18:24 bicatali Exp $ + + 26 Aug 2009; SĂ©bastien Fabbro <bicatali@gentoo.org> + files/cfitsio-3.140-autotools.patch: + Better autotools patch, ready to resend upstream 28 Mar 2009; Friedrich Oslage <bluebird@gentoo.org> cfitsio-3.100-r1.ebuild: diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest index 4e837619d7b9..129478f1ec54 100644 --- a/sci-libs/cfitsio/Manifest +++ b/sci-libs/cfitsio/Manifest @@ -1,8 +1,11 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX cfitsio-2.510-autotools.patch 6275 RMD160 02770f8738698fef2e8a9f51add2f99492cb8ad4 SHA1 bf297d7d04791475f9805244aab778215ac13955 SHA256 34d252c38c6664d57239124af9bac1bbf56fd9b43656db9b0e0855e7da53aba4 AUX cfitsio-2.510-configure.patch 1230 RMD160 b1ca2255de7125f4e9a2f727832c8ee3ab2aaedb SHA1 eb1953b897d48bcc7c017890239c7e0165ab09d1 SHA256 b03fbb74d34ab91658d8871d88a4090db316f1911d87d0e19dfe6f7a744d269d AUX cfitsio-3.100-autotools.patch 7524 RMD160 839bc166ab619092ca4941869083e5fea44f110a SHA1 5e8e03c901ab35f5cdfdf826787e14b64867962c SHA256 d65355fd017695d6efe568f57f74f256e6298322279922fd4a4df7a065954425 AUX cfitsio-3.100-null-protect.patch 1278 RMD160 deb9a6863c26fb1244567087b1da87216e60b7e9 SHA1 5d4c53a8a06eebaad035d42a0e58a6794f4ee991 SHA256 04560133a3b496ecc6f1efd0b36c982c52b75fa0f4078013e642a78843bcf158 -AUX cfitsio-3.140-autotools.patch 7524 RMD160 ff4a0e13ee39180303572416d9331cf5a5a31307 SHA1 05527f02208b58cf0d8c412ae38ffaf857a40eba SHA256 e1773f1798fddf403d7c87c48836563a90b3c75e6179a328e630218ea20af451 +AUX cfitsio-3.140-autotools.patch 8213 RMD160 b886aa73d3bc7b4f6f0ea824d8e4705be6870e6a SHA1 bc1c9257befbeec7b283a2b6b8d7e3b0cd5e463e SHA256 46eba8ba973eb0873992ea942d196815d375951c9154af65eb217abddd4c617f AUX cfitsio-3.140-missing-include.patch 384 RMD160 364b1eb604f925916a3fca9d470bda8930b623dd SHA1 18a022de6f2964ab1bf4796f677fb73a287f059f SHA256 3758a4c2b926889b42c14e6ad01857c4ab7ab5bf07010b8d5c043c284d1740eb DIST cfitsio2510.tar.gz 2059679 RMD160 a22d276555dd55cdc871819528dc944d29291360 SHA1 758906d80ad155448014a57f9c92248b2211c624 SHA256 2d7bb11acd549be79255d2de971d3c1256c01d1508876f17fedbdac6dac17278 DIST cfitsio3100.tar.gz 3022189 RMD160 cd2d944ad73c74053ecd4c78b7efe5195cc8d43b SHA1 a0586a5411e2882165d55c46e66473f555142e07 SHA256 f3dd0eada3f923e00e0a68bc58ed91c9a8aac1c830354ffb2a3869dba659456a @@ -11,5 +14,12 @@ EBUILD cfitsio-2.510-r1.ebuild 1287 RMD160 72708a9c3e3c5d08d2a1f23351f4053550c8a EBUILD cfitsio-2.510-r2.ebuild 1538 RMD160 06f3500a3f090c8dc567dd3b0e454a64a8e8b59f SHA1 b69ee19d46eccdc8d322b6ecd436cc637398f2ec SHA256 ba347f06c3a24ab67034bf02a975f7291d97aa3bafb35217c7d56840cdda7a51 EBUILD cfitsio-3.100-r1.ebuild 1580 RMD160 63f78c9151248f1a562f56cbea7ed8b62d03a731 SHA1 f42556efc30a864cbc8c943f8a77eae0dab92d0b SHA256 eaad3e85511bcc3e179df097d471adf11e988d361da8de30951a70fe3db8a435 EBUILD cfitsio-3.140.ebuild 1540 RMD160 f36e3d8ba5e8156b0fd5c03f7ff5ad684a441eae SHA1 ba6997136bfcd601089c530a59fe993b407b20e8 SHA256 238165b71586456eb0851c7085f5d5fca4724b4f52fe3079eccd20e597f78386 -MISC ChangeLog 6606 RMD160 d60179e77180f91496655d07b43808648fd65e39 SHA1 30f9b8152414689c8f33948f54bb493dfdca49d1 SHA256 307e42a4c71dd6a430b5c593cbedb41f8714c5cdc11506e90862961a720dcaa4 +MISC ChangeLog 6752 RMD160 daf96fc7b11972c8fc6ae11a58d035fa54876de4 SHA1 f41e4e9c34832f06c64b9e0079664d999aa6eaf5 SHA256 00dacb0a2fa4f85a7c7b2ffa39a0b393353dcda8568d46d0abab8651f2500787 MISC metadata.xml 677 RMD160 3a527306bc0d3ee04c9aa7a89ae9669300449f25 SHA1 332827a79018490259a4fda69a9b508862612941 SHA256 20ff9f82126be9cb9b5a8c21e1bf2556e8ae91e32442b59f26f938ccc1f42b91 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkqU07kACgkQ1ycZbhPLE2B6IACeJKDww1zN5au43u/4C8bRgDFa +ErIAniMnEqtwiNvbs+s/JiuIPDI2r6jQ +=ihWR +-----END PGP SIGNATURE----- diff --git a/sci-libs/cfitsio/files/cfitsio-3.140-autotools.patch b/sci-libs/cfitsio/files/cfitsio-3.140-autotools.patch index dd73fa65da9a..7acd8eb9cb89 100644 --- a/sci-libs/cfitsio/files/cfitsio-3.140-autotools.patch +++ b/sci-libs/cfitsio/files/cfitsio-3.140-autotools.patch @@ -1,6 +1,24 @@ ---- configure.ac.absent 1970-01-01 01:00:00.000000000 +0100 -+++ configure.ac 2008-06-02 01:08:32.000000000 +0100 -@@ -0,0 +1,158 @@ +--- cfitsio.pc.in.orig 2008-06-02 01:20:50.000000000 +0100 ++++ cfitsio.pc.in 2008-06-02 01:22:14.000000000 +0100 +@@ -1,10 +1,10 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ +-libdir=${exec_prefix}/lib +-includedir=${prefix}/include ++libdir=@libdir@ ++includedir=@includedir@ + +-Name: cfitsio ++Name: @PACKAGE_NAME@ + Description: FITS File Subroutine Library +-Version: 3.006 +-Libs: -L${libdir} -lcfitsio @LIBS@ -lm ++Version: @PACKAGE_VERSION@ ++Libs: -L${libdir} -lcfitsio @LIBS@ + Cflags: -I${includedir} +--- configure.ac.orig 1970-01-01 01:00:00.000000000 +0100 ++++ configure.ac 2009-08-20 00:25:49.000000000 +0100 +@@ -0,0 +1,181 @@ +AC_PREREQ(2.59) +AC_INIT([cfitsio], [3.140], [pence@tetra.gsfc.nasa.gov]) +AC_CONFIG_SRCDIR([fitscore.c]) @@ -17,29 +35,34 @@ + +AC_MSG_CHECKING([whether to enable fortran interface]) +AC_ARG_ENABLE([fortran], -+ AS_HELP_STRING([--enable-fortran], [Build the fortran interface]), -+ [ENABLE_FORTRAN=$enableval -+ AC_MSG_RESULT([$enableval])], -+ [ENABLE_FORTRAN=no -+ AC_MSG_RESULT([no])] -+) ++ [AS_HELP_STRING([--enable-fortran], [Compile the fortran interface [default=yes]])], ++ [ENABLE_FORTRAN=$enableval]) + -+if test x"$ENABLE_FORTRAN" = x"yes" ; then -+ AC_PROG_F77 -+ if test x$F77 = xg77; then ++case x"$ENABLE_FORTRAN" in ++ *) ++ ENABLE_FORTRAN=yes ++ AC_MSG_RESULT([yes]) ++ AC_PROG_F77 ++ if test x$F77 = xg77; then + cfortran_def=g77Fortran -+ elif test x$F77 = xifort ; then ++ elif test x$F77 = xifort ; then + cfortran_def=INTEL_COMPILER -+ elif test x$F77 = xgfortran ; then ++ elif test x$F77 = xgfortran ; then + cfortran_def=gFortran -+ elif test x$F77 = xpgf77 ; then ++ elif test x$F77 = xpgf77 ; then + cfortran_def=pgiFortran -+ else ++ else + cfortran_def=f2cFortran -+ fi -+ CPPFLAGS_FORTRAN="-D$cfortran_def" -+ AC_SUBST(CPPFLAGS_FORTRAN) -+fi ++ fi ++ CPPFLAGS_FORTRAN="-D$cfortran_def" ++ AC_SUBST(CPPFLAGS_FORTRAN) ++ ;; ++ xno) ++ ENABLE_FORTRAN=no ++ AC_MSG_RESULT([no]) ++ ;; ++esac ++ +AC_SUBST([ENABLE_FORTRAN]) +AM_CONDITIONAL([ENABLE_FORTRAN], test "x$ENABLE_FORTRAN" = "xyes") + @@ -93,6 +116,7 @@ + [Define to 1 if your compiler supports long long])] +) +dnl check for flock_t ++AC_MSG_CHECKING([for flock_t in sys/fcntl.h]) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[ +#include <sys/fcntl.h> @@ -100,10 +124,11 @@ +flock_t filler; + ]])], + [AC_DEFINE(HAVE_FLOCK_T, 1, [if you have flock_t]) -+ AC_MSG_RESULT("yes")], -+ [AC_MSG_RESULT("no") ]) ++ AC_MSG_RESULT([yes])], ++ [AC_MSG_RESULT([no]) ]) + +if test "$HAVE_FLOCK_T" != 1; then ++ AC_MSG_CHECKING([for flock_t in sys/flock.h]) + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[ +#include <sys/flock.h> @@ -111,8 +136,8 @@ +flock_t filler; + ]])], + [AC_DEFINE(HAVE_FLOCK_T, 1, [if you have flock_t]) -+ AC_MSG_RESULT("yes")], -+ [AC_MSG_RESULT("no") ]) ++ AC_MSG_RESULT([yes])], ++ [AC_MSG_RESULT([no]) ]) +fi + +# check for union semun type @@ -128,40 +153,56 @@ +dnl this quick check will add -lm to LIBS +AC_CHECK_LIB(m, cos) + -+AC_ARG_WITH(gsiftp-flavour, -+ [ --with-gsiftp-flavour[[=PATH]] Enable Globus Toolkit gsiftp protocol support ], -+ [ if test "x$withval" != "xno"; then ++AC_ARG_WITH([gsiftp-flavour], ++ [AC_HELP_STRING([--with-gsiftp-flavour[=PATH]], [Compile with a given Globus Toolkit gsiftp protocol flavour])], ++ , ++ [withval=no]) + -+ if test "x$withval" != "xyes" ; then -+ GSIFTP_FLAVOUR=${withval} -+ fi -+ AC_DEFINE(GSIFTP_FLAVOUR, [1], ++case x$withval in ++ xno) ++ AC_MSG_CHECKING([for Globus flavor]) ++ AC_MSG_RESULT([none]) ++ ;; ++ xyes) ++ AC_MSG_RESULT([yes]) ++ ;; ++ *) ++ AC_MSG_RESULT([$withval]) ++ GSIFTP_FLAVOUR=$withval ++ AC_DEFINE(GSIFTP_FLAVOUR, [1], + [Define to 1 if you want Globus Toolkit architecture]) -+ fi -+ ] -+) ++ ;; ++esac + +AC_ARG_WITH(gsiftp, -+ [ --with-gsiftp[[=PATH]] Enable Globus Toolkit gsiftp protocol support ], -+ [ if test "x$withval" != "xno"; then -+ if test "x$withval" != "xyes" ; then -+ CPPFLAGS_GLOBUS="-I${withval}/include/${GSIFTP_FLAVOUR}" -+ LIBS_GLOBUS="-L${withval}/lib -lglobus_ftp_client_${GSIFTP_FLAVOUR}" -+ HAVE_GSIFTP=yes -+ fi -+ AC_DEFINE(HAVE_GSIFTP, [1], ++ [AC_HELP_STRING([--with-gsiftp[=PATH]], [Compile with Globus Toolkit gsiftp protocol support [default=no]])], ++ , ++ [withval=no]) ++case "x$withval" in ++ xno) ++ AC_MSG_CHECKING([for Globus Toolkit]) ++ AC_MSG_RESULT([no]) ++ ;; ++ xyes) ++ AC_MSG_RESULT([yes]) ++ ;; ++ *) ++ AC_MSG_RESULT([yes]) ++ CPPFLAGS_GLOBUS="-I${withval}/include/${GSIFTP_FLAVOUR}" ++ LIBS_GLOBUS="-L${withval}/lib -lglobus_ftp_client_${GSIFTP_FLAVOUR}" ++ HAVE_GSIFTP=yes ++ AC_DEFINE(HAVE_GSIFTP, [1], + [Define if you want Globus Toolkit gsiftp protocol support]) -+ fi -+ ] -+) ++ ;; ++esac + +AC_SUBST(CPPFLAGS_GLOBUS) +AC_SUBST(LIBS_GLOBUS) +AC_CONFIG_FILES([Makefile cfitsio.pc]) +AC_OUTPUT ---- Makefile.am.absent 1970-01-01 01:00:00.000000000 +0100 -+++ Makefile.am 2008-06-02 01:07:45.000000000 +0100 -@@ -0,0 +1,81 @@ +--- Makefile.am.orig 1970-01-01 01:00:00.000000000 +0100 ++++ Makefile.am 2009-08-20 00:45:37.000000000 +0100 +@@ -0,0 +1,86 @@ +lib_LTLIBRARIES = libcfitsio.la + +C_SOURCES = \ @@ -184,6 +225,9 @@ +AM_YFLAGS = -d -v + +include_HEADERS = fitsio.h fitsio2.h longnam.h drvrsmem.h ++noinst_HEADERS = cfortran.h drvrgsiftp.h eval_defs.h f77_wrap.h group.h \ ++ compress.h eval_tab.h fpack.h grparser.h region.h ++ +libcfitsio_la_SOURCES = $(C_SOURCES) $(F77_SOURCES) $(include_HEADERS) +libcfitsio_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ +libcfitsio_la_CPPFLAGS = @CPPFLAGS_FORTRAN@ @CPPFLAGS_EXTRA@ @CPPFLAGS_GLOBUS@ @@ -214,6 +258,8 @@ +testf77_SOURCES = testf77.f +endif + ++EXTRA_DIST = README README.MacOS README.win32 License.txt changes.txt cfitsio.doc fitsio.doc cfitsio.tex fitsio.tex quick.tex ++ +check-local: $(check_PROGRAMS) + @total=0; failed=0; \ + for i in $(check_PROGRAMS); do \ @@ -243,21 +289,3 @@ + sed -e 's/yy/ff/g' -e 's/YY/FF/g' y.tab.c > eval_y.c; \ + sed -e 's/yy/ff/g' -e 's/YY/FF/g' y.tab.h > eval_tab.h; \ + rm -f y.tab.c y.tab.h ---- cfitsio.pc.in.orig 2008-06-02 01:20:50.000000000 +0100 -+++ cfitsio.pc.in 2008-06-02 01:22:14.000000000 +0100 -@@ -1,10 +1,10 @@ - prefix=@prefix@ - exec_prefix=@exec_prefix@ --libdir=${exec_prefix}/lib --includedir=${prefix}/include -+libdir=@libdir@ -+includedir=@includedir@ - --Name: cfitsio -+Name: @PACKAGE_NAME@ - Description: FITS File Subroutine Library --Version: 3.006 --Libs: -L${libdir} -lcfitsio @LIBS@ -lm -+Version: @PACKAGE_VERSION@ -+Libs: -L${libdir} -lcfitsio @LIBS@ - Cflags: -I${includedir} |