mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
libraries/ocaml-batteries: Updated for version 2.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0d82b962d1
commit
d168a001be
2 changed files with 16 additions and 10 deletions
|
@ -21,7 +21,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=ocaml-batteries
|
||||
VERSION=1.4.1
|
||||
VERSION=${VERSION:-2.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -62,15 +62,21 @@ rm -rf $SRCNAM-$VERSION
|
|||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
make all
|
||||
make doc
|
||||
#make doc
|
||||
|
||||
mkdir -p $PKG/$(ocamlfind printconf destdir)
|
||||
make install DESTDIR=$PKG/$(ocamlfind printconf destdir)
|
||||
OCAMLFIND_DESTDIR="$PKG/$(ocamlfind printconf destdir)"
|
||||
sed "s|PATH_INSTALL=|PATH_INSTALL=$PKG/|" -i Makefile
|
||||
mkdir -p "${OCAMLFIND_DESTDIR}"
|
||||
OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" DESTDIR="$PKG" PREFIX="/usr" make install
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
make install-doc DOCROOT=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -81,7 +87,7 @@ find $PKG -print0 | xargs -0 file \
|
|||
|| true
|
||||
|
||||
cp -a \
|
||||
ChangeLog FAQ LICENSE README* VERSION \
|
||||
ChangeLog FAQ LICENSE README* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="ocaml-batteries"
|
||||
VERSION="1.4.1"
|
||||
VERSION="2.1"
|
||||
HOMEPAGE="http://batteries.forge.ocamlcore.org/"
|
||||
DOWNLOAD="https://forge.ocamlcore.org/frs/download.php/684/batteries-1.4.1.tar.gz"
|
||||
MD5SUM="733d602a3a25ba9c4366eec9356fe5fb"
|
||||
DOWNLOAD="http://forge.ocamlcore.org/frs/download.php/1218/batteries-2.1.tar.gz"
|
||||
MD5SUM="95567687a675107e58c66b93b9ea9bb1"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="ocaml-camomile ocaml-findlib"
|
||||
REQUIRES="ocaml-bisect ocaml-camomile ocaml-findlib"
|
||||
MAINTAINER="Jockey S. Kyd"
|
||||
EMAIL="jockey.kyd@gmail.com"
|
||||
|
|
Loading…
Reference in a new issue