aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2024-09-05 13:08:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-05 13:30:17 +0700
commit35df2696a5f575557f79becbeac9d80e565cb3ed (patch)
tree78206d001fb9dac32acd2b00938c30c8561d0045 /perl
parent1f0113c675fd9973de5e9ea7e00e0e42145adaf7 (diff)
perl/perl-PPIx-Regexp: Added (Parse regular expressions).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r--perl/perl-PPIx-Regexp/README4
-rw-r--r--perl/perl-PPIx-Regexp/perl-PPIx-Regexp.SlackBuild92
-rw-r--r--perl/perl-PPIx-Regexp/perl-PPIx-Regexp.info10
-rw-r--r--perl/perl-PPIx-Regexp/slack-desc19
4 files changed, 125 insertions, 0 deletions
diff --git a/perl/perl-PPIx-Regexp/README b/perl/perl-PPIx-Regexp/README
new file mode 100644
index 0000000000000..97c74853cde33
--- /dev/null
+++ b/perl/perl-PPIx-Regexp/README
@@ -0,0 +1,4 @@
+The purpose of the PPIx-Regexp package is to parse regular
+expressions in a manner similar to the way the PPI package parses
+Perl. This class forms the root of the parse tree, playing a role
+similar to PPI::Document.
diff --git a/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.SlackBuild b/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.SlackBuild
new file mode 100644
index 0000000000000..31091851b6f9a
--- /dev/null
+++ b/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.SlackBuild
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+# Slackware build script for perl-PPIx-Regexp
+
+# Copyright 2024 Charadon US
+# 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.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=perl-PPIx-Regexp
+VERSION=${VERSION:-0.088}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
+
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+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 {} \;
+
+# Build method #1 (preferred)
+perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
+make
+make test
+make install DESTDIR=$PKG
+
+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
+
+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
+
+# Remove perllocal.pod and other special files that don't need to be installed,
+# as they will overwrite what's already on the system.
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+# Remove empty directories
+find $PKG -depth -type d -empty -delete || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a Changes 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
diff --git a/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.info b/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.info
new file mode 100644
index 0000000000000..7411ac7aaa39c
--- /dev/null
+++ b/perl/perl-PPIx-Regexp/perl-PPIx-Regexp.info
@@ -0,0 +1,10 @@
+PRGNAM="perl-PPIx-Regexp"
+VERSION="0.088"
+HOMEPAGE="https://github.com/trwyant/perl-PPIx-Regexp"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-Regexp-0.088.tar.gz"
+MD5SUM="1ca3eba38a8e9a5fcfb0458f8ed64eac"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="perl-PPI perl-Task-Weaken"
+MAINTAINER="Charadon"
+EMAIL="dev@iotib.net"
diff --git a/perl/perl-PPIx-Regexp/slack-desc b/perl/perl-PPIx-Regexp/slack-desc
new file mode 100644
index 0000000000000..46a165287c208
--- /dev/null
+++ b/perl/perl-PPIx-Regexp/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-PPIx-Regexp: perl-PPIx-Regexp (Represent a regular expression of some sort)
+perl-PPIx-Regexp:
+perl-PPIx-Regexp: The purpose of the PPIx-Regexp package is to parse regular
+perl-PPIx-Regexp: expressions in a manner similar to the way the PPI package parses
+perl-PPIx-Regexp: Perl. This class forms the root of the parse tree, playing a role
+perl-PPIx-Regexp: similar to PPI::Document.
+perl-PPIx-Regexp:
+perl-PPIx-Regexp:
+perl-PPIx-Regexp:
+perl-PPIx-Regexp:
+perl-PPIx-Regexp: