diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-03-02 15:30:07 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-03-02 15:30:07 +0000 |
commit | 881f27c2348ede9ff44a2cd7f164d4c5cccdc0dc (patch) | |
tree | 827c65d194a68117fe5646e79988c1b5079ccf37 /sci-visualization | |
parent | Version bump. (diff) | |
download | gentoo-2-881f27c2348ede9ff44a2cd7f164d4c5cccdc0dc.tar.gz gentoo-2-881f27c2348ede9ff44a2cd7f164d4c5cccdc0dc.tar.bz2 gentoo-2-881f27c2348ede9ff44a2cd7f164d4c5cccdc0dc.zip |
version bump.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/pyxplot/ChangeLog | 10 | ||||
-rw-r--r-- | sci-visualization/pyxplot/files/0.6.3-dont-build-pyx.patch | 23 | ||||
-rw-r--r-- | sci-visualization/pyxplot/files/0.6.3-respect-destdir.patch | 38 | ||||
-rw-r--r-- | sci-visualization/pyxplot/files/digest-pyxplot-0.6.3 | 3 | ||||
-rw-r--r-- | sci-visualization/pyxplot/metadata.xml | 6 | ||||
-rw-r--r-- | sci-visualization/pyxplot/pyxplot-0.6.3.ebuild | 77 |
6 files changed, 156 insertions, 1 deletions
diff --git a/sci-visualization/pyxplot/ChangeLog b/sci-visualization/pyxplot/ChangeLog index 3ad6c82a6802..8891a298966e 100644 --- a/sci-visualization/pyxplot/ChangeLog +++ b/sci-visualization/pyxplot/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-visualization/pyxplot # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/ChangeLog,v 1.3 2007/02/19 12:53:16 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/ChangeLog,v 1.4 2007/03/02 15:30:07 bicatali Exp $ + +*pyxplot-0.6.3 (02 Mar 2007) + + 02 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/0.6.3-dont-build-pyx.patch, +files/0.6.3-respect-destdir.patch, + metadata.xml, +pyxplot-0.6.3.ebuild: + Version bump. Added xdg-utils dependency to plot postcript files. + Cleani, new patches. 19 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> pyxplot-0.5.8.ebuild: keyword ~amd64. diff --git a/sci-visualization/pyxplot/files/0.6.3-dont-build-pyx.patch b/sci-visualization/pyxplot/files/0.6.3-dont-build-pyx.patch new file mode 100644 index 000000000000..5925b76fd1bb --- /dev/null +++ b/sci-visualization/pyxplot/files/0.6.3-dont-build-pyx.patch @@ -0,0 +1,23 @@ +--- Makefile.skel.orig 2007-02-26 19:07:09.000000000 +0000 ++++ Makefile.skel 2007-03-01 22:01:06.000000000 +0000 +@@ -64,10 +64,6 @@ + echo "SRCDIR='${SRCDIR}'" >> src/gp_version_install.py + echo "DOCDIR='${DOCDIR}'" >> src/gp_version_install.py + echo "GHOSTVIEW='${GV_COMMAND}'" >> src/gp_version_install.py +- rm -rf src/pyx +- gzip -dc PyX-0.9.tar.gz | tar xf - +- mv -f PyX-0.9/pyx src +- rm -rf PyX-0.9 + chmod 755 src/__init__.py + ${MAKE_COMMAND} -s -C doc PYXPLOT=../src/__init__.py + echo "exit" | src/__init__.py +@@ -78,9 +74,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/0.6.3-respect-destdir.patch b/sci-visualization/pyxplot/files/0.6.3-respect-destdir.patch new file mode 100644 index 000000000000..9d6a1ae8d7e7 --- /dev/null +++ b/sci-visualization/pyxplot/files/0.6.3-respect-destdir.patch @@ -0,0 +1,38 @@ +--- Makefile.skel.orig 2007-03-01 22:01:06.000000000 +0000 ++++ Makefile.skel 2007-03-02 15:23:06.000000000 +0000 +@@ -73,19 +73,19 @@ + ln -s src/__init__.py pyxplot + + install: +- install -d ${SRCDIR} ${BINDIR} ${DOCDIR} ${MANDIR} ${DOCDIR}/examples ${DOCDIR}/examples/eps +- install -m644 src/*.py ${SRCDIR} +- install -m644 src/gp_version_install.py ${SRCDIR}/gp_version.py +- install -m644 src/*.pyc ${SRCDIR} +- install -m644 src/*.xml ${SRCDIR} +- install -m755 src/__init__.py ${SRCDIR} +- install -m755 src/pyxplot_watch ${SRCDIR} +- rm -f ${BINDIR}/pyxplot +- ln -s ${SRCDIR}/__init__.py ${BINDIR}/pyxplot +- rm -f ${BINDIR}/pyxplot_watch +- ln -s ${SRCDIR}/pyxplot_watch ${BINDIR}/pyxplot_watch +- install -m644 doc/pyxplot.tex doc/pyxplot.pdf ${DOCDIR} +- install -m644 doc/examples/ex_* ${DOCDIR}/examples +- install -m644 doc/examples/eps/* ${DOCDIR}/examples/eps +- install -m644 pyxplot.1 ${MANDIR}/pyxplot.1 +- install -m644 pyxplot_watch.1 ${MANDIR}/pyxplot_watch.1 ++ install -d ${DESTDIR} ${DESTDIR}/${SRCDIR} ${DESTDIR}/${BINDIR} ${DESTDIR}/${DOCDIR} ${DESTDIR}/${MANDIR} ${DESTDIR}/${DOCDIR}/examples ${DESTDIR}/${DOCDIR}/examples/eps ++ install -m644 src/*.py ${DESTDIR}/${SRCDIR} ++ install -m644 src/gp_version_install.py ${DESTDIR}/${SRCDIR}/gp_version.py ++ install -m644 src/*.pyc ${DESTDIR}/${SRCDIR} ++ install -m644 src/*.xml ${DESTDIR}/${SRCDIR} ++ install -m755 src/__init__.py ${DESTDIR}/${SRCDIR} ++ install -m755 src/pyxplot_watch ${DESTDIR}/${SRCDIR} ++ rm -f ${DESTDIR}/${BINDIR}/pyxplot ++ ln -s ${SRCDIR}/__init__.py ${DESTDIR}/${BINDIR}/pyxplot ++ rm -f ${DESTDIR}/${BINDIR}/pyxplot_watch ++ ln -s ${SRCDIR}/pyxplot_watch ${DESTDIR}/${BINDIR}/pyxplot_watch ++ install -m644 doc/pyxplot.tex doc/pyxplot.pdf ${DESTDIR}/${DOCDIR} ++ install -m644 doc/examples/ex_* ${DESTDIR}/${DOCDIR}/examples ++ install -m644 doc/examples/eps/* ${DESTDIR}/${DOCDIR}/examples/eps ++ install -m644 pyxplot.1 ${DESTDIR}/${MANDIR}/pyxplot.1 ++ install -m644 pyxplot_watch.1 ${DESTDIR}/${MANDIR}/pyxplot_watch.1 diff --git a/sci-visualization/pyxplot/files/digest-pyxplot-0.6.3 b/sci-visualization/pyxplot/files/digest-pyxplot-0.6.3 new file mode 100644 index 000000000000..4eb7e87b3217 --- /dev/null +++ b/sci-visualization/pyxplot/files/digest-pyxplot-0.6.3 @@ -0,0 +1,3 @@ +MD5 1fde6f074f788d83e8cbb0015b0134ef pyxplot_0.6.3.tar.gz 859075 +RMD160 064b9394ceb09be931d32c0563319c899ff16ba7 pyxplot_0.6.3.tar.gz 859075 +SHA256 05a617eaae96a1b496274d664ffc1cd99756897ced0db1a1944bb61552c9206f pyxplot_0.6.3.tar.gz 859075 diff --git a/sci-visualization/pyxplot/metadata.xml b/sci-visualization/pyxplot/metadata.xml index b229aec85b8f..417995a13b72 100644 --- a/sci-visualization/pyxplot/metadata.xml +++ b/sci-visualization/pyxplot/metadata.xml @@ -2,4 +2,10 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>sci</herd> +<longdescription lang="en"> +PyXPlot is a command-line graphing package with a simple interface +that produces publication-quality output. Its command line interface is very +gnuplot oriented and has actually some compatibility. The output +is based on LaTeX typesetting environment. +</longdescription> </pkgmetadata> diff --git a/sci-visualization/pyxplot/pyxplot-0.6.3.ebuild b/sci-visualization/pyxplot/pyxplot-0.6.3.ebuild new file mode 100644 index 000000000000..4a43bc3438c5 --- /dev/null +++ b/sci-visualization/pyxplot/pyxplot-0.6.3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/pyxplot-0.6.3.ebuild,v 1.1 2007/03/02 15:30:07 bicatali Exp $ + +inherit eutils python + +DESCRIPTION="Graphing program similar to gnuplot to produce 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="" +# test is actually done during emake in src_compile +RESTRICT="test" + +# should use xdg-utils once those are working for postcript viewers +RDEPEND=">=dev-python/pyx-0.9 + sci-libs/scipy + virtual/tetex + virtual/ghostscript + || ( app-text/gv app-text/ggv ) + media-gfx/imagemagick" +DEPEND="${RDEPEND}" +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e "s:^\(USRDIR=\).*:\1/usr:g" \ + -e 's:^\(MANDIR=\).*:\1${USRDIR}/share/man/man1:g' \ + -e "s:^\(DOCDIR=\).*:\1\${USRDIR}/share/doc/${PF}:g" \ + "${S}"/Makefile.skel + epatch "${FILESDIR}"/${PV}-dont-build-pyx.patch + # Depends on dont-build-pyx.patch + epatch "${FILESDIR}"/${PV}-respect-destdir.patch + + # It doesn't come with precompiled .pyc files, + # so fails if we try to install them. + sed -i \ + -e "/pyc/d" \ + "${S}"/Makefile.skel || die "sed pyx failed" + + # allows proper commands + sed -i \ + -e 's/${MAKE_COMMAND}/$(MAKE)/g' \ + -e "s:\${PYTHON_COMMAND}:/usr/bin/python$(python_version):g" \ + "${S}"/Makefile.skel || die "sed commands failed" + + # install fig_init for examples to work once installed + sed -i \ + -e 's/ex_\*/{ex_,fig}\*/' \ + "${S}"/Makefile.skel || die "sed examples failed" + +} + +src_compile() { + # latex... + addwrite /var/cache/fonts + + econf || die "econf failed" + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README AUTHORS ChangeLog +} + +pkg_postinst() { + python_mod_optimize ${ROOT}usr/share/pyxplot +} + +pkg_postrm() { + python_mod_cleanup ${ROOT}usr/share/pyxplot +} |