Files
mathgl/mathgl-texmf-dir.patch
Atri Bhattacharya 673fd2b45a Accepting request 943351 from home:badshah400:branches:science
* Update to version 2.5.
* Minor rebase of mathgl-fix-python-module-path.patch to apply cleanly against updated version.
* Bump library so version appropriately.
* Enable python3 bindings: now supported by upstream; build only for default python3 flavour.
* Disable python bindings for Leap, since python >= 3.8 is required whereas Leap 15.2/3 only have python 3.6.
* Re-enable octave bindings.
* Rename python sub-package to have name consistent with openSUSE's python3 package naming guidelines.
* Update _constraints to require 8 GB disk space as required by updated version.
* Drop sed fix for location of numpy header file: no longer needed.

OBS-URL: https://build.opensuse.org/request/show/943351
OBS-URL: https://build.opensuse.org/package/show/science/mathgl?expand=0&rev=111
2022-01-10 23:56:54 +00:00

31 lines
1.5 KiB
Diff

Index: mathgl-2.4.4+svn1661/mgltex/CMakeLists.txt
===================================================================
--- mathgl-2.4.4+svn1661.orig/mgltex/CMakeLists.txt
+++ mathgl-2.4.4+svn1661/mgltex/CMakeLists.txt
@@ -10,15 +10,6 @@ find_program(findmktexlsr mktexlsr)
if(NOT findmktexlsr)
message(SEND_ERROR "Couldn't find mktexlsr needed for LATEX example install.")
endif(NOT findmktexlsr)
-execute_process(
- COMMAND ${findkpsewhich} -var-value=TEXMFLOCAL
- OUTPUT_VARIABLE TEXMFLOCALDIR
- RESULT_VARIABLE TEXMFLOCAL_ERR
- OUTPUT_STRIP_TRAILING_WHITESPACE
-)
-if(NOT TEXMFLOCALDIR)
- message(SEND_ERROR "Couldn't find TEXMFLOCAL directory.")
-endif(NOT TEXMFLOCALDIR)
# set(extramgl Axis_projection Vectorial)
@@ -49,6 +40,6 @@ get_directory_property(mglconv_clean ADD
set(mglconv_clean ${mglconv_clean} scripts mgltex.sty sample.tex sample.aux sample.log)
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${mglconv_clean}")
-install(FILES ${MathGL2_BINARY_DIR}/mgltex/mgltex.sty DESTINATION ${TEXMFLOCALDIR}/tex/latex/mgltex/)
-install(FILES sample.tex mgltex.pdf ${MathGL2_BINARY_DIR}/mgltex/sample.pdf DESTINATION ${TEXMFLOCALDIR}/doc/latex/mgltex/)
-install(CODE "execute_process(COMMAND ${findmktexlsr} ${TEXMFLOCALDIR})")
+install(FILES ${MathGL2_BINARY_DIR}/mgltex/mgltex.sty DESTINATION ${TEXMFDIR}/tex/latex/mgltex/)
+install(FILES sample.tex mgltex.pdf ${MathGL2_BINARY_DIR}/mgltex/sample.pdf DESTINATION ${TEXMFDIR}/doc/latex/mgltex/)
+install(CODE "execute_process(COMMAND ${findmktexlsr} ${TEXMFDIR})")