development/loki: Added to 12.1 repository

This commit is contained in:
Evgeny Ratnikov 2010-05-11 22:53:34 +02:00 committed by Robby Workman
parent 088893e149
commit 94c1756be5
4 changed files with 88 additions and 0 deletions

2
development/loki/README Normal file
View file

@ -0,0 +1,2 @@
Loki is a C++ library of designs, containing flexible
implementations of common design patterns and idioms.

View file

@ -0,0 +1,59 @@
#!/bin/sh
# Slackware build script for loki
# Written by (Evgeny Ratnikov) (ratnikov dot ev at gmail dot com)
PRGNAM=loki
VERSION=${VERSION:-0.1.6}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 {} \;
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make -j3
# Makefiles doesn't support DESTDIR, so we will patch them
find . -name Makefile | xargs sed -i -s "s|\$(prefix)|\$(DESTDIR)/\$(prefix)|g"
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES README doc/{html,flex,yasli} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
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.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="loki"
VERSION="0.1.6"
HOMEPAGE="http://loki-lib.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/loki-lib/loki-0.1.6.tar.gz"
MD5SUM="319ca3012a4290dcc27db621cf365f71"
MAINTAINER="Evgeny Ratnikov"
EMAIL="ratnikov.ev@gmail.com"
APPROVED="rworkman"

View 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 ':'.
|-----handy-ruler-------------------------------------------------------|
loki: loki (C++ library of designs)
loki:
loki: Loki is a C++ library of designs, containing flexible
loki: implementations of common design patterns and idioms.
loki:
loki: Homepage: http://loki-lib.sourceforge.net/
loki:
loki:
loki:
loki:
loki: