diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2010-06-12 15:54:12 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2010-06-12 15:54:12 +0000 |
commit | 83614c441200d1793f06e7e3400bbf7dc6a27dbc (patch) | |
tree | 4e7b00fb559cb419c59b3226fe05df42019ce4b8 /sci-visualization/pyxplot/files | |
parent | Remove older versions (diff) | |
download | gentoo-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/files')
-rw-r--r-- | sci-visualization/pyxplot/files/0.7.0-dont-build-pyx.patch | 23 | ||||
-rw-r--r-- | sci-visualization/pyxplot/files/pyxplot-0.8.1-linking.patch | 113 |
2 files changed, 113 insertions, 23 deletions
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" |