[packages/asymptote] - up to 2.89
baggins
baggins at pld-linux.org
Sat Jun 15 23:30:55 CEST 2024
commit 81a73f8bd11c3675a9edfbc05474a9b2659c1148
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jun 15 23:29:30 2024 +0200
- up to 2.89
disable offscreen because osmesa build is broken
disable docs, they need media9.sty no package is prividing
asymptote-info.patch | 2 +-
asymptote.spec | 14 ++++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/asymptote.spec b/asymptote.spec
index 5444d5a..30a09ae 100644
--- a/asymptote.spec
+++ b/asymptote.spec
@@ -1,19 +1,19 @@
#
# Conditional build:
-%bcond_without doc # API documentation
+%bcond_with doc # API documentation
%bcond_without oiio # OpenImageIO support
#
Summary: Asymptote is a powerful descriptive vector graphics language for technical drawing
Summary(hu.UTF-8): Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
Summary(pl.UTF-8): Język opisu grafiki wektorowej do rysunków technicznych
Name: asymptote
-Version: 2.70
+Version: 2.89
Release: 1
# uses GPL libraries (gsl, readline), so final license is GPL
License: GPL v3+ (LGPL v3+ code)
Group: Applications/Science
Source0: http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5: b57e685568a7cca69024a86c7276eb6d
+# Source0-md5: 905c100fc40b4af24ebf7398b8cce2b7
Patch0: %{name}-memrchr.patch
Patch1: %{name}-info.patch
Patch2: %{name}-no-env.patch
@@ -177,14 +177,16 @@ Plik składni Vima dla plików asy.
%patch2 -p1
%patch3 -p1
-# use direct shebang
-%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' GUI/xasy.py
# actually not executable, contain bogus shebang
%{__sed} -i -e '1d' GUI/configs/*.py \
GUI/{CustMatTransform,DebugFlags,GuidesManager,InplaceAddObj,PrimitiveShape,SetCustomAnchor,Widg_*,Window1,__init__,labelEditor,xasy?*}.py
# only some examples to execute
%{__sed} -i -e '1d' GUI/UndoRedoStack.py base/asymptote.py
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
+ GUI/ContextWindow.py \
+ GUI/xasy.py
+
%build
%{__autoconf}
%{__autoheader}
@@ -192,7 +194,7 @@ Plik składni Vima dla plików asy.
%configure \
%{?with_oiio:--enable-openimageio} \
--enable-gc=system \
- --enable-offscreen \
+ --disable-offscreen \
--with-docdir=%{_docdir}/%{name}-doc
%if %{with doc}
diff --git a/asymptote-info.patch b/asymptote-info.patch
index a85532f..98804ad 100644
--- a/asymptote-info.patch
+++ b/asymptote-info.patch
@@ -3,7 +3,7 @@
@@ -21,9 +21,9 @@
@end quotation
@end copying
-
+
- at dircategory Languages
+ at dircategory Graphics Utilities:
@direntry
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/asymptote.git/commitdiff/81a73f8bd11c3675a9edfbc05474a9b2659c1148
More information about the pld-cvs-commit
mailing list