[Lunar-commits] r16176 - in moonbase/trunk/libs: . slang2

Florin Braescu florin at lunar-linux.org
Sun Aug 21 11:34:08 UTC 2005


Author: florin
Date: 2005-08-21 11:34:05 +0000 (Sun, 21 Aug 2005)
New Revision: 16176

Added:
   moonbase/trunk/libs/slang2/
   moonbase/trunk/libs/slang2/BUILD
   moonbase/trunk/libs/slang2/DETAILS
   moonbase/trunk/libs/slang2/POST_INSTALL
Log:
this is the 2.x version of slang. added at the tchan's sugestion.

Added: moonbase/trunk/libs/slang2/BUILD
===================================================================
--- moonbase/trunk/libs/slang2/BUILD	2005-08-21 11:30:01 UTC (rev 16175)
+++ moonbase/trunk/libs/slang2/BUILD	2005-08-21 11:34:05 UTC (rev 16176)
@@ -0,0 +1,11 @@
+(
+
+  ./configure  --build=$BUILD  \
+               --prefix=/usr  &&
+  sedit "s/)\/doc\/slang/)\/share\/doc\/slang/" src/Makefile  &&
+  make  elf                   &&
+  prepare_install             &&
+  make    install-elf         &&
+  make    install-links
+
+) > $C_FIFO 2>&1

Added: moonbase/trunk/libs/slang2/DETAILS
===================================================================
--- moonbase/trunk/libs/slang2/DETAILS	2005-08-21 11:30:01 UTC (rev 16175)
+++ moonbase/trunk/libs/slang2/DETAILS	2005-08-21 11:34:05 UTC (rev 16176)
@@ -0,0 +1,16 @@
+          MODULE=slang
+         VERSION=2.0.4
+          SOURCE=$MODULE-$VERSION.tar.bz2
+   SOURCE_URL[0]=ftp://space.mit.edu/pub/davis/slang/v2.0/
+   SOURCE_URL[1]=ftp://ftp.plig.org/pub/slang/v2.0/
+      SOURCE_VFY=sha1:ac03f76e032973eebef19888606748b335c49cf0
+        WEB_SITE=http://space.mit.edu/~davis/slang
+         ENTERED=20050821
+         UPDATED=20050821
+           SHORT="slang is a powerful interpreted language."
+
+cat << EOF
+S-Lang is a powerful interpreted language that may be embedded into an
+application to make it extensible. Examples of applications that take
+advantage of the interpreter include jed, slrn, and mutt.
+EOF

Added: moonbase/trunk/libs/slang2/POST_INSTALL
===================================================================
--- moonbase/trunk/libs/slang2/POST_INSTALL	2005-08-21 11:30:01 UTC (rev 16175)
+++ moonbase/trunk/libs/slang2/POST_INSTALL	2005-08-21 11:34:05 UTC (rev 16176)
@@ -0,0 +1,29 @@
+#  Recompile of gcc is necessary as it "fixes" its own copy of the
+# ncurses.h and slang.h include files.  This will allow gcc to correctly
+# recompile a ncurses/slang app.
+
+# lunar get version of gcc installed
+gccver=`installed_version gcc`
+# lunar get version of slang installed
+slangver=`installed_version slang`
+# This finds the host architecture string from gccbug
+hostarchstr=`grep "\--host=" /usr/bin/gccbug`
+# strip from front of string upto --host=
+hostarch=${hostarchstr#*--host=}
+# find first_blank in hostarch
+hostend=`expr index "$hostarch" ' '`
+# extract from beginning to first_blank-1
+hostpath=${hostarch:0:$hostend-1}
+# build filename for location of slang.h
+filename="/usr/lib/gcc-lib/$hostpath/$gccver/include/slang.h"
+# if file doesn't exist then we are done and its not internal to gcc
+if [ -e $filename ]; then
+  # gets slang version info from gcc's private slang.h
+  gcc_slang=`grep "define SLANG_VERSION_STRING " $filename`
+  gcc_slang_front=${gcc_slang#*\"}
+  gcc_slang_ver=${gcc_slang_front%\"}
+  if [ "$slangver" != "$gcc_slang_ver" ]
+  then
+    lin -c gcc
+  fi
+fi



More information about the Lunar-commits mailing list