Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (a31c1620991a35c05c71437a15d2a302c9cf4431)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (a31c1620991a35c05c71437a15d2a302c9cf4431)
  • Date: Fri, 6 Mar 2015 16:39:29 -0600

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 3
devel/aplus/BUILD | 16 +++++
devel/aplus/DETAILS | 25 ++++++++
devel/aplus/HISTORY | 3
devel/aplus/PRE_BUILD | 6 +
devel/aplus/patches/buildflags.patch | 28 +++++++++
devel/aplus/patches/gcc4.patch | 107
+++++++++++++++++++++++++++++++++++
devel/aplus/patches/includes.patch | 35 +++++++++++
8 files changed, 223 insertions(+)

New commits:
commit a31c1620991a35c05c71437a15d2a302c9cf4431
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

aplus: new spell, Powerful and Efficient programming language based on APL

diff --git a/ChangeLog b/ChangeLog
index d86c1ff..0baf057 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-03-06 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/aplus: new spell, Powerful and Efficient programming language
based on APL
+
2015-03-02 Vlad Glagolev <stealth AT sourcemage.org>
* archive/archivemount: new spell, FUSE filesystem using libarchive

diff --git a/devel/aplus/BUILD b/devel/aplus/BUILD
new file mode 100755
index 0000000..1fefb72
--- /dev/null
+++ b/devel/aplus/BUILD
@@ -0,0 +1,16 @@
+CFLAGS="${CFLAGS//-ffast-math}"
+CXXFLAGS="${CXXFLAGS//-ffast-math}"
+LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
+
+[[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST}"
+
+# FIXME: Fonts should be installed to /usr/share/fonts
+# FIXME: Documentation should be installed to /usr/share/doc
+./configure --prefix="$INSTALL_ROOT"/usr/lib/aplus \
+ --bindir="$INSTALL_ROOT"/usr/bin \
+ --libdir="$INSTALL_ROOT"/usr/lib \
+ --includedir="$INSTALL_ROOT"/usr/include \
+ --sysconfdir="$INSTALL_ROOT"/etc \
+ --localstatedir="$INSTALL_ROOT"/var \
+ $OPTS &&
+make
diff --git a/devel/aplus/DETAILS b/devel/aplus/DETAILS
new file mode 100755
index 0000000..d39e0fc
--- /dev/null
+++ b/devel/aplus/DETAILS
@@ -0,0 +1,25 @@
+ SPELL=aplus
+ VERSION=4.22-4
+ SOURCE="$SPELL-fsf-$VERSION.tar.gz"
+ SOURCE_URL[0]=http://www.aplusdev.org/Download/$SOURCE
+
SOURCE_HASH=sha512:219e188893e85094bf7bc55f2909460314bf76df6019af45b82b9dec5e82d20472fda701234b53ccf0c26a91d94c86ce66a76c0ba37a8d74c11800511bb102ab
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-fsf-${VERSION%-*}"
+ WEB_SITE="http://www.aplusdev.org/";
+ LICENSE[0]="GPLv2"
+ ENTERED=20150306
+ KEYWORDS=""
+ SHORT="Powerful and Efficient programming language based on APL"
+cat << EOF
+A+ is a powerful and efficient programming language.
+
+It embodies a rich set of functions and operators, a modern graphical user
+interface with many widgets and automatic synchronization of widgets and
+variables, asynchronous execution of functions associated with variables and
+events, dynamic loading of user compiled subroutines, and many other
features.
+
+Execution is by a rather efficient interpreter. A+ was created at Morgan
+Stanley. Primarily used in a computationally-intensive business environment,
+many critical applications written in A+ have withstood the demands of real
+world developers over many years. Written in an interpreted language, A+
+applications tend to be portable.
+EOF
diff --git a/devel/aplus/HISTORY b/devel/aplus/HISTORY
new file mode 100644
index 0000000..45f6770
--- /dev/null
+++ b/devel/aplus/HISTORY
@@ -0,0 +1,3 @@
+2015-03-06 Ismael Luceno <ismael AT sourcemage.org>
+ * buildflags.patch, gcc4.patch, includes.patch: Added, build fixes
+ * BUILD, DETAILS, PRE_BUILD: spell created
diff --git a/devel/aplus/PRE_BUILD b/devel/aplus/PRE_BUILD
new file mode 100755
index 0000000..f9d7f22
--- /dev/null
+++ b/devel/aplus/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+if [ -d "$SPELL_DIRECTORY/patches" ]; then
+ find "$SPELL_DIRECTORY/patches" \( -name \*.patch -o -name \*.diff \) \
+ -exec patch -fp1 -i '{}' \;
+fi
diff --git a/devel/aplus/patches/buildflags.patch
b/devel/aplus/patches/buildflags.patch
new file mode 100644
index 0000000..ea41cd6
--- /dev/null
+++ b/devel/aplus/patches/buildflags.patch
@@ -0,0 +1,28 @@
+From: Ismael Luceno <ismael AT sourcemage.org>
+Subject: Override some feature detection to build correctly
+
+--
+diff -ur aplus-fsf-4.22.orig/src/dap/Makefile.in
aplus-fsf-4.22/src/dap/Makefile.in
+--- aplus-fsf-4.22.orig/src/dap/Makefile.in 2008-04-08 17:15:28.000000000
-0300
++++ aplus-fsf-4.22/src/dap/Makefile.in 2015-03-04 22:09:07.973528149 -0300
+@@ -366,7 +366,7 @@
+
+ DEFS = @DEFS@
+ DEFAULT_INCLUDES = -I. -I$(srcdir)
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -DHAVE_SVR4
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/Makefile.in
aplus-fsf-4.22/src/MSTypes/Makefile.in
+--- aplus-fsf-4.22.orig/src/MSTypes/Makefile.in 2008-04-08
17:15:26.000000000 -0300
++++ aplus-fsf-4.22/src/MSTypes/Makefile.in 2015-03-06 11:56:28.061053083
-0300
+@@ -423,7 +423,7 @@
+
+ DEFS = @DEFS@
+ DEFAULT_INCLUDES = -I. -I$(srcdir)
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -DMS_OFFSETOF_IN_STDDEF
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
diff --git a/devel/aplus/patches/gcc4.patch b/devel/aplus/patches/gcc4.patch
new file mode 100644
index 0000000..6305fd4
--- /dev/null
+++ b/devel/aplus/patches/gcc4.patch
@@ -0,0 +1,107 @@
+From: Ismael Luceno <ismael AT sourcemage.org>
+Subject: Fix build with GCC 4.x
+
+Specifies methods explicitly and avoids unnecesary type casts.
+
+--
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/MSBuiltinTypeVectorInlines.C
aplus-fsf-4.22/src/MSTypes/MSBuiltinTypeVectorInlines.C
+--- aplus-fsf-4.22.orig/src/MSTypes/MSBuiltinTypeVectorInlines.C
2008-03-31 13:45:07.000000000 -0300
++++ aplus-fsf-4.22/src/MSTypes/MSBuiltinTypeVectorInlines.C 2015-03-04
23:01:42.288609942 -0300
+@@ -77,7 +77,7 @@
+ template <class Type>
+ INLINELINKAGE MSBuiltinVector<Type> MSBuiltinVector<Type>::operator[]
(const MSBinaryVector & bVect_) const
+ {
+- return compress (*this, bVect_);
++ return this->compress (*this, bVect_);
+ }
+
+
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/MSFloat.C
aplus-fsf-4.22/src/MSTypes/MSFloat.C
+--- aplus-fsf-4.22.orig/src/MSTypes/MSFloat.C 2008-03-27 16:10:29.000000000
-0300
++++ aplus-fsf-4.22/src/MSTypes/MSFloat.C 2015-03-05 00:28:34.858745108
-0300
+@@ -111,7 +111,8 @@
+
+ MSError::ErrorStatus MSFloat::internalSet(const char *pString_)
+ {
+- char *np,buf[512];
++ const char *np;
++ char buf[512];
+
+ _real=0.0;
+ _flags=MSFloat::Set; // clear the Valid bit, i.e. isValid==MSFalse
+@@ -128,7 +129,7 @@
+ { return (MSError::BadReal); } // Disallow leading commas
+
+ // Make sure we don't save too many characters after the decimal
+- char *decimal=strchr(pString_,'.');
++ const char *decimal=strchr(pString_,'.');
+ if ((decimal!=0)&&(strlen(decimal+1)>MSRealMaximumLength))
+ { return (MSError::IntTooBig); }
+ strcpy(buf,pString_);
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/MSObjectTypeVectorInlines.C
aplus-fsf-4.22/src/MSTypes/MSObjectTypeVectorInlines.C
+--- aplus-fsf-4.22.orig/src/MSTypes/MSObjectTypeVectorInlines.C
2008-03-31 13:45:06.000000000 -0300
++++ aplus-fsf-4.22/src/MSTypes/MSObjectTypeVectorInlines.C 2015-03-04
22:43:29.513581606 -0300
+@@ -87,7 +87,7 @@
+ template <class Type>
+ INLINELINKAGE MSObjectVector<Type> MSObjectVector<Type>::operator[] (const
MSBinaryVector & bVect_) const
+ {
+- return compress (*this, bVect_);
++ return this->compress (*this, bVect_);
+ }
+
+
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/MSObservableTree.C
aplus-fsf-4.22/src/MSTypes/MSObservableTree.C
+--- aplus-fsf-4.22.orig/src/MSTypes/MSObservableTree.C 2008-03-27
16:10:49.000000000 -0300
++++ aplus-fsf-4.22/src/MSTypes/MSObservableTree.C 2015-03-04
21:58:13.817511186 -0300
+@@ -94,7 +94,7 @@
+ void MSObservableTree<Element>::removeSubtree(const
MSTabularTreeCursor<Element>& cursor_)
+ {
+ MSTabularTreeCursor<Element> cursor2(cursor_);
+- unsigned long pos=position(cursor2);
++ unsigned long pos=this->position(cursor2);
+ cursor2.setToParent();
+ MSTabularTree<Element>::removeSubtree(cursor_);
+ if (cursor2.isValid()) changed(cursor2,pos,MSObservableTreeDelete);
+@@ -162,7 +162,7 @@
+ void MSObservableTree<Element>::replaceAt(MSTabularTreeCursor<Element>
const& cursor_,Element const& element_)
+ {
+ MSTabularTree<Element>::replaceAt(cursor_,element_);
+- changed(cursor_,position(cursor_),MSObservableTreeAssign);
++ changed(cursor_,this->position(cursor_),MSObservableTreeAssign);
+ }
+
+ template <class Element>
+@@ -170,10 +170,10 @@
+ {
+ if (&tree_!=this)
+ {
+- if (isRoot(cursor_)) copy(tree_);
++ if (this->isRoot(cursor_)) copy(tree_);
+ else
+ {
+- unsigned long pos=position(cursor_);
++ unsigned long pos=this->position(cursor_);
+ MSTabularTreeCursor<Element> cursor=cursor_;
+ cursor.setToParent();
+ MSTabularTree<Element>::removeSubtree(cursor_);
+@@ -199,7 +199,7 @@
+ template <class Element>
+ void MSObservableTree<Element>::elementChanged(MSTabularTreeCursor<Element>
const& cursor_)
+ {
+- changed(cursor_,position(cursor_),MSObservableTreeAssign);
++ changed(cursor_,this->position(cursor_),MSObservableTreeAssign);
+ }
+
+ template <class Element>
+diff -ur aplus-fsf-4.22.orig/src/MSTypes/MSUtil.C
aplus-fsf-4.22/src/MSTypes/MSUtil.C
+--- aplus-fsf-4.22.orig/src/MSTypes/MSUtil.C 2008-03-27 16:10:34.000000000
-0300
++++ aplus-fsf-4.22/src/MSTypes/MSUtil.C 2015-03-05 02:59:50.033980433
-0300
+@@ -25,7 +25,7 @@
+ void MSUtil::comma(const char *fromBuffer_,char *toBuffer_,int size_)
+ {
+ int places,len,i,j;
+- char *cp;
++ const char *cp;
+
+ if ((cp=strchr(fromBuffer_,'.'))!=NULL)
+ {
diff --git a/devel/aplus/patches/includes.patch
b/devel/aplus/patches/includes.patch
new file mode 100644
index 0000000..856939f
--- /dev/null
+++ b/devel/aplus/patches/includes.patch
@@ -0,0 +1,35 @@
+From: Ismael Luceno <ismael AT sourcemage.org>
+Subject: Add missing includes
+
+--
+--- aplus-fsf-4.22/src/a/development.h.orig
++++ aplus-fsf-4.22/src/a/development.h
+@@ -30,6 +30,8 @@
+ # endif
+ # endif
+
++#include <string.h>
++
+ # define bcopy(s1,s2,len) memmove(s2,s1,len)
+ # define bcmp(s1,s2,len) (memcmp(s2,s1,len)==0?0:1)
+ # define bzero(sp, len) memset(sp, 0, len)
+--- aplus-fsf-4.22/src/dap/connopen.c.orig 2015-03-06 14:10:46.110262033
-0300
++++ aplus-fsf-4.22/src/dap/connopen.c 2015-03-06 14:11:00.748262413 -0300
+@@ -10,7 +10,6 @@
+ /* header file inclusions */
+ #include <sys/types.h>
+ #ifdef HAVE_SVR4
+-#include <sys/filio.h>
+ #endif
+ #include <sys/uio.h>
+ #include <dap/notsunos4.h>
+--- aplus-fsf-4.22/src/dap/lstnopen.c.orig 2015-03-06 14:36:26.060301965
-0300
++++ aplus-fsf-4.22/src/dap/lstnopen.c 2015-03-06 14:36:33.945302169 -0300
+@@ -10,7 +10,6 @@
+ /* header file inclusions */
+ #include <sys/types.h>
+ #if defined(HAVE_SVR4)
+-#include <sys/filio.h>
+ #endif
+ #include <sys/uio.h>
+ #include <dap/notsunos4.h>



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (a31c1620991a35c05c71437a15d2a302c9cf4431), Ismael Luceno, 03/06/2015

Archive powered by MHonArc 2.6.24.

Top of Page