summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
author Richard Ellis <rellis@dp100.com>2011-12-19 13:36:49 -0600
committer Robby Workman <rworkman@slackbuilds.org>2011-12-19 13:36:49 -0600
commitdb342e97ba506b9a394306fd475f889eb3d3b9d6 (patch)
tree1713d6cb3b93b791ae9247eb84315d3598dc7cdf /libraries
parentc0635bf7d859e728617587528725b08899fe661e (diff)
downloadslackbuilds-db342e97ba506b9a394306fd475f889eb3d3b9d6.tar.gz
slackbuilds-db342e97ba506b9a394306fd475f889eb3d3b9d6.tar.xz
libraries/pgtcl-ng: Updated for version 2.0.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/pgtcl-ng/README2
-rw-r--r--libraries/pgtcl-ng/pgtcl-ng.SlackBuild47
-rw-r--r--libraries/pgtcl-ng/pgtcl-ng.info10
-rw-r--r--libraries/pgtcl-ng/slack-desc10
4 files changed, 42 insertions, 27 deletions
diff --git a/libraries/pgtcl-ng/README b/libraries/pgtcl-ng/README
index 5f5228875a..23fe332c53 100644
--- a/libraries/pgtcl-ng/README
+++ b/libraries/pgtcl-ng/README
@@ -2,4 +2,4 @@ PostgreSQL Tcl Interface Next-Generation (pgtcl-ng) is a loadable Tcl/Tk
module for accessing PostgreSQL databases. It extends the pre-8.0 libpgtcl
from an early Pgtcl release and from the companion project pgintcl.
-Note: Requires PostgreSQL available from slackbuilds.org.
+This requires postgresql.
diff --git a/libraries/pgtcl-ng/pgtcl-ng.SlackBuild b/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
index 31eb80222e..0c41ce419f 100644
--- a/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
+++ b/libraries/pgtcl-ng/pgtcl-ng.SlackBuild
@@ -2,21 +2,38 @@
# Slackware build script for pgtcl-ng
-# Written by Richard Ellis (rellis@dp100.com)
-
-# Released into the public domain June 12, 2009
+# Copyright 2011 Richard Ellis, Arlington, Virginia, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Version 1 - June 12, 2009
+# Updated for Slackware 13.37 and pgtcl-ng 2.0.0 Dec 18, 2011
PRGNAM=pgtcl-ng
-VERSION=${VERSION:-1.6.2}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -46,11 +63,9 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/pgtcl$VERSION.tar.gz
-# the source tarball unpacks into a dir named pgtcl1.6.2, change that to
-# pgtcl-ng-1.6.2, this avoids having to make many mods to the buildscript to
-# handle the differences
-mv pgtcl1.6.2 pgtcl-ng-1.6.2
+tar xvf $CWD/pgtcl${VERSION}.tar.gz
+mv pgtcl${VERSION} $PRGNAM-2.0.0
+
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -73,8 +88,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
+ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+# tarball install script creates an empty usr/bin directory, remove it now
+rmdir $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -82,8 +100,5 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# tarball install script creates an empty usr/bin directory, remove it now
-rmdir $PKG/usr/bin
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/pgtcl-ng/pgtcl-ng.info b/libraries/pgtcl-ng/pgtcl-ng.info
index 33ba03915e..3114868187 100644
--- a/libraries/pgtcl-ng/pgtcl-ng.info
+++ b/libraries/pgtcl-ng/pgtcl-ng.info
@@ -1,10 +1,10 @@
PRGNAM="pgtcl-ng"
-VERSION="1.6.2"
-HOMEPAGE="http://pgfoundry.org/projects/pgtclng/"
-DOWNLOAD="http://pgfoundry.org/frs/download.php/1545/pgtcl1.6.2.tar.gz"
-MD5SUM="abf26e3cd7f8229f468045ed1fb7e748"
+VERSION="2.0.0"
+HOMEPAGE="http://sourceforge.net/projects/pgtclng/"
+DOWNLOAD="http://downloads.sourceforge.net/pgtclng/pgtcl2.0.0.tar.gz"
+MD5SUM="08da3300485670ca3619b0a53b829759"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Richard Ellis"
EMAIL="rellis@dp100.com"
-APPROVED="dsomero"
+APPROVED="rworkman"
diff --git a/libraries/pgtcl-ng/slack-desc b/libraries/pgtcl-ng/slack-desc
index 764402398b..0018699936 100644
--- a/libraries/pgtcl-ng/slack-desc
+++ b/libraries/pgtcl-ng/slack-desc
@@ -7,13 +7,13 @@
|-----handy-ruler-------------------------------------------------------|
pgtcl-ng: Pgtcl-ng (Tcl/Tk module for accessing PostgreSQL databases)
-pgtcl-ng:
+pgtcl-ng:
pgtcl-ng: It extends the pre-8.0 libpgtcl from an early Pgtcl release and
pgtcl-ng: from the companion project pgintcl.
-pgtcl-ng:
+pgtcl-ng:
pgtcl-ng: http://pgfoundry.org/projects/pgtclng/
-pgtcl-ng:
-pgtcl-ng:
-pgtcl-ng:
+pgtcl-ng:
+pgtcl-ng:
+pgtcl-ng:
pgtcl-ng:
pgtcl-ng: