[ptxdist] [PATCH] Update gnuplot to 4.4.3

2011-06-23 Thread Bernhard Walle
Also install Gnuplot runtime files which are needed for some formats
like Postscript or HTML5/Javascript when the configuration option is
selected.

Disable lua regardless whether lua is available or not.

Signed-off-by: Bernhard Walle bernh...@bwalle.de
---
 patches/gnuplot-4.2.6/series   |1 -
 .../{gnuplot-4.2.6 = gnuplot-4.4.3}/autogen.sh|0
 .../gnuplot-4.4.3-cc-for-build.diff}   |0
 patches/gnuplot-4.4.3/series   |1 +
 rules/gnuplot.in   |   26 ++-
 rules/gnuplot.make |   26 ++-
 6 files changed, 44 insertions(+), 10 deletions(-)
 delete mode 100644 patches/gnuplot-4.2.6/series
 rename patches/{gnuplot-4.2.6 = gnuplot-4.4.3}/autogen.sh (100%)
 rename patches/{gnuplot-4.2.6/gnuplot-4.2.2-cc-for-build.diff = 
gnuplot-4.4.3/gnuplot-4.4.3-cc-for-build.diff} (100%)
 create mode 100644 patches/gnuplot-4.4.3/series

diff --git a/patches/gnuplot-4.2.6/series b/patches/gnuplot-4.2.6/series
deleted file mode 100644
index 12cf91b..000
--- a/patches/gnuplot-4.2.6/series
+++ /dev/null
@@ -1 +0,0 @@
-gnuplot-4.2.2-cc-for-build.diff
diff --git a/patches/gnuplot-4.2.6/autogen.sh b/patches/gnuplot-4.4.3/autogen.sh
similarity index 100%
rename from patches/gnuplot-4.2.6/autogen.sh
rename to patches/gnuplot-4.4.3/autogen.sh
diff --git a/patches/gnuplot-4.2.6/gnuplot-4.2.2-cc-for-build.diff 
b/patches/gnuplot-4.4.3/gnuplot-4.4.3-cc-for-build.diff
similarity index 100%
rename from patches/gnuplot-4.2.6/gnuplot-4.2.2-cc-for-build.diff
rename to patches/gnuplot-4.4.3/gnuplot-4.4.3-cc-for-build.diff
diff --git a/patches/gnuplot-4.4.3/series b/patches/gnuplot-4.4.3/series
new file mode 100644
index 000..76fe674
--- /dev/null
+++ b/patches/gnuplot-4.4.3/series
@@ -0,0 +1 @@
+gnuplot-4.4.3-cc-for-build.diff
diff --git a/rules/gnuplot.in b/rules/gnuplot.in
index bf9b87b..e7062e7 100644
--- a/rules/gnuplot.in
+++ b/rules/gnuplot.in
@@ -16,11 +16,33 @@ menuconfig GNUPLOT
  many printers, (La)TeX, (x)fig, Postscript, and so on.
 
  Data files and self-defined functions can be manipulated by internal
- C-like language.  Can perform smoothing, spline-fitting, or nonlinear
- fits. Can work with complex numbers.
+ C-like language.  Can perform smoothing, spline-fitting, or nonlinear
+ fits. Can work with complex numbers.
 
 if GNUPLOT
 
+config GNUPLOT_HELP
+   bool
+   prompt Install interactive help
+   help
+ Installs the interactive help files on the target.
+ Requires about 600 kByte of space.
+
+config GNUPLOT_POSTSCRIPT
+   bool
+   prompt Install Postscript prolog files
+   help
+ Installs the prolog files needed to generate Postscript output. If you
+ don't need Postscript, you can turn off that setting. Requires about
+ 100 kByte of space.
+
+config GNUPLOT_JS
+   bool
+   prompt Install JavaScript runtime files
+   help
+ Installs some JavaScript files and PNG images which will be needed if
+ HTML5 output should be generated. Requires about 300 kByte of disk 
space.
+
 config GNUPLOT_FITERRVARS
bool
prompt Support for fitting error variables
diff --git a/rules/gnuplot.make b/rules/gnuplot.make
index 4de83b0..896087c 100644
--- a/rules/gnuplot.make
+++ b/rules/gnuplot.make
@@ -16,8 +16,8 @@ PACKAGES-$(PTXCONF_GNUPLOT) += gnuplot
 #
 # Paths and names
 #
-GNUPLOT_VERSION:= 4.2.6
-GNUPLOT_MD5:= c10468d74030e8bed0fd6865a45cf1fd
+GNUPLOT_VERSION:= 4.4.3
+GNUPLOT_MD5:= 639603752996f4923bc02c895fa03b45
 GNUPLOT:= gnuplot-$(GNUPLOT_VERSION)
 GNUPLOT_SUFFIX := tar.gz
 GNUPLOT_URL:= 
$(PTXCONF_SETUP_SFMIRROR)/gnuplot/$(GNUPLOT).$(GNUPLOT_SUFFIX)
@@ -49,7 +49,6 @@ GNUPLOT_ENV   := $(CROSS_ENV)
 GNUPLOT_AUTOCONF = \
$(CROSS_AUTOCONF_USR) \
--disable-history-file \
-   --disable-mouse \
--disable-x11-mbfonts \
--enable-binary-data-file \
--disable-with-image \
@@ -76,7 +75,8 @@ GNUPLOT_AUTOCONF = \
--without-lisp-files \
--without-row-help \
--without-tutorial \
-   --without-wx-config
+   --without-wx-config \
+   --without-lua
 
 ifdef PTXCONF_GNUPLOT_FITERRVARS
 GNUPLOT_AUTOCONF += --enable-fiterrvars
@@ -85,9 +85,9 @@ GNUPLOT_AUTOCONF += --disable-fiterrvars
 endif
 
 ifdef PTXCONF_GNUPLOT_X
-GNUPLOT_AUTOCONF += --with-x
+GNUPLOT_AUTOCONF += --with-x --enable-mouse
 else
-GNUPLOT_AUTOCONF += --without-x
+GNUPLOT_AUTOCONF += --without-x --disable-mouse
 endif
 
 ifdef PTXCONF_GNUPLOT_PLOT
@@ -138,8 +138,20 @@ $(STATEDIR)/gnuplot.targetinstall:
 
@$(call install_copy, gnuplot, 0, 0, 0755, -, /usr/bin/gnuplot)
 
+ifdef PTXCONF_GNUPLOT_HELP
+   @$(call install_copy, gnuplot, 0, 0, 0644, -, 
/usr/share/gnuplot/4.4/gnuplot.gih)
+endif
+
+ifdef PTXCONF_GNUPLOT_POSTSCRIPT
+   

Re: [ptxdist] [PATCH] Add modeline for vim to *.in files

2011-06-23 Thread Alexander Dahl
Hei hei, 

On Thu, 23 Jun 2011 17:48:02 +0200, Bernhard Walle wrote:
 Set the file type to kconfig. The *.make files have a modeline for vim,
 so why not also for the Kconfig files.

% grep vim: rules/*.in
rules/argtable2.in:# vim: syntax=kconfig
rules/calibrator.in:# vim: syntax=kconfig
rules/hackbench.in:# vim: syntax=kconfig

I would recommend altering these instead of adding an addtional line.
;-)

Despite of that: +1, very handy for vim users.

If you're already on this topic: Would you mind adapting the modeline
for the rules/*.make files to something like this?

# vim: ft=make noet

O:-)

But I guess the templates used by `ptxdist newpackage` should be
changed too, so freshly created packages get modelines in the same
style.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] Add modeline for vim to *.in files

2011-06-23 Thread Bernhard Walle
* Alexander Dahl p...@lespocky.de [2011-06-23 18:10]:
 Hei hei, 
 
 On Thu, 23 Jun 2011 17:48:02 +0200, Bernhard Walle wrote:
  Set the file type to kconfig. The *.make files have a modeline for vim,
  so why not also for the Kconfig files.
 
 % grep vim: rules/*.in
 rules/argtable2.in:# vim: syntax=kconfig
 rules/calibrator.in:# vim: syntax=kconfig
 rules/hackbench.in:# vim: syntax=kconfig
 
 I would recommend altering these instead of adding an addtional line.
 ;-)

Granted.

 Despite of that: +1, very handy for vim users.
 
 If you're already on this topic: Would you mind adapting the modeline
 for the rules/*.make files to something like this?
 
 # vim: ft=make noet

Well, IMO setting the filetype is better than just the syntax, because
then you can add

autocmd FileType kconfig set ts=8 sw=8 noet
autocmd FileType makeset ts=8 sw=8 noet

to your .vimrc.

 But I guess the templates used by `ptxdist newpackage` should be
 changed too, so freshly created packages get modelines in the same
 style.

My patch touched also the templates.


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] Add modeline for vim to *.in files

2011-06-23 Thread Alexander Dahl
Hello,

On 23.06.2011 18:37, Bernhard Walle wrote:
 Well, IMO setting the filetype is better than just the syntax, because
 then you can add
 
 autocmd FileType kconfig set ts=8 sw=8 noet
 autocmd FileType makeset ts=8 sw=8 noet
 
 to your .vimrc.

I would also recommend setting the file type. However the noet option
would be helpful in the mode line itself because Makefiles don't work
without tabs. Should one let this option of the user or override in the
mode line because it's the only sense making setting? What do you think?

Greets
Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] Add modeline for vim to *.in files

2011-06-23 Thread Bernhard Walle
* Alexander Dahl p...@lespocky.de [2011-06-23 19:42]:
 Hello,
 
 On 23.06.2011 18:37, Bernhard Walle wrote:
  Well, IMO setting the filetype is better than just the syntax, because
  then you can add
  
  autocmd FileType kconfig set ts=8 sw=8 noet
  autocmd FileType makeset ts=8 sw=8 noet
  
  to your .vimrc.
 
 I would also recommend setting the file type. However the noet option
 would be helpful in the mode line itself because Makefiles don't work
 without tabs. Should one let this option of the user or override in the
 mode line because it's the only sense making setting? What do you think?

For Makefiles you're right, for Kconfig it's a matter of taste. But I
would use 'noexpandtab' because it's also readable for non vim-gurus
(although I myself use 'noet').

But let one of the ptxdist maintainers comment on the issue...


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de