From 48a8481494367ac4dfd7debfd4ca28913a077865 Mon Sep 17 00:00:00 2001 From: Junqian Gordon Xu Date: Fri, 16 Nov 2007 12:41:47 +0000 Subject: gnuplot: fix QA errors, unify, add opie terminal, closes #2299 --- packages/gnuplot/files/gnuplot.desktop | 6 ++--- packages/gnuplot/gnuplot-4.2.0/term.patch | 20 ++++++++++++++++ packages/gnuplot/gnuplot.inc | 37 ++++++++++++++++++++++++++++ packages/gnuplot/gnuplot_4.0.0.bb | 36 +++------------------------- packages/gnuplot/gnuplot_4.2.0.bb | 40 ++++--------------------------- 5 files changed, 68 insertions(+), 71 deletions(-) create mode 100644 packages/gnuplot/gnuplot-4.2.0/term.patch create mode 100644 packages/gnuplot/gnuplot.inc (limited to 'packages/gnuplot') diff --git a/packages/gnuplot/files/gnuplot.desktop b/packages/gnuplot/files/gnuplot.desktop index f108e3f46f..f67df9e193 100644 --- a/packages/gnuplot/files/gnuplot.desktop +++ b/packages/gnuplot/files/gnuplot.desktop @@ -2,7 +2,7 @@ Name=Gnuplot Comment=Plot data and function graphs Exec=x-terminal-emulator -e gnuplot -Terminal=0 +Terminal=false Type=Application -Icon=gnuplot.png -Categories=Scientific +Icon=gnuplot +Categories=Science; diff --git a/packages/gnuplot/gnuplot-4.2.0/term.patch b/packages/gnuplot/gnuplot-4.2.0/term.patch new file mode 100644 index 0000000000..41aa8e7a97 --- /dev/null +++ b/packages/gnuplot/gnuplot-4.2.0/term.patch @@ -0,0 +1,20 @@ +--- gnuplot-4.2.0/src/term.h.old 2007-11-16 01:21:09.000000000 -0600 ++++ gnuplot-4.2.0/src/term.h 2007-11-16 01:22:45.000000000 -0600 +@@ -70,6 +70,7 @@ + */ + #ifdef SHORT_TERMLIST + # include "dumb.trm" /* dumb terminal */ ++# include "qtopia.trm" /* QTopia terminal */ + + # ifdef GP_ENH_EST + # include "estimate.trm" /* used for enhanced text processing */ +@@ -436,6 +437,9 @@ + /* TeXDraw drawing package for LaTeX */ + #include "texdraw.trm" + ++/* Qtopia */ ++#include "qtopia.trm" ++ + /* METAFONT */ + #include "metafont.trm" + diff --git a/packages/gnuplot/gnuplot.inc b/packages/gnuplot/gnuplot.inc new file mode 100644 index 0000000000..9f1eebf003 --- /dev/null +++ b/packages/gnuplot/gnuplot.inc @@ -0,0 +1,37 @@ +DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \ +(text or binary) and function plotting utility." +HOMEPAGE = "http://www.gnuplot.info/" +SECTION = "console/scientific" +LICENSE = "BSD-4" +PRIORITY = "optional" +DEPENDS = "pango cairo virtual/libx11 libpng gd readline" + +inherit autotools + +acpaths = "" + +EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \ + --without-plot \ + --with-png=${STAGING_LIBDIR}/.. \ + --with-gd=${STAGING_LIBDIR}/.. \ + --without-lisp-files \ + --without-tutorial" + +do_compile_prepend() { + install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/ +} + +do_install_append() { + install -d ${D}${datadir}/applications/ + install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/ + install -d ${D}${datadir}/pixmaps/ + install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/ +} + +PACKAGES =+ "${PN}-x11-dbg ${PN}-x11" +DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot." +SECTION_${PN}-x11 = "x11/scientific" +FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 " + +FILES_${PN} += "${datadir}/texmf" +FILES_${PN}-x11-dbg += "${libexecdir}/gnuplot/*/.debug" diff --git a/packages/gnuplot/gnuplot_4.0.0.bb b/packages/gnuplot/gnuplot_4.0.0.bb index 150fc8d6e5..6e1be52173 100644 --- a/packages/gnuplot/gnuplot_4.0.0.bb +++ b/packages/gnuplot/gnuplot_4.0.0.bb @@ -1,10 +1,6 @@ -DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \ -(text or binary) and function plotting utility." -SECTION = "console/scientific" -LICENSE = "BSD-4" -PRIORITY = "optional" -DEPENDS = "virtual/libx11 libpng gd readline" -PR = "r3" +require gnuplot.inc + +PR = "r4" SRC_URI = "ftp://ftp.gnuplot.info/pub/gnuplot/gnuplot-${PV}.tar.gz \ file://subdirs.patch;patch=1 \ @@ -14,29 +10,3 @@ SRC_URI = "ftp://ftp.gnuplot.info/pub/gnuplot/gnuplot-${PV}.tar.gz \ file://term.patch;patch=1 \ file://gnuplot.desktop \ file://gnuplot.png" - -inherit autotools - -PACKAGES =+ "${PN}-x11" -DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot." -SECTION_${PN}-x11 = "x11/scientific" -FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps" - -acpaths = "" -EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \ - --without-plot \ - --with-png=${STAGING_LIBDIR}/.. \ - --with-gd=${STAGING_LIBDIR}/.. \ - --without-lisp-files \ - --without-tutorial" - -do_compile_prepend() { - install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/ -} - -do_install_append() { - install -d ${D}${datadir}/applications/ - install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/ - install -d ${D}${datadir}/pixmaps/ - install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/ -} diff --git a/packages/gnuplot/gnuplot_4.2.0.bb b/packages/gnuplot/gnuplot_4.2.0.bb index d750aac66a..1df0c9fa21 100644 --- a/packages/gnuplot/gnuplot_4.2.0.bb +++ b/packages/gnuplot/gnuplot_4.2.0.bb @@ -1,40 +1,10 @@ -DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \ -(text or binary) and function plotting utility." -SECTION = "console/scientific" -LICENSE = "BSD-4" -PRIORITY = "optional" -DEPENDS = "pango cairo virtual/libx11 libpng gd readline" -PR = "r0" +require gnuplot.inc + +PR = "r1" SRC_URI = "${SOURCEFORGE_MIRROR}/gnuplot/${PN}-${PV}.tar.gz \ + http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz \ file://subdirs.patch;patch=1 \ + file://term.patch;patch=1 \ file://gnuplot.desktop \ file://gnuplot.png" - -inherit autotools - -acpaths = "" -EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \ - --without-plot \ - --with-png=${STAGING_LIBDIR}/.. \ - --with-gd=${STAGING_LIBDIR}/.. \ - --without-lisp-files \ - --without-tutorial" - -do_install_append() { - install -d ${D}${datadir}/applications/ - install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/ - install -d ${D}${datadir}/pixmaps/ - install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/ -} - - -PACKAGES =+ "${PN}-x11-dbg ${PN}-x11" -DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot." -SECTION_${PN}-x11 = "x11/scientific" -FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 " - -FILES_${PN} += "${datadir}/texmf" -FILES_${PN}-x11-dbg += "${libexecdir}/gnuplot/*/.debug" - - -- cgit 1.2.3-korg