[arch-commits] Commit in gnuplot/repos (8 files)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Fri Jul 5 18:01:51 UTC 2013
Date: Friday, July 5, 2013 @ 20:01:51
Author: bpiotrowski
Revision: 189716
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
gnuplot/repos/staging-i686/
gnuplot/repos/staging-i686/PKGBUILD
(from rev 189715, gnuplot/trunk/PKGBUILD)
gnuplot/repos/staging-i686/gnuplot-doc2texi-el.patch
(from rev 189715, gnuplot/trunk/gnuplot-doc2texi-el.patch)
gnuplot/repos/staging-i686/gnuplot.install
(from rev 189715, gnuplot/trunk/gnuplot.install)
gnuplot/repos/staging-x86_64/
gnuplot/repos/staging-x86_64/PKGBUILD
(from rev 189715, gnuplot/trunk/PKGBUILD)
gnuplot/repos/staging-x86_64/gnuplot-doc2texi-el.patch
(from rev 189715, gnuplot/trunk/gnuplot-doc2texi-el.patch)
gnuplot/repos/staging-x86_64/gnuplot.install
(from rev 189715, gnuplot/trunk/gnuplot.install)
------------------------------------------+
staging-i686/PKGBUILD | 50 +++++++++++++++++++++++++++++
staging-i686/gnuplot-doc2texi-el.patch | 13 +++++++
staging-i686/gnuplot.install | 35 ++++++++++++++++++++
staging-x86_64/PKGBUILD | 50 +++++++++++++++++++++++++++++
staging-x86_64/gnuplot-doc2texi-el.patch | 13 +++++++
staging-x86_64/gnuplot.install | 35 ++++++++++++++++++++
6 files changed, 196 insertions(+)
Copied: gnuplot/repos/staging-i686/PKGBUILD (from rev 189715, gnuplot/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=gnuplot
+pkgver=4.6.2
+pkgrel=3
+pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
+arch=('i686' 'x86_64')
+url="http://www.gnuplot.info"
+license=('custom')
+depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua')
+makedepends=('texinfo' 'emacs' 'texlive-core' 'texlive-latexextra')
+options=('!makeflags')
+install=gnuplot.install
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+ gnuplot-doc2texi-el.patch)
+sha1sums=('88748d4bc9bd41ba8a267a35b6e5b7427cd997cd'
+ '46f381fafa2f6c6e3bfefa1e7b999729e260a2e8')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # fix default source location; use the GDFONTPATH variable to modify at runtime
+ sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
+
+ sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
+ -e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
+ src/variable.c
+
+ (cd docs; patch -p0 -i "$srcdir/gnuplot-doc2texi-el.patch")
+
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/bin \
+ --with-gihdir=/usr/share/gnuplot \
+ --with-readline=gnu
+ make pkglibexecdir=/usr/bin
+}
+
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
+
+ install -Dm644 lisp/dotemacs "$pkgdir/usr/share/emacs/site-lisp/dotemacs"
+ install -Dm644 Copyright "$pkgdir/usr/share/licenses/$pkgname/Copyright"
+
+ rm -f "$pkgdir/usr/share/texmf-dist/ls-R"
+}
Copied: gnuplot/repos/staging-i686/gnuplot-doc2texi-el.patch (from rev 189715, gnuplot/trunk/gnuplot-doc2texi-el.patch)
===================================================================
--- staging-i686/gnuplot-doc2texi-el.patch (rev 0)
+++ staging-i686/gnuplot-doc2texi-el.patch 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,13 @@
+Index: doc2texi.el
+===================================================================
+RCS file: /cvsroot/gnuplot/gnuplot/docs/doc2texi.el,v
+retrieving revision 1.32
+diff -r1.32 doc2texi.el
+518c518
+< (replace-match (concat "4 " node) nil nil))
+---
+> (replace-match (concat "3 " node) nil nil))
+521c521
+< (replace-match "5 " nil nil))
+---
+> (replace-match "4 " nil nil))
Copied: gnuplot/repos/staging-i686/gnuplot.install (from rev 189715, gnuplot/trunk/gnuplot.install)
===================================================================
--- staging-i686/gnuplot.install (rev 0)
+++ staging-i686/gnuplot.install 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,35 @@
+info_dir=/usr/share/info
+info_files=(gnuplot.info)
+
+post_install() {
+cat << EOF
+==> To add the gnuplot mode in Emacs, add the content of /usr/share/emacs/site-lisp/dotemacs to your ~/.emacs file.
+EOF
+
+ if [ -f /usr/bin/mktexlsr ]; then
+ echo "Updating TeX tree..."
+ mktexlsr
+ fi
+
+for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_remove() {
+ if [ -f /usr/bin/mktexlsr ]; then
+ echo "Updating TeX tree..."
+ mktexlsr
+ fi
+}
+
Copied: gnuplot/repos/staging-x86_64/PKGBUILD (from rev 189715, gnuplot/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=gnuplot
+pkgver=4.6.2
+pkgrel=3
+pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
+arch=('i686' 'x86_64')
+url="http://www.gnuplot.info"
+license=('custom')
+depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua')
+makedepends=('texinfo' 'emacs' 'texlive-core' 'texlive-latexextra')
+options=('!makeflags')
+install=gnuplot.install
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+ gnuplot-doc2texi-el.patch)
+sha1sums=('88748d4bc9bd41ba8a267a35b6e5b7427cd997cd'
+ '46f381fafa2f6c6e3bfefa1e7b999729e260a2e8')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # fix default source location; use the GDFONTPATH variable to modify at runtime
+ sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
+
+ sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
+ -e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
+ src/variable.c
+
+ (cd docs; patch -p0 -i "$srcdir/gnuplot-doc2texi-el.patch")
+
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/bin \
+ --with-gihdir=/usr/share/gnuplot \
+ --with-readline=gnu
+ make pkglibexecdir=/usr/bin
+}
+
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
+
+ install -Dm644 lisp/dotemacs "$pkgdir/usr/share/emacs/site-lisp/dotemacs"
+ install -Dm644 Copyright "$pkgdir/usr/share/licenses/$pkgname/Copyright"
+
+ rm -f "$pkgdir/usr/share/texmf-dist/ls-R"
+}
Copied: gnuplot/repos/staging-x86_64/gnuplot-doc2texi-el.patch (from rev 189715, gnuplot/trunk/gnuplot-doc2texi-el.patch)
===================================================================
--- staging-x86_64/gnuplot-doc2texi-el.patch (rev 0)
+++ staging-x86_64/gnuplot-doc2texi-el.patch 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,13 @@
+Index: doc2texi.el
+===================================================================
+RCS file: /cvsroot/gnuplot/gnuplot/docs/doc2texi.el,v
+retrieving revision 1.32
+diff -r1.32 doc2texi.el
+518c518
+< (replace-match (concat "4 " node) nil nil))
+---
+> (replace-match (concat "3 " node) nil nil))
+521c521
+< (replace-match "5 " nil nil))
+---
+> (replace-match "4 " nil nil))
Copied: gnuplot/repos/staging-x86_64/gnuplot.install (from rev 189715, gnuplot/trunk/gnuplot.install)
===================================================================
--- staging-x86_64/gnuplot.install (rev 0)
+++ staging-x86_64/gnuplot.install 2013-07-05 18:01:51 UTC (rev 189716)
@@ -0,0 +1,35 @@
+info_dir=/usr/share/info
+info_files=(gnuplot.info)
+
+post_install() {
+cat << EOF
+==> To add the gnuplot mode in Emacs, add the content of /usr/share/emacs/site-lisp/dotemacs to your ~/.emacs file.
+EOF
+
+ if [ -f /usr/bin/mktexlsr ]; then
+ echo "Updating TeX tree..."
+ mktexlsr
+ fi
+
+for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_remove() {
+ if [ -f /usr/bin/mktexlsr ]; then
+ echo "Updating TeX tree..."
+ mktexlsr
+ fi
+}
+
More information about the arch-commits
mailing list