aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorDmitrii Sosedov <dmitrii@sosedov.org>2015-05-17 23:41:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:41:26 +0700
commit29eb09665b5a6afd64adbc948e8375c583a7f394 (patch)
tree3e4129b7b98c548da15d35518db02b47b33dcd86 /development
parent7fe77b8dad104fce1fc0e4a2a69cfe808fb9f323 (diff)
development/rust: Updated for version 1.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/rust/README16
-rw-r--r--development/rust/rust.SlackBuild45
-rw-r--r--development/rust/rust.info10
-rw-r--r--development/rust/slack-desc4
4 files changed, 47 insertions, 28 deletions
diff --git a/development/rust/README b/development/rust/README
index 7e9c8b996f4f..a5e2d1508315 100644
--- a/development/rust/README
+++ b/development/rust/README
@@ -1,11 +1,17 @@
+Rust
+
Rust is a curly-brace, block-structured expression language.
-It visually resembles the C language family, but differs significantly in syntactic and semantic details.
+It visually resembles the C language family, but differs significantly in syntactic and
+semantic details.
Its design is oriented toward concerns of "programming in the large", that is, of creating
-and maintaining boundaries - both abstract and operational - that preserve large-system integrity,
-availability and concurrency.
+and maintaining boundaries - both abstract and operational - that preserve large-system
+integrity, availability and concurrency.
+
+It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure
+functional styles. Rust also supports generic programming and metaprogramming, in both static
+and dynamic styles.
-It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles.
-Rust also supports generic programming and metaprogramming, in both static and dynamic styles.
+Cargo - the Rust package manager - is included into this build.
A short summary of features
diff --git a/development/rust/rust.SlackBuild b/development/rust/rust.SlackBuild
index 95f911510b15..7bac3096b8a7 100644
--- a/development/rust/rust.SlackBuild
+++ b/development/rust/rust.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for rust
-# Copyright 2014 Dmitrii Sosedov, United States
+# Copyright 2014-2015 Dmitrii Sosedov, United States
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,15 +23,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rust
-VERSION=${VERSION:-0.12.0}
+PRGNAM2=cargo
+VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
+ x86_64) ARCH=x86_64 ;;
+ *) ARCH=i686 ;;
esac
fi
@@ -43,7 +43,6 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
- ARCH=i686
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
@@ -61,18 +60,28 @@ rm -rf $PKG
mkdir -p $TMP $PKG $PKG/usr $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM\-$VERSION\-$ARCH\-unknown-linux-gnu.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-$ARCH-unknown-linux-gnu.tar.gz
cd $PRGNAM-$VERSION-$ARCH-unknown-linux-gnu
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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cp -r bin $PKG/usr/bin
-cp -r lib $PKG/usr/lib${LIBDIRSUFFIX}
-cp -r share $PKG/usr/share
+chmod 755 ${PRGNAM}c/{bin,lib,share}
+chmod 755 ${PRGNAM2}/{bin,etc,lib,share}
+
+mv ${PRGNAM}c/bin $PKG/usr/
+mv ${PRGNAM}c/lib $PKG/usr/lib${LIBDIRSUFFIX}
+mv ${PRGNAM}c/share $PKG/usr/
+mv ${PRGNAM2}/bin/* $PKG/usr/bin/
+mv ${PRGNAM2}/etc $PKG/usr/
+mv ${PRGNAM2}/lib/* $PKG/usr/lib${LIBDIRSUFFIX}
+cp -rf ${PRGNAM2}/share/* $PKG/usr/share
+
+find -L $PKG -type d -exec chmod 755 {} \;
+chmod 755 $PKG/usr/bin/*
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
@@ -81,10 +90,14 @@ mv $PKG/usr/share/man $PKG/usr/
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
-mkdir -p $PKG/usr/share/doc/$PRGNAM-$VERSION
-cp -a COPYRIGHT LICENSE-APACHE LICENSE-MIT README.md $PKG/usr/share/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/share/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/$PRGNAM.info > $PKG/usr/share/doc/$PRGNAM-$VERSION/$PRGNAM.info
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PRGNAM-docs/share/* $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/doc/$PRGNAM-$VERSION/doc/$PRGNAM/html $PKG/usr/doc/$PRGNAM-$VERSION
+cp -rf $PKG/usr/share/doc $PKG/usr/
+rm -rf $PKG/usr/share/doc $PKG/usr/doc/$PRGNAM-$VERSION/doc
+chmod 755 $PKG/usr/doc/$PRGNAM-$VERSION/html
+find -L $PKG/usr/doc/$PRGNAM-$VERSION/html -type d -exec chmod 755 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/development/rust/rust.info b/development/rust/rust.info
index 45a21b65cd3c..6a4f591f152a 100644
--- a/development/rust/rust.info
+++ b/development/rust/rust.info
@@ -1,10 +1,10 @@
PRGNAM="rust"
-VERSION="0.12.0"
+VERSION="1.0.0"
HOMEPAGE="http://www.rust-lang.org"
-DOWNLOAD="https://static.rust-lang.org/dist/rust-0.12.0-i686-unknown-linux-gnu.tar.gz"
-MD5SUM="d29b350576bc145f12916f7fed0bdd94"
-DOWNLOAD_x86_64="https://static.rust-lang.org/dist/rust-0.12.0-x86_64-unknown-linux-gnu.tar.gz"
-MD5SUM_x86_64="e4f0c78653d41656402a95e359e6ff5d"
+DOWNLOAD="https://static.rust-lang.org/dist/rust-1.0.0-i686-unknown-linux-gnu.tar.gz"
+MD5SUM="bc1dfb003c5ea41d39aeabd42ebf156e"
+DOWNLOAD_x86_64="https://static.rust-lang.org/dist/rust-1.0.0-x86_64-unknown-linux-gnu.tar.gz"
+MD5SUM_x86_64="bf108fe44d5f05507418c00ce7a08f3e"
REQUIRES=""
MAINTAINER="Dmitrii Sosedov"
EMAIL="dmitrii@sosedov.org"
diff --git a/development/rust/slack-desc b/development/rust/slack-desc
index e27a0345df56..8a6023326038 100644
--- a/development/rust/slack-desc
+++ b/development/rust/slack-desc
@@ -15,5 +15,5 @@ rust: operational - that preserve large-system integrity, availability and
rust: concurrency.
rust:
rust: Homepage: http://rust-lang.org
-rust: Release date: October 9, 2014
-rust: \ No newline at end of file
+rust: Release date: May 15, 2015
+rust: