development/scala: Added to 13.0 repository

This commit is contained in:
Matthias Diehn Ingesman 2010-05-13 00:58:03 +02:00 committed by Robby Workman
parent d7168f9488
commit f8b36fd3ee
6 changed files with 113 additions and 0 deletions

12
development/scala/README Normal file
View File

@ -0,0 +1,12 @@
Scala is a functional object-oriented programming language
compiling to JVM byte code.
This is a binary repackaging of the distribution from the Scala home-page.
It sets SCALA_HOME=/usr/lib/scala, MANPATH to include /usr/lib/scala/man,
and PATH to include /usr/lib/scala/bin.
The installation is like Java Runtime/SDK, in that it places everything by
default in /usr/lib/scala - including manpages and documentation.
The lib directory is set dependent upon the package architecture:
/usr/lib on x86 and /usr/lib64 on x86_64.

View File

@ -0,0 +1,4 @@
#!/bin/csh
setenv SCALA_HOME @LIBDIR@/scala
setenv MANPATH ${MANPATH}:${SCALA_HOME}/man
setenv PATH ${PATH}:${SCALA_HOME}/bin

View File

@ -0,0 +1,4 @@
#!/bin/sh
export SCALA_HOME=@LIBDIR@/scala
export MANPATH="${MANPATH}:${SCALA_HOME}/man"
export PATH="${PATH}:${SCALA_HOME}/bin"

View File

@ -0,0 +1,64 @@
#!/bin/sh
# Build script for scala
# Written by Matthias Diehn Ingesman (matthias@pf-c.dk)
# Public domain.
PRGNAM=scala
VERSION=${VERSION:-2.7.7.final}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# Binary repackaging, so no compile-flags needed
if [ "$ARCH" = "x86_64" ]; then
LIBDIR="/usr/lib64"
else
LIBDIR="/usr/lib"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
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 {} \;
mkdir -p $PKG/$LIBDIR/$PRGNAM
mv $TMP/$PRGNAM-$VERSION/{bin,lib,man,meta,misc,src} $PKG/$LIBDIR/$PRGNAM
# No need to install these with a .new extension
mkdir -p $PKG/etc/profile.d
sed "s%@LIBDIR@%$LIBDIR%" $CWD/profile.d/scala.sh > \
$PKG/etc/profile.d/scala.sh
sed "s%@LIBDIR@%$LIBDIR%" $CWD/profile.d/scala.csh > \
$PKG/etc/profile.d/scala.csh
chmod 0755 $PKG/etc/profile.d/*
( cd $PKG/$LIBDIR/$PRGNAM/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $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}

View File

@ -0,0 +1,10 @@
PRGNAM="scala"
VERSION="2.7.7.final"
HOMEPAGE="http://www.scala-lang.org/"
DOWNLOAD="http://www.scala-lang.org/downloads/distrib/files/scala-2.7.7.final.tgz"
MD5SUM="5d2294d5aab72fec869c0ba666d28b7e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Matthias Diehn Ingesman"
EMAIL="matthias@pf-c.dk"
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---------------------------------------------------|
scala: scala (multi-paradigm programming language)
scala:
scala: scala is a functional object-oriented programming language
scala: compiling to JVM byte code.
scala:
scala: This is a binary repackaging of the distribution from the
scala: Scala home-page.
scala:
scala: Homepage: http://www.scala-lang.org
scala:
scala: