summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-06-30 13:28:45 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-06-30 13:28:45 +0000
commit42643d5f5487a4c52f4e8ab58120cb77cb556c02 (patch)
treea7d5611b2307c5bfd95c2dad45294e6089c73eb7 /sci-mathematics/pspp
parentRemove media-plugins/audacious-crossfade as per bug #222883. (diff)
downloadgentoo-2-42643d5f5487a4c52f4e8ab58120cb77cb556c02.tar.gz
gentoo-2-42643d5f5487a4c52f4e8ab58120cb77cb556c02.tar.bz2
gentoo-2-42643d5f5487a4c52f4e8ab58120cb77cb556c02.zip
Version bump including patch to allow compilation with gcc-4.3 #229905).
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-SENTINEL-3 i686)
Diffstat (limited to 'sci-mathematics/pspp')
-rw-r--r--sci-mathematics/pspp/ChangeLog9
-rw-r--r--sci-mathematics/pspp/files/pspp-0.6.0-disable-inline.patch109
-rw-r--r--sci-mathematics/pspp/pspp-0.6.0.ebuild80
3 files changed, 197 insertions, 1 deletions
diff --git a/sci-mathematics/pspp/ChangeLog b/sci-mathematics/pspp/ChangeLog
index ee21e5189d34..59df3e9ff2b3 100644
--- a/sci-mathematics/pspp/ChangeLog
+++ b/sci-mathematics/pspp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-mathematics/pspp
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/ChangeLog,v 1.5 2008/02/03 12:03:23 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/ChangeLog,v 1.6 2008/06/30 13:28:44 markusle Exp $
+
+*pspp-0.6.0 (30 Jun 2008)
+
+ 30 Jun 2008; Markus Dittrich <markusle@gentoo.org>
+ +files/pspp-0.6.0-disable-inline.patch, +pspp-0.6.0.ebuild:
+ Version bump including patch to allow compilation with gcc-4.3 (see bug
+ #229905).
03 Feb 2008; Markus Dittrich <markusle@gentoo.org> pspp-0.4.0.ebuild:
Added bindist USE flag to prevent linking against GPL-3d >=gsl-1.10
diff --git a/sci-mathematics/pspp/files/pspp-0.6.0-disable-inline.patch b/sci-mathematics/pspp/files/pspp-0.6.0-disable-inline.patch
new file mode 100644
index 000000000000..4d93545b4453
--- /dev/null
+++ b/sci-mathematics/pspp/files/pspp-0.6.0-disable-inline.patch
@@ -0,0 +1,109 @@
+diff -Naur pspp-0.6.0/Makefile.in pspp-0.6.0.new/Makefile.in
+--- pspp-0.6.0/Makefile.in 2008-06-05 00:28:32.000000000 -0400
++++ pspp-0.6.0.new/Makefile.in 2008-06-29 15:53:51.000000000 -0400
+@@ -126,7 +126,7 @@
+ $(top_srcdir)/gl/m4/iconv_h.m4 \
+ $(top_srcdir)/gl/m4/iconv_open.m4 \
+ $(top_srcdir)/gl/m4/include_next.m4 \
+- $(top_srcdir)/gl/m4/inline.m4 $(top_srcdir)/gl/m4/intmax_t.m4 \
++ $(top_srcdir)/gl/m4/intmax_t.m4 \
+ $(top_srcdir)/gl/m4/inttostr.m4 \
+ $(top_srcdir)/gl/m4/isfinite.m4 $(top_srcdir)/gl/m4/isnand.m4 \
+ $(top_srcdir)/gl/m4/isnanf.m4 $(top_srcdir)/gl/m4/isnanl.m4 \
+diff -Naur pspp-0.6.0/aclocal.m4 pspp-0.6.0.new/aclocal.m4
+--- pspp-0.6.0/aclocal.m4 2008-06-05 00:28:16.000000000 -0400
++++ pspp-0.6.0.new/aclocal.m4 2008-06-29 15:53:51.000000000 -0400
+@@ -7746,7 +7746,6 @@
+ m4_include([gl/m4/iconv_h.m4])
+ m4_include([gl/m4/iconv_open.m4])
+ m4_include([gl/m4/include_next.m4])
+-m4_include([gl/m4/inline.m4])
+ m4_include([gl/m4/intmax_t.m4])
+ m4_include([gl/m4/inttostr.m4])
+ m4_include([gl/m4/isfinite.m4])
+diff -Naur pspp-0.6.0/gl/Makefile.in pspp-0.6.0.new/gl/Makefile.in
+--- pspp-0.6.0/gl/Makefile.in 2008-06-05 00:28:30.000000000 -0400
++++ pspp-0.6.0.new/gl/Makefile.in 2008-06-29 15:53:51.000000000 -0400
+@@ -79,7 +79,7 @@
+ $(top_srcdir)/gl/m4/iconv_h.m4 \
+ $(top_srcdir)/gl/m4/iconv_open.m4 \
+ $(top_srcdir)/gl/m4/include_next.m4 \
+- $(top_srcdir)/gl/m4/inline.m4 $(top_srcdir)/gl/m4/intmax_t.m4 \
++ $(top_srcdir)/gl/m4/intmax_t.m4 \
+ $(top_srcdir)/gl/m4/inttostr.m4 \
+ $(top_srcdir)/gl/m4/isfinite.m4 $(top_srcdir)/gl/m4/isnand.m4 \
+ $(top_srcdir)/gl/m4/isnanf.m4 $(top_srcdir)/gl/m4/isnanl.m4 \
+diff -Naur pspp-0.6.0/gl/m4/gnulib-comp.m4 pspp-0.6.0.new/gl/m4/gnulib-comp.m4
+--- pspp-0.6.0/gl/m4/gnulib-comp.m4 2008-06-05 00:24:02.000000000 -0400
++++ pspp-0.6.0.new/gl/m4/gnulib-comp.m4 2008-06-29 16:01:31.000000000 -0400
+@@ -95,7 +95,6 @@
+ AM_ICONV
+ gl_ICONV_H
+ gl_FUNC_ICONV_OPEN
+- gl_INLINE
+ gl_INTTOSTR
+ gl_ISFINITE
+ gl_MATH_MODULE_INDICATOR([isfinite])
+@@ -625,7 +624,6 @@
+ m4/iconv_h.m4
+ m4/iconv_open.m4
+ m4/include_next.m4
+- m4/inline.m4
+ m4/intmax_t.m4
+ m4/inttostr.m4
+ m4/inttypes_h.m4
+diff -Naur pspp-0.6.0/gl/m4/inline.m4 pspp-0.6.0.new/gl/m4/inline.m4
+--- pspp-0.6.0/gl/m4/inline.m4 2008-05-13 12:20:04.000000000 -0400
++++ pspp-0.6.0.new/gl/m4/inline.m4 1969-12-31 19:00:00.000000000 -0500
+@@ -1,40 +0,0 @@
+-# inline.m4 serial 3
+-dnl Copyright (C) 2006 Free Software Foundation, Inc.
+-dnl This file is free software; the Free Software Foundation
+-dnl gives unlimited permission to copy and/or distribute it,
+-dnl with or without modifications, as long as this notice is preserved.
+-
+-dnl Test for the 'inline' keyword or equivalent.
+-dnl Define 'inline' to a supported equivalent, or to nothing if not supported,
+-dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an
+-dnl equivalent is effectively supported, i.e. if the compiler is likely to
+-dnl drop unused 'static inline' functions.
+-AC_DEFUN([gl_INLINE],
+-[
+- AC_REQUIRE([AC_C_INLINE])
+- AC_CACHE_CHECK([whether the compiler generally respects inline],
+- [gl_cv_c_inline_effective],
+- [if test $ac_cv_c_inline = no; then
+- gl_cv_c_inline_effective=no
+- else
+- dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is
+- dnl specified.
+- dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result
+- dnl depends on optimization flags, which can be in CFLAGS.
+- dnl (AC_EGREP_CPP looks only at the CPPFLAGS.)
+- AC_COMPILE_IFELSE(
+- [AC_LANG_PROGRAM([[]],
+- [[#ifdef __NO_INLINE__
+- #error "inline is not effective"
+- #endif]])],
+- [gl_cv_c_inline_effective=yes],
+- [gl_cv_c_inline_effective=no])
+- fi
+- ])
+- if test $gl_cv_c_inline_effective = yes; then
+- AC_DEFINE([HAVE_INLINE], 1,
+- [Define to 1 if the compiler supports one of the keywords
+- 'inline', '__inline__', '__inline' and effectively inlines
+- functions marked as such.])
+- fi
+-])
+diff -Naur pspp-0.6.0/gl/m4/xalloc.m4 pspp-0.6.0.new/gl/m4/xalloc.m4
+--- pspp-0.6.0/gl/m4/xalloc.m4 2008-05-13 12:20:04.000000000 -0400
++++ pspp-0.6.0.new/gl/m4/xalloc.m4 2008-06-29 16:01:17.000000000 -0400
+@@ -14,7 +14,6 @@
+
+ # Prerequisites of lib/xalloc.h.
+ AC_DEFUN([gl_PREREQ_XALLOC], [
+- AC_REQUIRE([gl_INLINE])
+ :
+ ])
+
diff --git a/sci-mathematics/pspp/pspp-0.6.0.ebuild b/sci-mathematics/pspp/pspp-0.6.0.ebuild
new file mode 100644
index 000000000000..4badf370f260
--- /dev/null
+++ b/sci-mathematics/pspp/pspp-0.6.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/pspp-0.6.0.ebuild,v 1.1 2008/06/30 13:28:44 markusle Exp $
+
+inherit elisp-common autotools
+
+DESCRIPTION="Program for statistical analysis of sampled data."
+HOMEPAGE="http://www.gnu.org/software/pspp/pspp.html"
+SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ncurses emacs plotutils nls psppire"
+
+RDEPEND="sci-libs/gsl
+ sys-libs/readline
+ >=sys-devel/gettext-0.14.1
+ >=dev-lang/perl-5.6
+ virtual/libiconv
+ ncurses? ( >=sys-libs/ncurses-5.4 )
+ plotutils? ( >=media-libs/plotutils-2.4.1 )
+ emacs? ( virtual/emacs )
+ psppire? ( >=x11-libs/gtk+-2.12
+ >=gnome-base/libglade-2.6 )"
+
+DEPEND="${RDEPEND}
+ psppire? ( dev-util/pkgconfig )"
+
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-disable-inline.patch
+ eautoreconf
+}
+
+
+src_compile() {
+ econf \
+ $(use_with plotutils libplot) \
+ $(use_with ncurses libncurses) \
+ $(use_enable nls) \
+ $(use_with psppire gui) \
+ || die "econf failed"
+ emake || die "emake failed"
+ if use doc; then
+ emake html || die "emake html failed"
+ fi
+
+ use emacs && elisp-compile *.el
+
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog \
+ INSTALL NEWS ONEWS README THANKS TODO
+ docinto examples && dodoc examples/{ChangeLog,descript.stat}
+
+ use doc && dohtml doc/pspp.html/*
+ if use emacs; then
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ if use psppire; then
+ make_desktop_entry psppire psppire src/ui/gui/${PN}icon.png
+ fi
+}
+
+pkg_postinst () {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}