Top Level Namespace
Defined Under Namespace
Classes: Configuration, Mathematical
Constant Summary collapse
- HOST_OS =
- LIBDIR =
- INCLUDEDIR =
- SHARED_EXT =
if HOST_OS =~ /darwin|mac os/ 'dylib' else 'so' end
- ROOT_TMP =
File.(File.join(File.dirname(__FILE__), '..', '..', 'tmp'))
- LASEM_DIR =
File.(File.join(File.dirname(__FILE__), 'lasem'))
- LASEM_BUILD_DIR =
File.join(LASEM_DIR, 'build')
- LASEM_SRC_DIR =
File.(File.join(LASEM_DIR, 'src'))
- LASEM_LIB_DIR =
File.(File.join(File.dirname(__FILE__), 'lib'))
- MTEX2MML_DIR =
File.(File.join(File.dirname(__FILE__), 'mtex2MML'))
- MTEX2MML_BUILD_DIR =
File.join(MTEX2MML_DIR, 'build')
- MTEX2MML_SRC_DIR =
File.(File.join(MTEX2MML_DIR, 'src'))
- MTEX2MML_LIB_DIR =
File.(File.join(File.dirname(__FILE__), 'lib'))
- LIB_DIRS =
[MTEX2MML_LIB_DIR, LASEM_LIB_DIR]
- HEADER_DIRS =
[MTEX2MML_SRC_DIR, LASEM_SRC_DIR]
Instance Method Summary collapse
-
#clean_dir(dir) ⇒ Object
TODO: we need to clear out the build dir that’s erroneously getting packaged this causes problems, as Linux installation is expecting OS X output.
- #using_system_lasem? ⇒ Boolean
Instance Method Details
#clean_dir(dir) ⇒ Object
TODO: we need to clear out the build dir that’s erroneously getting packaged this causes problems, as Linux installation is expecting OS X output
50 51 52 53 54 55 |
# File 'ext/mathematical/extconf.rb', line 50 def clean_dir(dir) if File.directory?(dir) && !File.exist?(ROOT_TMP) FileUtils.rm_rf(dir) end FileUtils.mkdir_p(dir) end |
#using_system_lasem? ⇒ Boolean
20 21 22 |
# File 'ext/mathematical/extconf.rb', line 20 def using_system_lasem? arg_config('--use-system-lasem', !!ENV['MATHEMATICAL_USE_SYSTEM_LASEM']) end |