File: debianization-plugins-mathematica.patch

package info (click to toggle)
texmacs 1%3A2.1.4%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 145,080 kB
  • sloc: cpp: 227,393; lisp: 197,386; ansic: 5,395; python: 1,939; makefile: 1,065; sh: 781; perl: 339; xml: 100; awk: 36
file content (82 lines) | stat: -rw-r--r-- 2,537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Description: debianization-plugins: mathematica
 Rely on realpath(1) as distributed in the essential
 package coreutils.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2024-08-16

--- a/plugins/mathematica/bin/realpath.py
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env python3
-from os.path import realpath
-from sys import argv,exit
-if len(argv)<2: exit(1)
-print realpath(argv[1])
--- a/plugins/mathematica/bin/tm_mathematica
+++ b/plugins/mathematica/bin/tm_mathematica
@@ -14,11 +14,7 @@
     fi
     MATH1=`realpath "$MATH0"`
     if [ $? -ne 0 ]
-    then
-        MATH1=`realpath.py "$MATH0"`
-        if [ $? -ne 0 ]
-        then error "realpath seems not to be installed"
-        fi
+    then error "realpath failed"
     fi
     MATH2=`echo "$MATH1" | sed -e 's=Executables/math$=SystemFiles/Links/MathLink/DeveloperKit='`
     PLATFORM=Linux-x86-64
--- a/plugins/mathematica/src/realpath.c
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/******************************************************************************
-* MODULE     : realpath.c
-* DESCRIPTION: finding the real path of a file
-* COPYRIGHT  : (C) 2005  Andrey Grozin
-*******************************************************************************
-* This software falls under the GNU general public license version 3 or later.
-* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
-* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
-******************************************************************************/
-
-#include <stdlib.h>
-#include <stdio.h>
-#define SIZE 4096
-
-int main(int argc, char **argv)
-{ char path[SIZE];
-  if (argc<2) exit(1);
-  if (realpath(argv[1],path)) printf("%s\n",path);
-  else exit(1);
-  return 0;
-}
--- a/plugins/mathematica/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-
-###############################################################################
-# MODULE     : Make file for the mathematica plugin
-# COPYRIGHT : (C) 2005 Joris van der Hoeven
-# LICENCE   : This software falls under the GNU general public license;
-#             see the file 'LICENSE', which is provided with this package.
-###############################################################################
-
-CC = gcc
-RM = rm -f
-
-all: bin/realpath
-
-bin/realpath: src/realpath.c
-	$(CC) $(CPPFLAGS) $(CFLAGS) src/realpath.c -o bin/realpath
-
-clean:
-	rm -f *~
-	rm -f */*~
-	rm -f */*/*~
-	rm -f */*.o
-	rm -f bin/realpath
-	rm -f bin/tm_mathematica.bin