summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/dart/README6
-rw-r--r--development/dart/dart.SlackBuild80
-rw-r--r--development/dart/dart.csh.new2
-rw-r--r--development/dart/dart.info18
-rw-r--r--development/dart/dart.sh.new2
-rw-r--r--development/dart/doinst.sh15
-rw-r--r--development/dart/slack-desc18
7 files changed, 141 insertions, 0 deletions
diff --git a/development/dart/README b/development/dart/README
new file mode 100644
index 0000000000..aa4401737c
--- /dev/null
+++ b/development/dart/README
@@ -0,0 +1,6 @@
+Dart is an application programming language that’s easy to learn,
+easy to scale, and deployable everywhere.
+
+Google depends on Dart to make very large apps.
+
+This SBo script packages the binary release from Google.
diff --git a/development/dart/dart.SlackBuild b/development/dart/dart.SlackBuild
new file mode 100644
index 0000000000..cda4712b2c
--- /dev/null
+++ b/development/dart/dart.SlackBuild
@@ -0,0 +1,80 @@
+#!/bin/sh
+
+# Slackware build script for <dart>
+
+# Copyright 2016 Zhu Qun-Ying
+# 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=dart
+VERSION=${VERSION:-1.20.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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" == "x86_64" ]; then
+ PKG_PLATFORM="x64"
+elif [ "$ARCH" == "i586" ]; then
+ PKG_PLATFORM="ia32"
+elif [ "$ARCH" == "arm" ]; then
+ PKG_PLATFORM="arm"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+
+mkdir -p $PKG/opt
+cd $PKG/opt
+
+unzip $CWD/dartsdk-linux-$PKG_PLATFORM-release.zip
+if ! [ "$ARCH" = "arm" ] ; then
+ unzip $CWD/dartium-linux-$PKG_PLATFORM-release.zip
+fi
+unzip $CWD/dartdocs-gen-api.zip
+
+mv dartium-linux-$PKG_PLATFORM-stable-$VERSION.0 dartium
+
+mkdir -p $PKG/usr/doc/dart-$VERSION
+cp $CWD/dart.SlackBuild $PKG/usr/doc/dart-$VERSION
+mv gen-dartdocs $PKG/usr/doc/dart-$VERSION/doc
+
+mkdir -p $PKG/etc/profile.d
+cp $CWD/dart.*sh.new $PKG/etc/profile.d
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/dart/dart.csh.new b/development/dart/dart.csh.new
new file mode 100644
index 0000000000..2b3808b6bb
--- /dev/null
+++ b/development/dart/dart.csh.new
@@ -0,0 +1,2 @@
+#!/bin/csh
+setenv PATH ${PATH}:/opt/dart-sdk/bin
diff --git a/development/dart/dart.info b/development/dart/dart.info
new file mode 100644
index 0000000000..6af3621bf1
--- /dev/null
+++ b/development/dart/dart.info
@@ -0,0 +1,18 @@
+PRGNAM="dart"
+VERSION="1.20.1"
+HOMEPAGE="https://www.dartlang.org/"
+DOWNLOAD="https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/sdk/dartsdk-linux-ia32-release.zip \
+ https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/dartium/dartium-linux-ia32-release.zip \
+ https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/api-docs/dartdocs-gen-api.zip"
+MD5SUM="b4cbbc9f292917f9da231a5ca737470a \
+ 90da135437ea24b0928caa4db6d35b85 \
+ 94c8a8d3902865c277fc507a84933c7f"
+DOWNLOAD_x86_64="https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/sdk/dartsdk-linux-x64-release.zip \
+ https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/dartium/dartium-linux-x64-release.zip \
+ https://storage.googleapis.com/dart-archive/channels/stable/release/1.20.1/api-docs/dartdocs-gen-api.zip"
+MD5SUM_x86_64="f0b13b9d165809bec3c9ac006f0171c0 \
+ 940cc1d1336b74a61e4bfbc62221e6bd \
+ 94c8a8d3902865c277fc507a84933c7f"
+REQUIRES=""
+MAINTAINER="Zhu Qun-Ying"
+EMAIL="zhu.qunying@gmail.com"
diff --git a/development/dart/dart.sh.new b/development/dart/dart.sh.new
new file mode 100644
index 0000000000..ad51f09bfe
--- /dev/null
+++ b/development/dart/dart.sh.new
@@ -0,0 +1,2 @@
+#!/bin/sh
+export PATH=$PATH:/opt/dart-sdk/bin
diff --git a/development/dart/doinst.sh b/development/dart/doinst.sh
new file mode 100644
index 0000000000..ae2f300e84
--- /dev/null
+++ b/development/dart/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/profile.d/dart.csh.new
+config etc/profile.d/dart.sh.new
diff --git a/development/dart/slack-desc b/development/dart/slack-desc
new file mode 100644
index 0000000000..ab13829f7c
--- /dev/null
+++ b/development/dart/slack-desc
@@ -0,0 +1,18 @@
+# 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------------------------------------------------------|
+dart: dart (An application programming language)
+dart:
+dart: Dart is an application programming language that’s easy to learn,
+dart: easy to scale, and deployable everywhere.
+dart:
+dart: Google depends on Dart to make very large apps.
+dart:
+dart: This SBo script packages the binary release from Google.
+dart:
+dart: Homepage: http://www.dartlang.org