mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
perl/perl-Exporter-Lite: Added (lightweight exporting of functions and variables).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5956790ea5
commit
a78e95d932
4 changed files with 133 additions and 0 deletions
10
perl/perl-Exporter-Lite/README
Normal file
10
perl/perl-Exporter-Lite/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
Exporter::Lite is an alternative to Exporter, intended to provide a
|
||||
lightweight subset of the most commonly-used functionality. It supports
|
||||
import(), @EXPORT and @EXPORT_OK and not a whole lot else.
|
||||
|
||||
Exporter::Lite simply exports its import() function into your namespace.
|
||||
This might be called a "mix-in" or a "role".
|
||||
|
||||
If you have local Perl set up and override the "install base" parameter
|
||||
through the $PERL_MB_OPT or $PERL_MM_OPT variables then the build will
|
||||
fail.
|
94
perl/perl-Exporter-Lite/perl-Exporter-Lite.SlackBuild
Normal file
94
perl/perl-Exporter-Lite/perl-Exporter-Lite.SlackBuild
Normal file
|
@ -0,0 +1,94 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for Getopt-Tabular
|
||||
|
||||
# Copyright 2024 Shahab Vahedi, NL
|
||||
# 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-Exporter-Lite
|
||||
VERSION=${VERSION:-0.09}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
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
|
||||
|
||||
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
|
||||
|
||||
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 . -type f -exec chmod 644 {} + -o -type d -exec chmod 755 {} +
|
||||
|
||||
# Sanity check before setting the PREFIX, else Perl is going to bail out
|
||||
case "$PERL_MB_OPT" in
|
||||
*--install_base*)
|
||||
printf "There should be no '--install_base' in your PERL_MB_OPT variable.\n"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
case "$PERL_MM_OPT" in
|
||||
*INSTALL_BASE=*)
|
||||
printf "There should be no 'INSTALL_BASE=' in your PERL_MM_OPT variable.\n"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||
make
|
||||
make test
|
||||
make install DESTDIR=$PKG
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
find $PKG -name perllocal.pod \
|
||||
-o -name ".packlist" \
|
||||
-o -name "*.bs" \
|
||||
| xargs rm -f
|
||||
|
||||
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
|
10
perl/perl-Exporter-Lite/perl-Exporter-Lite.info
Normal file
10
perl/perl-Exporter-Lite/perl-Exporter-Lite.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="perl-Exporter-Lite"
|
||||
VERSION="0.09"
|
||||
HOMEPAGE="https://metacpan.org/pod/Exporter::Lite"
|
||||
DOWNLOAD="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Exporter-Lite-0.09.tar.gz"
|
||||
MD5SUM="afeceba95b4c393b866a57f4818c6aba"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Shahab Vahedi"
|
||||
EMAIL="list+sbo@vahedi.org"
|
19
perl/perl-Exporter-Lite/slack-desc
Normal file
19
perl/perl-Exporter-Lite/slack-desc
Normal file
|
@ -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-Exporter-Lite: perl-Exporter-Lite (lightweight exporting of functions and variables)
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite: Exporter::Lite is an alternative to Exporter, intended to provide a
|
||||
perl-Exporter-Lite: lightweight subset of the most commonly-used functionality.
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
||||
perl-Exporter-Lite:
|
Loading…
Reference in a new issue