[csw-devel] SF.net SVN: gar:[18906] csw/mgar/pkg

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Thu Aug 9 15:40:18 CEST 2012


Revision: 18906
          http://gar.svn.sourceforge.net/gar/?rev=18906&view=rev
Author:   pfelecan
Date:     2012-08-09 13:40:18 +0000 (Thu, 09 Aug 2012)
Log Message:
-----------
asymptote/trunk: recipe complete for first release

Added Paths:
-----------
    csw/mgar/pkg/asymptote/
    csw/mgar/pkg/asymptote/Makefile
    csw/mgar/pkg/asymptote/branches/
    csw/mgar/pkg/asymptote/tags/
    csw/mgar/pkg/asymptote/trunk/
    csw/mgar/pkg/asymptote/trunk/Makefile
    csw/mgar/pkg/asymptote/trunk/checksums
    csw/mgar/pkg/asymptote/trunk/files/
    csw/mgar/pkg/asymptote/trunk/files/0001-Fix-implicit-std-namespace.patch
    csw/mgar/pkg/asymptote/trunk/files/0002-Replace-obsolete-GNUC-PREREQ.patch
    csw/mgar/pkg/asymptote/trunk/files/0003-Inhibit-histogram-example-infinite-loop.patch
    csw/mgar/pkg/asymptote/trunk/files/0004-Use-xpdf-instead-of-acroread.patch
    csw/mgar/pkg/asymptote/trunk/files/README.CSW

Added: csw/mgar/pkg/asymptote/Makefile
===================================================================
--- csw/mgar/pkg/asymptote/Makefile	                        (rev 0)
+++ csw/mgar/pkg/asymptote/Makefile	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/asymptote/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/asymptote/trunk/Makefile
===================================================================
--- csw/mgar/pkg/asymptote/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/Makefile	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,118 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = asymptote
+VERSION = 2.16
+GARTYPE = v2
+CATEGORIES = apps
+
+DESCRIPTION = The Vector Graphics Language
+define BLURB
+  Asymptote is a powerful descriptive vector graphics language that provides
+  a natural coordinate-based framework for technical drawing. Labels and
+  equations are typeset with LaTeX, for high-quality PostScript output.
+
+  A major advantage of Asymptote over other graphics packages is that it is a
+  programming language, as opposed to just a graphics program.
+
+  Features of Asymptote:
+
+  - provides a portable standard for typesetting mathematical figures, just as
+    TeX/LaTeX has become the standard for typesetting equations;
+
+  - generates high-quality PostScript, PDF, SVG, or 3D PRC vector graphics;
+
+  - embeds 3D vector PRC graphics within PDF files;
+
+  - inspired by MetaPost, with a much cleaner, powerful C++-like programming
+    syntax and IEEE floating-point numerics;
+
+  - runs on all major platforms (UNIX, MacOS, Microsoft Windows);
+
+  - mathematically oriented (e.g. rotation of vectors by complex
+    multiplication);
+
+  - LaTeX typesetting of labels (for document consistency);
+
+  - uses simplex method and deferred drawing to solve overall size constraint
+    issues between fixed-sized objects (labels and arrowheads) and objects that
+    should scale with figure size;
+
+  - fully generalizes MetaPost path construction algorithms to three
+     dimensions;
+
+  - compiles commands into virtual machine code for speed without sacrificing
+    portability;
+
+  - high-level graphics commands are implemented in the Asymptote language
+    itself, allowing them to be easily tailored to specific applications. 
+endef
+
+MASTER_SITES	=	$(SF_MIRRORS)
+DISTFILES		=	$(DISTNAME).src.tgz
+DISTFILES		+=	README.CSW
+PATCHFILES		+=	0001-Fix-implicit-std-namespace.patch
+PATCHFILES		+=	0002-Replace-obsolete-GNUC-PREREQ.patch
+PATCHFILES		+=	0003-Inhibit-histogram-example-infinite-loop.patch
+PATCHFILES		+=	0004-Use-xpdf-instead-of-acroread.patch
+
+GARCOMPILER		=	GNU
+
+xBUILD_DEP_PKGS	+=	CSWfreeglut
+BUILD_DEP_PKGS	+=	CSWgsl-dev
+BUILD_DEP_PKGS	+=	CSWlibfftw-dev
+BUILD_DEP_PKGS	+=	CSWlibgc-dev
+BUILD_DEP_PKGS	+=	CSWlibncurses-dev
+BUILD_DEP_PKGS	+=	CSWlibreadline-dev
+BUILD_DEP_PKGS	+=	CSWlibsigsegv-dev
+BUILD_DEP_PKGS	+=	CSWlibz-dev
+BUILD_DEP_PKGS	+=	CSWmesa
+BUILD_DEP_PKGS	+=	CSWtetex
+
+CONFIGURE_ARGS	=	$(DIRPATHS)
+CONFIGURE_ARGS	+=	--disable-gc
+# stack overflow in building loggrid.asy
+#CONFIGURE_ARGS	+=	--enable-gc
+# asy doesn't link with a bunch of unresolved symbols:
+#CONFIGURE_ARGS	+=	--enable-offscreen
+
+BUILD_SCRIPTS	=	nominal
+
+LICENSE			=	LICENSE
+
+RUNTIME_DEP_PKGS				+=	CSWfreeglut
+RUNTIME_DEP_PKGS				+=	CSWgv
+CHECKPKG_OVERRIDES_CSWasymptote += surplus-dependency|CSWgv
+RUNTIME_DEP_PKGS				+=	CSWlibfftw3-3
+RUNTIME_DEP_PKGS				+=	CSWlibgcc-s1
+RUNTIME_DEP_PKGS				+=	CSWlibgsl0
+RUNTIME_DEP_PKGS				+=	CSWlibgslcblas0
+RUNTIME_DEP_PKGS				+=	CSWlibncurses5
+RUNTIME_DEP_PKGS				+=	CSWlibreadline6
+RUNTIME_DEP_PKGS				+=	CSWlibsigsegv2
+RUNTIME_DEP_PKGS				+=	CSWlibstdc++6
+RUNTIME_DEP_PKGS				+=	CSWlibz1
+RUNTIME_DEP_PKGS				+=	CSWmesa
+RUNTIME_DEP_PKGS				+=	CSWpython-tk
+RUNTIME_DEP_PKGS				+=	CSWpy-pil
+RUNTIME_DEP_PKGS				+=	CSWtetex
+CHECKPKG_OVERRIDES_CSWasymptote += surplus-dependency|CSWtetex
+RUNTIME_DEP_PKGS				+=	CSWxpdf
+CHECKPKG_OVERRIDES_CSWasymptote += surplus-dependency|CSWxpdf
+
+include gar/category.mk
+
+PATH := /opt/csw/gnu:/opt/csw/libexec/flex-2.5.35/bin:$(PATH)
+
+build-nominal:
+	cd $(WORKSRC) && /usr/bin/env -i $(BUILD_ENV) && $(MAKE) -C $(OBJDIR) all html
+	$(MAKECOOKIE)
+
+post-install-modulated:
+	ginstall --directory --mode=u=rwx,go=rx $(DESTDIR)/$(lispdir)
+	mv $(DESTDIR)/$(datadir)/$(NAME)/*.el $(DESTDIR)/$(lispdir)
+	$(MAKECOOKIE)
+
+# this is private and not available publicly
+mydependencies:
+	for package in CSW$(NAME); do echo '___' $${package}; $(HOME)/bin/ocswdeplist --depth 1 --dependencies --packaging --csw --prototype $(HOME)/opencsw/$(NAME)/trunk/work/build-global/$${package}.prototype --target $(HOME)/opencsw/$(NAME)/trunk/work/pkgroot; done


Property changes on: csw/mgar/pkg/asymptote/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/asymptote/trunk/checksums
===================================================================
--- csw/mgar/pkg/asymptote/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/checksums	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1 @@
+8504bae74bbaf589f9d7684736b358a1  asymptote-2.16.src.tgz

Added: csw/mgar/pkg/asymptote/trunk/files/0001-Fix-implicit-std-namespace.patch
===================================================================
--- csw/mgar/pkg/asymptote/trunk/files/0001-Fix-implicit-std-namespace.patch	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/files/0001-Fix-implicit-std-namespace.patch	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,39 @@
+From b3d6a238b2d2ce78158c2f77a6228a6fda6d63df Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 7 Aug 2012 09:57:54 +0200
+Subject: [PATCH] Fix implicit std namespace
+
+---
+ algebra3.cc | 2 +-
+ runtime.in  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/algebra3.cc b/algebra3.cc
+index 203b430..4b76942 100644
+--- a/algebra3.cc
++++ b/algebra3.cc
+@@ -75,7 +75,7 @@
+ #include "algebra3.h"
+ #include <cmath>
+ 
+-static const double radians=acos(-1)/180.0;
++static const double radians=std::acos(-1)/180.0;
+ 
+ #ifdef VEC_ERROR_FATAL
+ #ifndef VEC_ERROR
+diff --git a/runtime.in b/runtime.in
+index 49e6de4..56ab4d8 100644
+--- a/runtime.in
++++ b/runtime.in
+@@ -239,7 +239,7 @@ bool :boolFalse()
+ 
+ bool isnan(real x)
+ {
+-  return isnan(x);
++  return std::isnan(x);
+ }
+ 
+ array* :pushNullArray()
+-- 
+1.7.11.3
+

Added: csw/mgar/pkg/asymptote/trunk/files/0002-Replace-obsolete-GNUC-PREREQ.patch
===================================================================
--- csw/mgar/pkg/asymptote/trunk/files/0002-Replace-obsolete-GNUC-PREREQ.patch	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/files/0002-Replace-obsolete-GNUC-PREREQ.patch	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,53 @@
+From 9c1cd260628be20be92643c357a476058a900514 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Tue, 7 Aug 2012 13:41:06 +0200
+Subject: [PATCH] Replace obsolete GNUC PREREQ
+
+---
+ memory.h        | 2 +-
+ prc/writePRC.cc | 2 +-
+ runmath.in      | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/memory.h b/memory.h
+index ccf0436..50a27f4 100644
+--- a/memory.h
++++ b/memory.h
+@@ -19,7 +19,7 @@
+ #endif
+ 
+ #ifndef NOHASH
+-#if __GNUC_PREREQ(4,3) || defined(__CYGWIN__)
++#if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 3 || (__GNUC_MINOR__ == 3))) || defined(__CYGWIN__)
+ #include <tr1/unordered_map>
+ #define EXT std::tr1
+ #else
+diff --git a/prc/writePRC.cc b/prc/writePRC.cc
+index 9fbbc41..ffaea29 100644
+--- a/prc/writePRC.cc
++++ b/prc/writePRC.cc
+@@ -42,7 +42,7 @@ using namespace std;
+ // Count leading zeros.
+ uint32_t CLZ(uint32_t a) 
+ {
+-#if __GNUC_PREREQ(3,4)
++#if __GNUC__ > 3 || (__GNUC__ == 3 && (__GNUC_MINOR__ > 4 || (__GNUC_MINOR__ == 4)))
+   return __builtin_clz(a);
+ #else
+ // find the log base 2 of a 32-bit integer
+diff --git a/runmath.in b/runmath.in
+index ed4ad9e..6641a5d 100644
+--- a/runmath.in
++++ b/runmath.in
+@@ -304,7 +304,7 @@ Int CLZ(Int a)
+ Int CTZ(Int a) 
+ {
+   if((uint32_t) a > 0xFFFFFFFF) return -1;
+-#if __GNUC_PREREQ(3,4)
++#if __GNUC__ > 3 || (__GNUC__ == 3 && (__GNUC_MINOR__ > 4 || (__GNUC_MINOR__ == 4)))
+   return __builtin_ctz(a);
+ #else
+   // find the number of trailing zeros in a 32-bit number
+-- 
+1.7.11.3
+

Added: csw/mgar/pkg/asymptote/trunk/files/0003-Inhibit-histogram-example-infinite-loop.patch
===================================================================
--- csw/mgar/pkg/asymptote/trunk/files/0003-Inhibit-histogram-example-infinite-loop.patch	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/files/0003-Inhibit-histogram-example-infinite-loop.patch	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,38 @@
+From 07ac5f19a74aea480d15a0f7162ff8ee92e991c0 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Wed, 8 Aug 2012 08:53:23 +0200
+Subject: [PATCH] Inhibit histogram example infinite loop
+
+---
+ doc/histogram.asy | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/doc/histogram.asy b/doc/histogram.asy
+index ec00d66..727f757 100644
+--- a/doc/histogram.asy
++++ b/doc/histogram.asy
+@@ -5,14 +5,16 @@ size(400,200,IgnoreAspect);
+ 
+ int n=10000;
+ real[] a=new real[n];
+-for(int i=0; i < n; ++i) a[i]=Gaussrand();
++// this example is inhibited because in the current OpenCSW port it
++// has an infinite loop in ../base/stats.asy Gaussrandpair()
++// for(int i=0; i < n; ++i) a[i]=Gaussrand();
+ 
+-draw(graph(Gaussian,min(a),max(a)),blue);
++// draw(graph(Gaussian,min(a),max(a)),blue);
+ 
+-// Optionally calculate "optimal" number of bins a la Shimazaki and Shinomoto.
+-int N=bins(a);
++// // Optionally calculate "optimal" number of bins a la Shimazaki and Shinomoto.
++// int N=bins(a);
+ 
+-histogram(a,min(a),max(a),N,normalize=true,low=0,lightred,black,bars=false);
++// histogram(a,min(a),max(a),N,normalize=true,low=0,lightred,black,bars=false);
+ 
+ xaxis("$x$",BottomTop,LeftTicks);
+ yaxis("$dP/dx$",LeftRight,RightTicks(trailingzero));
+-- 
+1.7.11.3
+

Added: csw/mgar/pkg/asymptote/trunk/files/0004-Use-xpdf-instead-of-acroread.patch
===================================================================
--- csw/mgar/pkg/asymptote/trunk/files/0004-Use-xpdf-instead-of-acroread.patch	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/files/0004-Use-xpdf-instead-of-acroread.patch	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,25 @@
+From 5e0dc4ac22966d0360b606d3062e0e10e7e8e975 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Wed, 8 Aug 2012 09:06:50 +0200
+Subject: [PATCH] Use xpdf instead of acroread
+
+---
+ settings.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/settings.cc b/settings.cc
+index a97804a..9ab7375 100644
+--- a/settings.cc
++++ b/settings.cc
+@@ -100,7 +100,7 @@ string defaultPSViewer="gv";
+ #ifdef __APPLE__
+ string defaultPDFViewer="open";
+ #else  
+-string defaultPDFViewer="acroread";
++string defaultPDFViewer="xpdf";
+ #endif  
+ string defaultGhostscript="gs";
+ string defaultDisplay="display";
+-- 
+1.7.11.3
+

Added: csw/mgar/pkg/asymptote/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/asymptote/trunk/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/asymptote/trunk/files/README.CSW	2012-08-09 13:40:18 UTC (rev 18906)
@@ -0,0 +1,3 @@
+- To create animations in PDF files, you will need animate.sty, which
+  can be found at:
+  http://www.ctan.org/tex-archive/macros/latex/contrib/animate/animate.sty

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list