summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-04-11 00:13:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-11 00:13:10 +0700
commit026e64063ee19133fd1c71da17eb0d7de996d84b (patch)
tree2398c1cea68e5225c37fc76bfab36826c8bcc5ba /perl
parentcd59d1c20720f4d87f1e68e75555f907694ec2d8 (diff)
downloadslackbuilds-026e64063ee19133fd1c71da17eb0d7de996d84b.tar.gz
perl/perl-xml-parser-lite-tree: Added (perl module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r--perl/perl-xml-parser-lite-tree/README6
-rw-r--r--perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.SlackBuild65
-rw-r--r--perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.info10
-rw-r--r--perl/perl-xml-parser-lite-tree/slack-desc19
4 files changed, 100 insertions, 0 deletions
diff --git a/perl/perl-xml-parser-lite-tree/README b/perl/perl-xml-parser-lite-tree/README
new file mode 100644
index 0000000000..3baf577479
--- /dev/null
+++ b/perl/perl-xml-parser-lite-tree/README
@@ -0,0 +1,6 @@
+perl-xml-parser-lite-tree (XML tree parser module)
+
+This is a singleton class for parsing XML into a tree structure. How does
+this differ from other XML tree generators? By using XML::Parser::Lite,
+which is a pure perl XML parser. Using this module you can tree-ify
+simple XML without having to compile any C.
diff --git a/perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.SlackBuild b/perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.SlackBuild
new file mode 100644
index 0000000000..e78689eed3
--- /dev/null
+++ b/perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Slackware build script for perl-xml-parser-lite-tree
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=perl-xml-parser-lite-tree
+VERSION=${VERSION:-0.14}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+SRCNAM="XML-Parser-Lite-Tree"
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+make
+make test
+make install DESTDIR=$PKG
+
+gzip -9 $PKG/usr/man/man3/*.3
+
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
+
+# the above leaves at least one empty directory, so:
+find $PKG -depth -type d -a -empty -delete
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README $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-xml-parser-lite-tree/perl-xml-parser-lite-tree.info b/perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.info
new file mode 100644
index 0000000000..40f341313f
--- /dev/null
+++ b/perl/perl-xml-parser-lite-tree/perl-xml-parser-lite-tree.info
@@ -0,0 +1,10 @@
+PRGNAM="perl-xml-parser-lite-tree"
+VERSION="0.14"
+HOMEPAGE="https://metacpan.org/pod/XML::Parser::Lite::Tree"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/I/IA/IAMCAL/XML-Parser-Lite-Tree-0.14.tar.gz"
+MD5SUM="60d815773e13dc67a370e2482b7e4aa4"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="perl-xml-parser-lite"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/perl/perl-xml-parser-lite-tree/slack-desc b/perl/perl-xml-parser-lite-tree/slack-desc
new file mode 100644
index 0000000000..3f5a96c44a
--- /dev/null
+++ b/perl/perl-xml-parser-lite-tree/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+perl-xml-parser-lite-tree: perl-xml-parser-lite-tree (XML tree parser module)
+perl-xml-parser-lite-tree:
+perl-xml-parser-lite-tree: This is a singleton class for parsing XML into a tree structure. How
+perl-xml-parser-lite-tree: does this differ from other XML tree generators? By using
+perl-xml-parser-lite-tree: XML::Parser::Lite, which is a pure perl XML parser. Using this module
+perl-xml-parser-lite-tree: you can tree-ify simple XML without having to compile any C.
+perl-xml-parser-lite-tree:
+perl-xml-parser-lite-tree:
+perl-xml-parser-lite-tree:
+perl-xml-parser-lite-tree:
+perl-xml-parser-lite-tree: