mathematical 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/mathematical/CMakeLists.txt +2 -2
- data/ext/mathematical/extconf.rb +7 -0
- data/ext/mathematical/lasem_overrides.c +1 -1
- data/ext/mathematical/mtex2MML/deps/strdup/strdup.c +1 -1
- data/ext/mathematical/mtex2MML/deps/strdup/strdup.h +1 -1
- data/lib/mathematical/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4568108bfbc246057ca2e9db23882463e1601cc7
|
|
4
|
+
data.tar.gz: b94b870f6af15c07f5d0e39c2cdb2057c99803ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88c8d49ac39d67747a485af87320a37b896fe3f3c29b2bfde3fb5399ad8e4072bfece30a12fd84e20dbbd67f8ba8dd679eae400e6c138ecc0176a8344eed437f
|
|
7
|
+
data.tar.gz: 06999c4712c0a7f0e28611b509793a6ea748326236a7a5db7c097bf25b4b5b081cfcc8daa6309c17f81d4aa760e7f6f801c49cfb0fbddc901ef1bc47ca7a5841
|
|
@@ -29,11 +29,11 @@ list(APPEND LASEM_SRC "${CMAKE_SOURCE_DIR}/lasem_overrides.c")
|
|
|
29
29
|
add_definitions(-DPACKAGE_LOCALE_DIR="/usr/share/locale")
|
|
30
30
|
|
|
31
31
|
if(DEFINED $ENV{TRAVIS})
|
|
32
|
-
add_definitions(-
|
|
32
|
+
add_definitions(-DMATHEMATICAL_SKIP_STRDUP="true")
|
|
33
33
|
endif()
|
|
34
34
|
|
|
35
35
|
if(DEFINED $ENV{MATHEMATICAL_SKIP_STRDUP})
|
|
36
|
-
add_definitions(-
|
|
36
|
+
add_definitions(-DMATHEMATICAL_SKIP_STRDUP="true")
|
|
37
37
|
endif()
|
|
38
38
|
|
|
39
39
|
add_library(${LIBRARY} SHARED
|
data/ext/mathematical/extconf.rb
CHANGED
|
@@ -21,6 +21,10 @@ def using_system_lasem?
|
|
|
21
21
|
arg_config('--use-system-lasem', !!ENV['MATHEMATICAL_USE_SYSTEM_LASEM'])
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
def skipping_strdup?
|
|
25
|
+
!!ENV['MATHEMATICAL_SKIP_STRDUP']
|
|
26
|
+
end
|
|
27
|
+
|
|
24
28
|
ROOT_TMP = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'tmp'))
|
|
25
29
|
|
|
26
30
|
LASEM_DIR = File.expand_path(File.join(File.dirname(__FILE__), 'lasem'))
|
|
@@ -89,6 +93,9 @@ find_header('mtex2MML.h', MTEX2MML_SRC_DIR)
|
|
|
89
93
|
flag = ENV['TRAVIS'] ? '-O0' : '-O2'
|
|
90
94
|
$LDFLAGS << " #{`pkg-config --static --libs glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp}"
|
|
91
95
|
$CFLAGS << " #{flag} #{`pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp}"
|
|
96
|
+
if skipping_strdup?
|
|
97
|
+
$CFLAGS << ' -DMATHEMATICAL_SKIP_STRDUP'
|
|
98
|
+
end
|
|
92
99
|
$LIBS << ' -lmtex2MML -llasem'
|
|
93
100
|
|
|
94
101
|
create_makefile('mathematical/mathematical')
|
data/lib/mathematical/version.rb
CHANGED