diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2016-12-17 06:35:38 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-17 06:35:38 +0700 |
commit | 768448bdacb47fec56ac37079ace3cecf21ce8ad (patch) | |
tree | 9ed59061f0900100c7050bdd4f72c26553ac48c4 /perl/perl-IO-String | |
parent | 01f56259b1ca31601387e8e6ab65da589cb9af83 (diff) |
perl/perl-IO-String: Added (file interface for in-core strings).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-IO-String')
-rw-r--r-- | perl/perl-IO-String/README | 3 | ||||
-rw-r--r-- | perl/perl-IO-String/build_perl-IO-String | 83 | ||||
-rw-r--r-- | perl/perl-IO-String/perl-IO-String.SlackBuild | 99 | ||||
-rw-r--r-- | perl/perl-IO-String/perl-IO-String.info | 10 | ||||
-rw-r--r-- | perl/perl-IO-String/slack-desc | 19 |
5 files changed, 214 insertions, 0 deletions
diff --git a/perl/perl-IO-String/README b/perl/perl-IO-String/README new file mode 100644 index 0000000000000..7eefd090bc838 --- /dev/null +++ b/perl/perl-IO-String/README @@ -0,0 +1,3 @@ +perl-IO-String (file interface for in-core strings) + +IO::String - Emulate file interface for in-core strings. diff --git a/perl/perl-IO-String/build_perl-IO-String b/perl/perl-IO-String/build_perl-IO-String new file mode 100644 index 0000000000000..88ff1e7a22825 --- /dev/null +++ b/perl/perl-IO-String/build_perl-IO-String @@ -0,0 +1,83 @@ +~/perl-IO-String » wget -nv https://cpan.metacpan.org/authors/id/G/GA/GAAS/IO-String-1.08.tar.gz +2016-12-16 19:57:31 URL:https://cpan.metacpan.org/authors/id/G/GA/GAAS/IO-String-1.08.tar.gz [7480/7480] -> "IO-String-1.08.tar.gz" [1] + +~/perl-IO-String » md5sum IO-String-1.08.tar.gz +250e5424f290299fc3d6b5d1e9da3835 IO-String-1.08.tar.gz + +~/perl-IO-String » sudo sh perl-IO-String.SlackBuild +IO-String-1.08/ +IO-String-1.08/META.yml +IO-String-1.08/t/ +IO-String-1.08/t/truncate.t +IO-String-1.08/t/read.t +IO-String-1.08/t/close.t +IO-String-1.08/t/write.t +IO-String-1.08/t/para.t +IO-String-1.08/t/seek.t +IO-String-1.08/String.pm +IO-String-1.08/Changes +IO-String-1.08/MANIFEST +IO-String-1.08/Makefile.PL +IO-String-1.08/README +Checking if your kit is complete... +Looks good +Generating a Unix-style Makefile +Writing Makefile for IO::String +Writing MYMETA.yml and MYMETA.json +cp String.pm blib/lib/IO/String.pm +Manifying 1 pod document +Manifying 1 pod document +Installing /tmp/SBo/package-perl-IO-String/usr/share/perl5/vendor_perl/IO/String.pm +Installing /tmp/SBo/package-perl-IO-String/usr/man/man3/IO::String.3 +Appending installation info to /tmp/SBo/package-perl-IO-String/usr/lib/perl5/perllocal.pod + +Slackware package maker, version 3.141593. + +Searching for symbolic links: + +No symbolic links were found, so we won't make an installation script. +You can make your own later in ./install/doinst.sh and rebuild the +package if you like. + +This next step is optional - you can set the directories in your package +to some sane permissions. If any of the directories in your package have +special permissions, then DO NOT reset them here! + +Would you like to reset all directory permissions to 755 (drwxr-xr-x) and +directory ownerships to root.root ([y]es, [n]o)? n + +Creating Slackware package: /tmp/perl-IO-String-1.08-i586-1_SBo.tgz + +./ +usr/ +usr/doc/ +usr/doc/perl-IO-String-1.08/ +usr/doc/perl-IO-String-1.08/perl-IO-String.SlackBuild +usr/doc/perl-IO-String-1.08/Changes +usr/doc/perl-IO-String-1.08/README +usr/share/ +usr/share/perl5/ +usr/share/perl5/vendor_perl/ +usr/share/perl5/vendor_perl/IO/ +usr/share/perl5/vendor_perl/IO/String.pm +usr/man/ +usr/man/man3/ +usr/man/man3/IO::String.3.gz +install/ +install/slack-desc + +Slackware package /tmp/perl-IO-String-1.08-i586-1_SBo.tgz created. + +~/perl-IO-String » sudo installpkg /tmp/perl-IO-String-1.08-i586-1_SBo.tgz +Verifying package perl-IO-String-1.08-i586-1_SBo.tgz. +Installing package perl-IO-String-1.08-i586-1_SBo.tgz: +PACKAGE DESCRIPTION: +# perl-IO-String (file interface for in-core strings) +# +# IO::String - Emulate file interface for in-core strings. +# +# Home page: https://metacpan.org/pod/IO::String +# +Package perl-IO-String-1.08-i586-1_SBo.tgz installed. + +~/perl-IO-String » diff --git a/perl/perl-IO-String/perl-IO-String.SlackBuild b/perl/perl-IO-String/perl-IO-String.SlackBuild new file mode 100644 index 0000000000000..62ed6b448d9f0 --- /dev/null +++ b/perl/perl-IO-String/perl-IO-String.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh +# +# Slackware build script for perl-IO-String. +# +# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# 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. + +PRGNAM=perl-IO-String +VERSION=${VERSION:-1.08} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 $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 \ + INSTALLVENDORMAN3DIR=/usr/man/man3 +make +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 + +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 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:-tgz} diff --git a/perl/perl-IO-String/perl-IO-String.info b/perl/perl-IO-String/perl-IO-String.info new file mode 100644 index 0000000000000..7a8fcefa264ff --- /dev/null +++ b/perl/perl-IO-String/perl-IO-String.info @@ -0,0 +1,10 @@ +PRGNAM="perl-IO-String" +VERSION="1.08" +HOMEPAGE="https://metacpan.org/pod/IO::String" +DOWNLOAD="https://cpan.metacpan.org/authors/id/G/GA/GAAS/IO-String-1.08.tar.gz" +MD5SUM="250e5424f290299fc3d6b5d1e9da3835" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Edinaldo P. Silva" +EMAIL="edps.mundognu@gmail.com" diff --git a/perl/perl-IO-String/slack-desc b/perl/perl-IO-String/slack-desc new file mode 100644 index 0000000000000..03ed1d382c1b8 --- /dev/null +++ b/perl/perl-IO-String/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-IO-String: perl-IO-String (file interface for in-core strings) +perl-IO-String: +perl-IO-String: IO::String - Emulate file interface for in-core strings. +perl-IO-String: +perl-IO-String: Home page: https://metacpan.org/pod/IO::String +perl-IO-String: +perl-IO-String: +perl-IO-String: +perl-IO-String: +perl-IO-String: +perl-IO-String: |