summaryrefslogtreecommitdiff
path: root/graphics/asymptote/build-scripts
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/build-scripts
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/build-scripts')
-rw-r--r--graphics/asymptote/build-scripts/HOWTO-MSWindows18
-rw-r--r--graphics/asymptote/build-scripts/README-binaries2
-rw-r--r--graphics/asymptote/build-scripts/asy-format.el52
-rw-r--r--graphics/asymptote/build-scripts/asy-indent.el6
-rwxr-xr-xgraphics/asymptote/build-scripts/build-asygl2
-rwxr-xr-xgraphics/asymptote/build-scripts/build-asymptote.dos2
-rw-r--r--graphics/asymptote/build-scripts/cc-format.el52
-rw-r--r--graphics/asymptote/build-scripts/cc-indent.el6
-rw-r--r--graphics/asymptote/build-scripts/run-in-indent.el6
9 files changed, 140 insertions, 6 deletions
diff --git a/graphics/asymptote/build-scripts/HOWTO-MSWindows b/graphics/asymptote/build-scripts/HOWTO-MSWindows
index 977501d658..9a39e4b174 100644
--- a/graphics/asymptote/build-scripts/HOWTO-MSWindows
+++ b/graphics/asymptote/build-scripts/HOWTO-MSWindows
@@ -8,9 +8,11 @@ Install TeXLive and required Cygwin packages:
setup-x86_64.exe -q -P git,wget,make,patch,gcc-g++,autoconf2.5,bison,flex,w32api-headers,w32api-runtime,zlib-devel,glm-devel,automake1.15,libtool
-setup-x86_64.exe -q -I -P libtirpc-devel,libreadline-devel,libfftw3-devel,libgsl-devel
+setup-x86_64.exe -q -I -P libtirpc-devel,libreadline-devel,libfftw3-devel,libgsl-devel,libcurl-devel
-Build and install static libraries from /usr/local/src:
+Download wolfssl GPLV3 source code from www.wolfssl.com
+
+Build and install static libraries from /usr/src:
gsl-devel:
./configure --prefix=/usr
@@ -21,7 +23,7 @@ readline-devel:
make install
fftw3-devel:
-./configure --prefix=/usr --enable-shared
+./configure --prefix=/usr --disable-shared
make install
tirpc-devel:
@@ -35,6 +37,14 @@ termcap-1.3.1:
./configure --prefix=/usr
make install
+wolfssl-4.4.0-gplv3-fips-ready:
+./configure --prefix=/usr --enable-static
+make install
+
+curl-7.71.1:
+./configure --prefix=/usr --disable-shared --without-brotli --without-ssl --with-wolfssl
+make install
+
git clone http://github.com/vectorgraphics/asymptote
freeglut-3.0.0:
@@ -62,4 +72,4 @@ cd gc-$GCVERSION
./configure --disable-shared
make check
-~/asymptote/build-scripts/build-asymptote.dos 2.48
+~/asymptote/build-scripts/build-asymptote.dos <VERSION>
diff --git a/graphics/asymptote/build-scripts/README-binaries b/graphics/asymptote/build-scripts/README-binaries
index 8e4192121d..41576b36f4 100644
--- a/graphics/asymptote/build-scripts/README-binaries
+++ b/graphics/asymptote/build-scripts/README-binaries
@@ -1,5 +1,5 @@
The Asymptote executable for MSWindows can only be released under the GNU
General Public License (GPL) as it is linked against the GNU Scientific
-Library, GNU Readline library, and other GPL libraries. The Asymptote
+Library, GNU Readline library, WolfSSL, and other GPL libraries. The Asymptote
source itself is released under the GNU Lesser General Public License.
diff --git a/graphics/asymptote/build-scripts/asy-format.el b/graphics/asymptote/build-scripts/asy-format.el
new file mode 100644
index 0000000000..fc66032653
--- /dev/null
+++ b/graphics/asymptote/build-scripts/asy-format.el
@@ -0,0 +1,52 @@
+(defun change (old-pat new-pat) "Replace all occurences of old-pat to new-pat in current buffer."
+(interactive "r")
+(goto-char (point-min))
+(replace-string old-pat new-pat))
+
+(defun changereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer."
+(interactive "r")
+(goto-char (point-min))
+(replace-regexp old-regexp new-regexp))
+
+(defun querychangereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer, with query."
+(interactive "r")
+(goto-char (point-min))
+(query-replace-regexp old-regexp new-regexp))
+
+(set-variable 'case-fold-search nil)
+(change " + " "+")
+(change " - " "-")
+;;(change " * " "*")
+(change " / " "/")
+(change " = " "=")
+(change " --" "--")
+(change "-- " "--")
+(change " ++" "++")
+(change "++ " "++")
+(change " .. " "..")
+(change " ^^ " "^^")
+(change " & " "&")
+(change " :: " "::")
+(change ";--" "; --")
+(change " (" "(")
+(change " )" ")")
+(change " }" "}")
+(changereg "( \\([^/]\\)" "(\\1")
+(changereg "{ \\([^/]\\)" "{\\1")
+(changereg "\\([^ ]\\)\\?" "\\1 ?")
+(changereg "\\?\\([^ ]\\)" "? \\1")
+(changereg ";\\([^ \\}
+]\\)" "; \\1")
+;;(changereg "\\([^ ]\\):" "\\1 :")
+(changereg ":\\([^ ]\\)" ": \\1")
+(changereg "\\([+-*/=!<>]\\)=\\([^ ]\\)" "\\1= \\2")
+(changereg "\\([^ ]\\)\\([+-*/=!<>]\\)=" "\\1 \\2=")
+(changereg "\\([<>]\\)\\([^ =]\\)" "\\1 \\2")
+(changereg "\\([^ ]\\)\\([<>]\\)" "\\1 \\2")
+(changereg "&&\\([^ ]\\)" "&& \\1")
+(changereg "||\\([^ ]\\)" "|| \\1")
+(changereg "\\[\\]\\([^ []\\)" "[] \\1")
+(indent-region (point-min) (point-max))
+
+(querychangereg ", " ",")
+
diff --git a/graphics/asymptote/build-scripts/asy-indent.el b/graphics/asymptote/build-scripts/asy-indent.el
new file mode 100644
index 0000000000..06189e5e60
--- /dev/null
+++ b/graphics/asymptote/build-scripts/asy-indent.el
@@ -0,0 +1,6 @@
+(load-file "/usr/local/share/asymptote/asy-mode.el")
+(asy-mode)
+(indent-region (point-min) (point-max) nil)
+(untabify (point-min) (point-max))
+(delete-trailing-whitespace (point-min) (point-max))
+(save-buffer)
diff --git a/graphics/asymptote/build-scripts/build-asygl b/graphics/asymptote/build-scripts/build-asygl
index f1d75a6f80..559b08c08b 100755
--- a/graphics/asymptote/build-scripts/build-asygl
+++ b/graphics/asymptote/build-scripts/build-asygl
@@ -7,7 +7,7 @@ if [ $# -eq 1 ]; then \
UGLIFY=cat; \
UGLIFYOPT=""; \
else \
-UGLIFY=uglifyjs; \
+UGLIFY=terser; \
UGLIFYOPTIONS="-m -c --comments"; \
fi
diff --git a/graphics/asymptote/build-scripts/build-asymptote.dos b/graphics/asymptote/build-scripts/build-asymptote.dos
index b8755c7591..5bb6777cc2 100755
--- a/graphics/asymptote/build-scripts/build-asymptote.dos
+++ b/graphics/asymptote/build-scripts/build-asymptote.dos
@@ -35,6 +35,7 @@ make -n MSDOS=1 >& /dev/null || ./configure OSTYPE=msdos --enable-gc=$GC --with-
rm -rf $BUILD
mkdir -p $BUILD
cp -a $HOME/dll/cygwin/*.dll $BUILD
+cp /etc/pki/tls/certs/ca-bundle.crt $BUILD
chmod 0644 $BUILD/*.dll
cp -a $BUILD/*.dll ~/CTAN/asymptote-$VERSION/binaries/$BINDIR/
make MSDOS=1 DESTDIR="$BUILD/" docdir="$BUILD/"
@@ -55,6 +56,7 @@ ls -p1 $BUILD \
| awk '{ if(index($0,"/")==length($0)) print "RMDir /r $INSTDIR\\" substr($0,0,length($0)-1); else print "Delete $INSTDIR\\" $0 }' \
> AsymptoteUninstallList.nsi
+rm $BUILD/xasy
if [ $MACHINE == i686 ]; then
sed asymptote.nsi -e 's/$PROGRAMFILES64/$PROGRAMFILES/g' > asymptote32.nsi
/cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensis.exe asymptote32.nsi
diff --git a/graphics/asymptote/build-scripts/cc-format.el b/graphics/asymptote/build-scripts/cc-format.el
new file mode 100644
index 0000000000..fa36f6dd6a
--- /dev/null
+++ b/graphics/asymptote/build-scripts/cc-format.el
@@ -0,0 +1,52 @@
+(defun change (old-pat new-pat) "Replace all occurences of old-pat to new-pat in current buffer."
+(interactive "r")
+(goto-char (point-min))
+(replace-string old-pat new-pat))
+
+(defun changereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer."
+(interactive "r")
+(goto-char (point-min))
+(replace-regexp old-regexp new-regexp))
+
+(defun querychangereg (old-regexp new-regexp) "Replace all occurences of old-regexp to new-regexp in current buffer, with query."
+(interactive "r")
+(goto-char (point-min))
+(query-replace-regexp old-regexp new-regexp))
+
+(set-variable 'case-fold-search nil)
+(change " + " "+")
+(change " - " "-")
+(change " * " "*")
+(change " / " "/")
+(change " = " "=")
+(change " --" "--")
+(change "-- " "--")
+(change " ++" "++")
+(change "++ " "++")
+(change " .. " "..")
+(change " ^^ " "^^")
+(change " & " "&")
+(change " :: " "::")
+(change ";--" "; --")
+(change " (" "(")
+(change " )" ")")
+(change " }" "}")
+(changereg "( \\([^/]\\)" "(\\1")
+(changereg "{ \\([^/]\\)" "{\\1")
+(changereg "\\([^ ]\\)\\?" "\\1 ?")
+(changereg "\\?\\([^ ]\\)" "? \\1")
+(changereg ";\\([^ \\}
+]\\)" "; \\1")
+;;(changereg "\\([^ ]\\):" "\\1 :")
+(changereg ":\\([^ ]\\)" ": \\1")
+(changereg "\\([+-*/=!]\\)=\\([^ ]\\)" "\\1= \\2")
+(changereg "\\([^ ]\\)\\([+-*/=!]\\)=" "\\1 \\2=")
+(changereg "\\([]\\)\\([^ =]\\)" "\\1 \\2")
+(changereg "\\([^ ]\\)\\([]\\)" "\\1 \\2")
+(changereg "&&\\([^ ]\\)" "&& \\1")
+(changereg "||\\([^ ]\\)" "|| \\1")
+(changereg "\\[\\]\\([^ []\\)" "[] \\1")
+(indent-region (point-min) (point-max))
+
+(querychangereg ", " ",")
+
diff --git a/graphics/asymptote/build-scripts/cc-indent.el b/graphics/asymptote/build-scripts/cc-indent.el
new file mode 100644
index 0000000000..58c1ac9ea8
--- /dev/null
+++ b/graphics/asymptote/build-scripts/cc-indent.el
@@ -0,0 +1,6 @@
+(load-file "cc-mode2.el")
+(c++-mode)
+(indent-region (point-min) (point-max) nil)
+(untabify (point-min) (point-max))
+(delete-trailing-whitespace (point-min) (point-max))
+(save-buffer)
diff --git a/graphics/asymptote/build-scripts/run-in-indent.el b/graphics/asymptote/build-scripts/run-in-indent.el
new file mode 100644
index 0000000000..9a4567dcb8
--- /dev/null
+++ b/graphics/asymptote/build-scripts/run-in-indent.el
@@ -0,0 +1,6 @@
+(load-file "cc-mode2.el")
+(c++-mode)
+(indent-region (search-forward " " nil nil 2) (point-max) nil)
+(untabify (point-min) (point-max))
+(delete-trailing-whitespace (point-min) (point-max))
+(save-buffer)