aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2012-04-15 11:47:38 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-16 05:35:58 -0500
commitc8493ef78bb8eda0e95ae8beb173ef730ba69555 (patch)
tree72340c103ccf206bf246d03b26a8a8bf1348044e /perl
parentd81a3eaf5e10527528591f269d996ac882864758 (diff)
perl/perl-Curses-UI: Added (curses based user interface framework)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r--perl/perl-Curses-UI/README6
-rw-r--r--perl/perl-Curses-UI/perl-Curses-UI.SlackBuild109
-rw-r--r--perl/perl-Curses-UI/perl-Curses-UI.info10
-rw-r--r--perl/perl-Curses-UI/slack-desc19
4 files changed, 144 insertions, 0 deletions
diff --git a/perl/perl-Curses-UI/README b/perl/perl-Curses-UI/README
new file mode 100644
index 0000000000000..2ff215477d4fa
--- /dev/null
+++ b/perl/perl-Curses-UI/README
@@ -0,0 +1,6 @@
+Curses::UI - A curses based user interface framework in perl
+
+A UI framework based on the curses library. Curses::UI contains
+several widgets which can be used to build a user interface.
+
+This requires perl-Curses and perl-TermReadKey.
diff --git a/perl/perl-Curses-UI/perl-Curses-UI.SlackBuild b/perl/perl-Curses-UI/perl-Curses-UI.SlackBuild
new file mode 100644
index 0000000000000..d795994e8df04
--- /dev/null
+++ b/perl/perl-Curses-UI/perl-Curses-UI.SlackBuild
@@ -0,0 +1,109 @@
+#!/bin/sh -e
+
+# Copyright (c) 2010 Daniel LEVAI
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# * Neither the name of the <organization> nor the
+# names of its contributors may be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED ''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 COPYRIGHT HOLDER 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.
+
+# Build script for perl-Curses-UI
+
+PRGNAM=perl-Curses-UI
+VERSION=0.9609
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCNAM=Curses-UI
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ];then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -Rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -Rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -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 {} \;
+
+# --skipdeps is needed or else this module install deps via CPAN.
+CFLAGS="$SLKCFLAGS" \
+perl Makefile.PL --skipdeps \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+make
+make test
+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/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l );do
+ ln -s $( readlink $i ).gz $i.gz ; rm $i
+done
+
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+find $PKG -depth -type d -empty -delete || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README Changes \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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.${PKGTYPE:-tgz}
diff --git a/perl/perl-Curses-UI/perl-Curses-UI.info b/perl/perl-Curses-UI/perl-Curses-UI.info
new file mode 100644
index 0000000000000..9ad65de628e93
--- /dev/null
+++ b/perl/perl-Curses-UI/perl-Curses-UI.info
@@ -0,0 +1,10 @@
+PRGNAM="perl-Curses-UI"
+VERSION="0.9609"
+HOMEPAGE="http://search.cpan.org/dist/Curses-UI/"
+DOWNLOAD="http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/Curses-UI-0.9609.tar.gz"
+MD5SUM="0dc4de85d94389b1d0eaaf36e804fc96"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Daniel LEVAI"
+EMAIL="leva@ecentrum.hu"
+APPROVED="dsomero"
diff --git a/perl/perl-Curses-UI/slack-desc b/perl/perl-Curses-UI/slack-desc
new file mode 100644
index 0000000000000..4d06a53118755
--- /dev/null
+++ b/perl/perl-Curses-UI/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------------------------------------------------------|
+perl-Curses-UI: perl-Curses-UI (curses based user interface framework)
+perl-Curses-UI:
+perl-Curses-UI: A UI framework based on the curses library. Curses::UI contains
+perl-Curses-UI: several widgets which can be used to build a user interface.
+perl-Curses-UI:
+perl-Curses-UI: Homepage: http://search.cpan.org/dist/Curses-UI/
+perl-Curses-UI:
+perl-Curses-UI:
+perl-Curses-UI:
+perl-Curses-UI:
+perl-Curses-UI: