summaryrefslogtreecommitdiff
path: root/development/Xdialog
diff options
context:
space:
mode:
authorslakmagik <jsun@freeshell.org>2010-05-11 22:53:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:27 +0200
commit1b6383fe966875ae7976fab1cd2377ea47dc0cd5 (patch)
tree0f62df9c9010e4c4ca795ab71b99f566df6a69f4 /development/Xdialog
parent794acfdd99dd76673c403d277fb059be497cfb6a (diff)
downloadslackbuilds-1b6383fe966875ae7976fab1cd2377ea47dc0cd5.tar.gz
development/Xdialog: Added to 12.1 repository
Diffstat (limited to 'development/Xdialog')
-rw-r--r--development/Xdialog/README10
-rw-r--r--development/Xdialog/Xdialog.SlackBuild84
-rw-r--r--development/Xdialog/Xdialog.info8
-rw-r--r--development/Xdialog/slack-desc19
4 files changed, 121 insertions, 0 deletions
diff --git a/development/Xdialog/README b/development/Xdialog/README
new file mode 100644
index 0000000000..e3bd32d31c
--- /dev/null
+++ b/development/Xdialog/README
@@ -0,0 +1,10 @@
+Xdialog is designed to be a drop in replacement for the "dialog" or "cdialog"
+programs. It converts any terminal based program into a program with an
+X-windows interface. The dialogs are easier to see and use while adding even
+more functionalities (e.g. with the treeview, the file selector, the edit box,
+the range box, the help button/box). Because Xdialog uses GTK+, it will also
+match your desktop theme.
+
+If you wish to have NLS support, pass 'NLS=enable' to the SlackBuild. Xdialog
+is a GTK"1" program but may optionally be compiled against GTK2. The developer
+recommends against this but you may enable it (as I do) with 'GTK2=enable'.
diff --git a/development/Xdialog/Xdialog.SlackBuild b/development/Xdialog/Xdialog.SlackBuild
new file mode 100644
index 0000000000..4547a1c1bb
--- /dev/null
+++ b/development/Xdialog/Xdialog.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for Xdialog
+# Written by slakmagik <jsun@freeshell.org>
+# Released under the WTFPL
+
+PRGNAM=Xdialog
+VERSION=2.3.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+NLS=${NLS:-disable}
+# I do this so the script has a consistent interface, using 'enable' for both
+# - and because passing '--without-gtk2' makes it compile for gtk2 as much as
+# '--with; does(!) so you have to pass it nothing if you want gtk1.
+if [ "$GTK2" = "enable" ]; then
+ GTK2=--with-gtk2
+ else
+ unset GTK2
+fi
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+# NEWS is a symlink to ChangeLog and the latter gets the wrong perms unless I
+# exclude links from the tests
+find . ! -type l \
+ \( \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
+ -o -perm 400 \) \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --datadir=/usr/ \
+ --mandir=/usr/man \
+ --$NLS-nls \
+ --build=$ARCH-slackware-linux \
+ $GTK2
+
+make
+make DESTDIR=$PKG install
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
+)
+
+cp -a [ABCINR]* $PKG/usr/doc/$PRGNAM-$VERSION
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/Xdialog/Xdialog.info b/development/Xdialog/Xdialog.info
new file mode 100644
index 0000000000..55669d6f3d
--- /dev/null
+++ b/development/Xdialog/Xdialog.info
@@ -0,0 +1,8 @@
+PRGNAM="Xdialog"
+VERSION="2.3.1"
+HOMEPAGE="http://xdialog.free.fr/"
+DOWNLOAD="http://xdialog.free.fr/Xdialog-2.3.1.tar.bz2"
+MD5SUM="0671f8353717513bf1f0ebc80e9710f6"
+MAINTAINER="slakmagik"
+EMAIL="jsun@freeshell.org"
+APPROVED="rworkman"
diff --git a/development/Xdialog/slack-desc b/development/Xdialog/slack-desc
new file mode 100644
index 0000000000..684ac942bf
--- /dev/null
+++ b/development/Xdialog/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+Xdialog: Xdialog (GTK1/2 mostly-dialog-compatible UI builder)
+Xdialog:
+Xdialog: Xdialog is designed to be a drop in replacement for the "dialog"
+Xdialog: or "cdialog" programs. It converts any terminal based program into
+Xdialog: a program with an X-windows interface. The dialogs are easier to
+Xdialog: see and use while adding even more functionalities (e.g. with the
+Xdialog: treeview, the file selector, the edit box, the range box, the help
+Xdialog: button/box). Because Xdialog uses GTK+, it will also match your
+Xdialog: desktop theme.
+Xdialog:
+Xdialog: Homepage: http://xdialog.free.fr/