summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2015-04-04 16:05:44 -0300
committerIsmael Luceno2015-04-04 16:12:37 -0300
commit34e63b5596b5279749d17b66387f6aa70267df03 (patch)
tree669cd7666080504ca5c21878182c8f4741559b72
parent35618c36d4c36b9ffae7384d1fcc2363728f8d6a (diff)
tcltutor: new spell, Learn Tcl
-rw-r--r--ChangeLog1
-rwxr-xr-xeducation/tcltutor/BUILD1
-rwxr-xr-xeducation/tcltutor/DEPENDS2
-rwxr-xr-xeducation/tcltutor/DETAILS16
-rw-r--r--education/tcltutor/HISTORY2
-rwxr-xr-xeducation/tcltutor/INSTALL10
6 files changed, 32 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 004e020e0c..03e565a488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
* gnome2-libs/ubuntulooks: new spell, ubuntulooks theme for GTK+
2.x
* devel/tclkitemu: new spell, Tclkit emulation
+ * education/tcltutor: new spell, Learn Tcl
2015-04-02 Vlad Glagolev <stealth@sourcemage.org>
* kernel.gpg: added C4790F9D public key (Linux Kernel Archives
diff --git a/education/tcltutor/BUILD b/education/tcltutor/BUILD
new file mode 100755
index 0000000000..27ba77ddaf
--- /dev/null
+++ b/education/tcltutor/BUILD
@@ -0,0 +1 @@
+true
diff --git a/education/tcltutor/DEPENDS b/education/tcltutor/DEPENDS
new file mode 100755
index 0000000000..800fb22adf
--- /dev/null
+++ b/education/tcltutor/DEPENDS
@@ -0,0 +1,2 @@
+depends tcl &&
+depends tk
diff --git a/education/tcltutor/DETAILS b/education/tcltutor/DETAILS
new file mode 100755
index 0000000000..2b9efdf245
--- /dev/null
+++ b/education/tcltutor/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=tcltutor
+ VERSION=3.0b7
+ SOURCE="${SPELL}${VERSION//.}.tgz"
+ SOURCE_URL[0]=http://www.msen.com/~clif/${SOURCE}
+ SOURCE_HASH=sha512:17af025b192eefcfde03bf4f9dc173030a0048e84de4ef42c4525f645e5b5067d9209af0da4b1bc632cfbc6faf9703b96eaf9148324c63e4a3d367671756f0f9
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/TclTutor"
+ WEB_SITE="http://www.msen.com/~clif/TclTutor.html"
+ LICENSE[0]="BSD"
+ ENTERED=20150404
+ KEYWORDS=""
+ SHORT="Learn Tcl"
+cat << EOF
+TclTutor is a computer aided instruction package for learning the Tcl
+language. It consists of 47 lessons covering the basic Tcl commands, including
+the dict command.
+EOF
diff --git a/education/tcltutor/HISTORY b/education/tcltutor/HISTORY
new file mode 100644
index 0000000000..8e22e41990
--- /dev/null
+++ b/education/tcltutor/HISTORY
@@ -0,0 +1,2 @@
+2015-04-04 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
diff --git a/education/tcltutor/INSTALL b/education/tcltutor/INSTALL
new file mode 100755
index 0000000000..40bd0b467c
--- /dev/null
+++ b/education/tcltutor/INSTALL
@@ -0,0 +1,10 @@
+dir="$INSTALL_ROOT/usr/share/games/$SPELL" &&
+wrapper="$INSTALL_ROOT/usr/games/$SPELL" &&
+cd "$SOURCE_DIRECTORY" &&
+mkdir -p "$dir" &&
+cp -r lesson *.tcl "$dir" &&
+cat >"$wrapper" <<EOF &&
+#!/bin/sh
+exec wish "$dir/TclTutor.tcl"
+EOF
+chmod 755 "$wrapper"