summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-06-12 15:54:12 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-06-12 15:54:12 +0000
commit83614c441200d1793f06e7e3400bbf7dc6a27dbc (patch)
tree4e7b00fb559cb419c59b3226fe05df42019ce4b8 /sci-visualization/pyxplot
parentRemove older versions (diff)
downloadgentoo-2-83614c441200d1793f06e7e3400bbf7dc6a27dbc.tar.gz
gentoo-2-83614c441200d1793f06e7e3400bbf7dc6a27dbc.tar.bz2
gentoo-2-83614c441200d1793f06e7e3400bbf7dc6a27dbc.zip
Version bump. Add dependency on gsl, fftw, cfitsio. Fix more linking problems and flags propagation
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization/pyxplot')
-rw-r--r--sci-visualization/pyxplot/ChangeLog10
-rw-r--r--sci-visualization/pyxplot/files/0.7.0-dont-build-pyx.patch23
-rw-r--r--sci-visualization/pyxplot/files/pyxplot-0.8.1-linking.patch113
-rw-r--r--sci-visualization/pyxplot/pyxplot-0.8.1.ebuild46
4 files changed, 168 insertions, 24 deletions
diff --git a/sci-visualization/pyxplot/ChangeLog b/sci-visualization/pyxplot/ChangeLog
index 7c3949a1d04c..7da7b8307175 100644
--- a/sci-visualization/pyxplot/ChangeLog
+++ b/sci-visualization/pyxplot/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-visualization/pyxplot
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/ChangeLog,v 1.17 2010/06/04 17:03:33 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/ChangeLog,v 1.18 2010/06/12 15:54:12 bicatali Exp $
+
+*pyxplot-0.8.1 (12 Jun 2010)
+
+ 12 Jun 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/0.7.0-dont-build-pyx.patch, +pyxplot-0.8.1.ebuild,
+ +files/pyxplot-0.8.1-linking.patch:
+ Version bump. Add dependency on gsl, fftw, cfitsio. Fix more linking
+ problems and flags propagation
04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
pyxplot-0.7.1.ebuild:
diff --git a/sci-visualization/pyxplot/files/0.7.0-dont-build-pyx.patch b/sci-visualization/pyxplot/files/0.7.0-dont-build-pyx.patch
deleted file mode 100644
index 8cfe5f68dac9..000000000000
--- a/sci-visualization/pyxplot/files/0.7.0-dont-build-pyx.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- Makefile.skel.orig 2008-12-08 20:44:22.028136399 +0000
-+++ Makefile.skel 2008-12-08 20:27:10.546223231 +0000
-@@ -68,10 +68,6 @@
- echo "DOCDIR='${DOCDIR}'" >> src/gp_version_install.py
- echo "GHOSTVIEW='${GV_COMMAND}'" >> src/gp_version_install.py
- echo "GHOSTVIEW_OPT='${GV_OPT}'" >> src/gp_version_install.py
-- rm -rf src/pyx
-- gzip -dc PyX-0.10.tar.gz | tar xf -
-- mv -f PyX-0.10/pyx src
-- rm -rf PyX-0.10
- chmod 755 src/__init__.py
- echo "exit" | src/__init__.py
- ${PYTHON_COMMAND} manpage_pyxplot.py ${DOCDIR}/pyxplot.pdf > pyxplot.1
-@@ -81,9 +77,6 @@
-
- install:
- install -d ${SRCDIR} ${BINDIR} ${DOCDIR} ${MANDIR} ${DOCDIR}/examples ${DOCDIR}/examples/eps
-- rm -rf ${SRCDIR}/pyx
-- cp -r src/pyx ${SRCDIR}
-- chmod -R 755 ${SRCDIR}/pyx
- install -m644 src/*.py ${SRCDIR}
- install -m644 src/gp_version_install.py ${SRCDIR}/gp_version.py
- install -m644 src/*.pyc ${SRCDIR}
diff --git a/sci-visualization/pyxplot/files/pyxplot-0.8.1-linking.patch b/sci-visualization/pyxplot/files/pyxplot-0.8.1-linking.patch
new file mode 100644
index 000000000000..cc96de257889
--- /dev/null
+++ b/sci-visualization/pyxplot/files/pyxplot-0.8.1-linking.patch
@@ -0,0 +1,113 @@
+--- Makefile.skel.orig 2010-06-12 16:42:31.000000000 +0100
++++ Makefile.skel 2010-06-12 16:54:10.000000000 +0100
+@@ -39,12 +39,10 @@
+ VERSION = 0.8.1
+ DATE = 01/06/2010
+
+-COMPILE = $(CC) -Wall -g `xml2-config --cflags` `gsl-config --cflags` -c -I $(CWD)/src
+-LINK = $(CC) -Wall -g `xml2-config --libs` `gsl-config --libs` -lm $(LINK_FFTW) $(LINK_READLINE) -lz -lpng -lkpathsea
++COMPILE = $(CC) -Wall `xml2-config --cflags` `pkg-config --cflags gsl cfitsio` -c -I $(CWD)/src
++LIBS = `xml2-config --libs` `pkg-config --libs gsl` $(LINK_FFTW) $(LINK_READLINE) -lm -lz -lpng -lkpathsea
+
+-OPTIMISATION = -O0
+-
+-DEBUG = -D DEBUG=1 -D MEMDEBUG1=1 -D MEMDEBUG2=0
++DEBUG = -g -D DEBUG=1 -D MEMDEBUG1=1 -D MEMDEBUG2=0
+ NODEBUG = -D DEBUG=0 -D MEMDEBUG1=0 -D MEMDEBUG2=0
+
+ LOCAL_SRCDIR = src
+@@ -101,15 +99,15 @@
+
+ $(LOCAL_OBJDIR)/%.o: $(LOCAL_SRCDIR)/%.c $(ALL_HFILES)
+ mkdir -p $(LOCAL_OBJDIR) $(LOCAL_OBJDIR)/EPSMaker $(LOCAL_OBJDIR)/Helpers $(LOCAL_OBJDIR)/ListTools $(LOCAL_OBJDIR)/MathsTools $(LOCAL_OBJDIR)/StringTools
+- $(COMPILE) $(OPTIMISATION) $(NODEBUG) $(NOINSTALL_SWITCHES) $< -o $@
++ $(COMPILE) $(CFLAGS) $(NODEBUG) $(NOINSTALL_SWITCHES) $< -o $@
+
+ $(LOCAL_OBJDIR)/%.debug.o: $(LOCAL_SRCDIR)/%.c $(ALL_HFILES)
+ mkdir -p $(LOCAL_OBJDIR) $(LOCAL_OBJDIR)/EPSMaker $(LOCAL_OBJDIR)/Helpers $(LOCAL_OBJDIR)/ListTools $(LOCAL_OBJDIR)/MathsTools $(LOCAL_OBJDIR)/StringTools
+- $(COMPILE) $(OPTIMISATION) $(DEBUG) $(DEBUG_SWITCHES) $< -o $@
++ $(COMPILE) $(CFLAGS) $(DEBUG) $(DEBUG_SWITCHES) $< -o $@
+
+ $(LOCAL_OBJDIR)/%.install.o: $(LOCAL_SRCDIR)/%.c $(ALL_HFILES)
+ mkdir -p $(LOCAL_OBJDIR) $(LOCAL_OBJDIR)/EPSMaker $(LOCAL_OBJDIR)/Helpers $(LOCAL_OBJDIR)/ListTools $(LOCAL_OBJDIR)/MathsTools $(LOCAL_OBJDIR)/StringTools
+- $(COMPILE) $(OPTIMISATION) $(NODEBUG) $(INSTALL_SWITCHES) $< -o $@
++ $(COMPILE) $(CFLAGS) $(NODEBUG) $(INSTALL_SWITCHES) $< -o $@
+
+ #
+ # Make the pyxplot binaries
+@@ -117,17 +115,17 @@
+
+ $(LOCAL_BINDIR)/pyxplot: $(PPL_OBJECTS)
+ mkdir -p $(LOCAL_BINDIR)
+- $(LINK) $(OPTIMISATION) $(PPL_OBJECTS) -o $(LOCAL_BINDIR)/pyxplot
++ $(CC) $(LDFLAGS) $(PPL_OBJECTS) $(LIBS) -o $(LOCAL_BINDIR)/pyxplot
+
+ $(LOCAL_BINDIR)/debug/pyxplot: $(PPL_OBJECTS_DEBUG)
+ mkdir -p $(LOCAL_BINDIR)/debug
+ echo "The files in this directory are binaries with debugging options enabled: they produce activity logs called 'pyxplot.log'. It should be noted that these binaries can up to ten times slower than non-debugging versions." > $(LOCAL_BINDIR)/debug/README
+- $(LINK) $(OPTIMISATION) $(PPL_OBJECTS_DEBUG) -o $(LOCAL_BINDIR)/debug/pyxplot
++ $(CC) $(LDFLAGS) $(PPL_OBJECTS_DEBUG) $(LIBS) -o $(LOCAL_BINDIR)/debug/pyxplot
+
+ $(LOCAL_BINDIR)/install/pyxplot: $(PPL_OBJECTS_INSTALL)
+ mkdir -p $(LOCAL_BINDIR)/install
+ echo "The files in this directory are binaries intended to be installed with 'make install'. They should not be used in their present location, as they contain hard-coded links to files which are created by the 'make install' step." > $(LOCAL_BINDIR)/debug/README
+- $(LINK) $(OPTIMISATION) $(PPL_OBJECTS_INSTALL) -o $(LOCAL_BINDIR)/install/pyxplot
++ $(CC) $(LDFLAGS) $(PPL_OBJECTS_INSTALL) $(LIBS) -o $(LOCAL_BINDIR)/install/pyxplot
+
+ #
+ # Make the pyxplot_watch binaries
+@@ -135,15 +133,15 @@
+
+ $(LOCAL_BINDIR)/pyxplot_watch: $(PPLW_OBJECTS)
+ mkdir -p $(LOCAL_BINDIR)
+- $(LINK) $(OPTIMISATION) $(PPLW_OBJECTS) -o $(LOCAL_BINDIR)/pyxplot_watch
++ $(CC) $(LDFLAGS) $(PPLW_OBJECTS) $(LIBS) -o $(LOCAL_BINDIR)/pyxplot_watch
+
+ $(LOCAL_BINDIR)/debug/pyxplot_watch: $(PPLW_OBJECTS_DEBUG)
+ mkdir -p $(LOCAL_BINDIR)/debug
+- $(LINK) $(OPTIMISATION) $(PPLW_OBJECTS_DEBUG) -o $(LOCAL_BINDIR)/debug/pyxplot_watch
++ $(CC) $(LDFLAGS) $(PPLW_OBJECTS_DEBUG) $(LIBS) -o $(LOCAL_BINDIR)/debug/pyxplot_watch
+
+ $(LOCAL_BINDIR)/install/pyxplot_watch: $(PPLW_OBJECTS_INSTALL)
+ mkdir -p $(LOCAL_BINDIR)/install
+- $(LINK) $(OPTIMISATION) $(PPLW_OBJECTS_INSTALL) -o $(LOCAL_BINDIR)/install/pyxplot_watch
++ $(CC) $(LDFLAGS) $(PPLW_OBJECTS_INSTALL) $(LIBS) -o $(LOCAL_BINDIR)/install/pyxplot_watch
+
+ #
+ # Make fits helper binaries
+@@ -151,11 +149,11 @@
+
+ $(LOCAL_BINDIR)/pyxplot_fitshelper: $(FITSHELP_OBJECTS)
+ mkdir -p $(LOCAL_BINDIR)
+- $(LINK) $(LINK_FITSIO) $(OPTIMISATION) $(FITSHELP_OBJECTS) -o $(LOCAL_BINDIR)/pyxplot_fitshelper
++ $(CC) $(LDFLAGS) $(FITSHELP_OBJECTS) $(LINK_FITSIO) $(LIBS) -o $(LOCAL_BINDIR)/pyxplot_fitshelper
+
+ $(LOCAL_BINDIR)/install/pyxplot_fitshelper: $(FITSHELP_OBJECTS_INSTALL)
+ mkdir -p $(LOCAL_BINDIR)/install
+- $(LINK) $(LINK_FITSIO) $(OPTIMISATION) $(FITSHELP_OBJECTS_INSTALL) -o $(LOCAL_BINDIR)/install/pyxplot_fitshelper
++ $(CC) $(LDFLAGS) $(FITSHELP_OBJECTS_INSTALL) $(LINK_FITSIO) $(LIBS) -o $(LOCAL_BINDIR)/install/pyxplot_fitshelper
+
+ #
+ # Make time helper
+--- configure.orig 2010-06-12 16:42:24.000000000 +0100
++++ configure 2010-06-12 16:55:52.000000000 +0100
+@@ -185,7 +185,7 @@
+ rm -f conf.*
+ echo "YES"
+ echo "HAVE_READLINE=-D HAVE_READLINE=1" >> Makefile
+- echo "LINK_READLINE=-ltermcap -lreadline" >> Makefile
++ echo "LINK_READLINE=-lreadline" >> Makefile
+ else
+ rm -f conf.*
+ echo "NO"
+@@ -200,8 +200,8 @@
+ then
+ rm -f conf.*
+ echo "YES"
+- echo "HAVE_FITSIO=-D HAVE_FITSIO=1" >> Makefile
+- echo "LINK_FITSIO=-lcfitsio" >> Makefile
++ echo "HAVE_FITSIO=-D HAVE_FITSIO=1 `pkg-config --cflags cfitsio`" >> Makefile
++ echo "LINK_FITSIO=`pkg-config --libs cfitsio`" >> Makefile
+ else
+ rm -f conf.*
+ echo "NO"
diff --git a/sci-visualization/pyxplot/pyxplot-0.8.1.ebuild b/sci-visualization/pyxplot/pyxplot-0.8.1.ebuild
new file mode 100644
index 000000000000..61785c30b786
--- /dev/null
+++ b/sci-visualization/pyxplot/pyxplot-0.8.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/pyxplot-0.8.1.ebuild,v 1.1 2010/06/12 15:54:12 bicatali Exp $
+
+EAPI="2"
+PYTHON_DEPEND="2"
+
+inherit eutils python
+
+DESCRIPTION="Gnuplot like graphing program publication-quality figures"
+HOMEPAGE="http://www.pyxplot.org.uk/"
+SRC_URI="http://www.pyxplot.org.uk/src/${PN}_${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/latex-base
+ sci-libs/cfitsio
+ sci-libs/fftw:3.0
+ sci-libs/gsl
+ sci-libs/scipy
+ app-text/gv
+ || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-linking.patch
+ sed -i \
+ -e 's:/local:/:' \
+ -e "s:/lib/:/$(get_libdir)/:" \
+ -e "s:\${USRDIR}/share/${PN}:/$(python_get_sitedir)/${PN}:" \
+ -e "s:/doc/${PN}:/doc/${PF}:" \
+ Makefile.skel || die "sed Makefile.skel failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README AUTHORS ChangeLog
+}