mathematical 1.2.1 → 1.2.2
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/extconf.rb +3 -3
- data/ext/mathematical/lasem/itex2mml/itex2MML.l +1084 -0
- data/ext/mathematical/lasem/itex2mml/itex2MML.y +1945 -0
- data/ext/mathematical/mtex2MML/Makefile +91 -0
- data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
- data/ext/mathematical/mtex2MML/build/mtex2MML.h +1 -1
- data/ext/mathematical/mtex2MML/src/mtex2MML.l +1550 -0
- data/ext/mathematical/mtex2MML/src/mtex2MML.y +3726 -0
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +2 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f255eab0881eb572422d7cffeb79f042b70a4223
|
4
|
+
data.tar.gz: 99cdee5873c832ef1de1f1668ef15978115dbc0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f6cf81feedc4802c96446414ca66cc167805824d5daff5bc158a9f1cfb454dc6d50e71de834e696d8bc7efa7d4d9de100b5644cc1c72bcd356318b852c565d7
|
7
|
+
data.tar.gz: c1334de8292283e8add116476d51db40792563eaef801561722e84b4055f6d37f1ee88e45eb94bb39ddbbf0eb9a8cad7f5b79cb9c0c9280ffb0cc5627ce2aba1
|
data/ext/mathematical/extconf.rb
CHANGED
@@ -2,8 +2,8 @@ require 'mkmf'
|
|
2
2
|
require 'rbconfig'
|
3
3
|
host_os = RbConfig::CONFIG['host_os']
|
4
4
|
|
5
|
-
LASEM_DIR = File.join(File.dirname(__FILE__), 'lasem', 'src')
|
6
|
-
MTEX2MML_DIR = File.join(File.dirname(__FILE__), 'mtex2MML')
|
5
|
+
LASEM_DIR = File.expand_path(File.join(File.dirname(__FILE__), 'lasem', 'src'))
|
6
|
+
MTEX2MML_DIR = File.expand_path(File.join(File.dirname(__FILE__), 'mtex2MML'))
|
7
7
|
|
8
8
|
if host_os =~ /darwin|mac os/
|
9
9
|
ENV['PKG_CONFIG_PATH'] = "/opt/X11/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
|
@@ -27,7 +27,7 @@ Dir.chdir(MTEX2MML_DIR) do
|
|
27
27
|
system 'make'
|
28
28
|
end
|
29
29
|
|
30
|
-
FileUtils.cp_r(Dir.glob(
|
30
|
+
FileUtils.cp_r(Dir.glob(File.join(MTEX2MML_DIR, 'build', '*.{a,h}')), File.dirname(__FILE__))
|
31
31
|
|
32
32
|
$LDFLAGS << " #{`pkg-config --static --libs glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp}"
|
33
33
|
$CFLAGS << " -g -O2 #{`pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp} -I#{LASEM_DIR}"
|