logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

opencolorio-1.1.0-remove-building-of-bundled-programs.patch (6108B)


  1. From 967369b36c9684d7ffb73a926c442d8991a3afef Mon Sep 17 00:00:00 2001
  2. From: Jonathan Scruggs <j.scruggs@gmail.com>
  3. Date: Mon, 15 Jan 2018 13:09:31 +0000
  4. Subject: [PATCH 3/3] Remove building of bundled programs
  5. ---
  6. docs/CMakeLists.txt | 98 ++---------------------------------------------------
  7. 1 file changed, 3 insertions(+), 95 deletions(-)
  8. diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
  9. index a822a19..d588139 100644
  10. --- a/docs/CMakeLists.txt
  11. +++ b/docs/CMakeLists.txt
  12. @@ -1,90 +1,4 @@
  13. -###############################################################################
  14. -### External Doc Apps ###
  15. -
  16. -if (WIN32)
  17. - # Workaround to mimic *nix '> PYTHONPATH=XXX CMD'
  18. - # on windows, it becomes '> set PYTHONPATH=XXX \n call CMD'
  19. - # '\n' is here because '\\&' does not work.
  20. - set(PYT_PRE_CMD set PYTHONPATH=${PYTHONPATH} "\n" call )
  21. - # Unfortunately some windows tools require to have
  22. - # the paths with the '\' (not working with '//').
  23. - set(PYT_LIB_OUTPUT ${EXTDIST_ROOT})
  24. - string(REGEX REPLACE "/" "\\\\" PYT_LIB_OUTPUT ${PYT_LIB_OUTPUT})
  25. - set(PYT_EXTDIST_BINPATH ${EXTDIST_BINPATH})
  26. - string(REGEX REPLACE "/" "\\\\" PYT_EXTDIST_BINPATH ${PYT_EXTDIST_BINPATH})
  27. -else()
  28. - set(PYT_PRE_CMD PYTHONPATH=${PYTHONPATH})
  29. - set(PYT_LIB_OUTPUT ${EXTDIST_ROOT})
  30. - set(PYT_EXTDIST_BINPATH ${EXTDIST_BINPATH})
  31. -endif()
  32. -
  33. -# setuptools
  34. -# https://pypi.python.org/pypi/setuptools
  35. -set(SETUPTOOLS_VERSION 1.1.6)
  36. -
  37. -ExternalProject_Add(setuptools
  38. - URL ${CMAKE_SOURCE_DIR}/ext/setuptools-${SETUPTOOLS_VERSION}.tar.gz
  39. - BUILD_IN_SOURCE 1
  40. - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
  41. - BUILD_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py build
  42. - INSTALL_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py install --prefix=${PYT_LIB_OUTPUT}
  43. - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/setuptools-prefix/src/setuptools
  44. -)
  45. -
  46. -# docutils
  47. -# https://pypi.python.org/pypi/docutils
  48. -set(DOCUTILS_VERSION 0.11)
  49. -ExternalProject_Add(docutils
  50. - DEPENDS setuptools
  51. - URL ${CMAKE_SOURCE_DIR}/ext/docutils-${DOCUTILS_VERSION}.tar.gz
  52. - BUILD_IN_SOURCE 1
  53. - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
  54. - BUILD_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py build
  55. - INSTALL_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py install --prefix=${PYT_LIB_OUTPUT}
  56. - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docutils-prefix/src/docutils
  57. -)
  58. -
  59. -# jinja2
  60. -# https://pypi.python.org/pypi/Jinja2
  61. -set(JINJA2_VERSION 2.7.1)
  62. -ExternalProject_Add(Jinja2
  63. - DEPENDS setuptools
  64. - URL ${CMAKE_SOURCE_DIR}/ext/Jinja2-${JINJA2_VERSION}.tar.gz
  65. - BUILD_IN_SOURCE 1
  66. - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
  67. - BUILD_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py build
  68. - INSTALL_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py install --prefix=${PYT_LIB_OUTPUT}
  69. - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Jinja2-prefix/src/Jinja2
  70. -)
  71. -
  72. -# Pygments
  73. -# https://pypi.python.org/pypi/Pygments
  74. -set(PYGMENTS_VERSION 1.6)
  75. -ExternalProject_Add(Pygments
  76. - DEPENDS setuptools
  77. - URL ${CMAKE_SOURCE_DIR}/ext/Pygments-${PYGMENTS_VERSION}.tar.gz
  78. - BUILD_IN_SOURCE 1
  79. - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
  80. - BUILD_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py build
  81. - INSTALL_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py install --prefix=${PYT_LIB_OUTPUT}
  82. - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Pygments-prefix/src/Pygments
  83. -)
  84. -
  85. -# sphinx
  86. -# https://pypi.python.org/pypi/Sphinx
  87. -set(SPHINX_VERSION 1.2b3)
  88. -ExternalProject_Add(Sphinx
  89. - DEPENDS setuptools docutils Jinja2 Pygments
  90. - URL ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.tar.gz
  91. - PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.patch
  92. - BUILD_IN_SOURCE 1
  93. - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
  94. - BUILD_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py build
  95. - INSTALL_COMMAND ${PYT_PRE_CMD} ${PYTHON} setup.py install --prefix=${PYT_LIB_OUTPUT} --install-scripts=${PYT_EXTDIST_BINPATH}
  96. - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Sphinx-prefix/src/Sphinx
  97. -)
  98. -
  99. ###############################################################################
  100. ### Create Doc Targets ###
  101. @@ -122,7 +36,7 @@ else()
  102. endif()
  103. add_custom_target(doc ALL
  104. - COMMAND ${PYT_PRE_CMD} ${EXTDIST_BINPATH}/sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html
  105. + COMMAND sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html
  106. DEPENDS
  107. ${DEPLIBS}
  108. ${CMAKE_BINARY_DIR}/docs/conf.py
  109. @@ -131,11 +45,7 @@ add_custom_target(doc ALL
  110. developers/api/OpenColorTypes.rst
  111. ${RSTDOC_OUTPUT}
  112. COMMENT "Building html docs"
  113. SOURCES ${DOCFILES})
  114. -
  115. -# note: ExternalProject will not build when added to a add_custom_target this
  116. -# works around this problem. This seems to be fixed in the cmake ^HEAD
  117. -add_dependencies(doc Sphinx)
  118. install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/
  119. DESTINATION ${CMAKE_INSTALL_DOCDIR}/html
  120. @@ -146,8 +56,8 @@ find_package(LATEX)
  121. find_package(LATEX)
  122. if(PDFLATEX_COMPILER)
  123. - add_custom_target(latex
  124. - COMMAND ${PYT_PRE_CMD} ${EXTDIST_BINPATH}/sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex
  125. + add_custom_target(latex ALL
  126. + COMMAND sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex
  127. DEPENDS
  128. OpenColorIO
  129. ${CMAKE_BINARY_DIR}/docs/conf.py
  130. @@ -156,14 +66,12 @@ if(PDFLATEX_COMPILER)
  131. ${RSTDOC_OUTPUT}
  132. COMMENT "Building latex doc"
  133. SOURCES ${DOCFILES})
  134. - add_dependencies(latex Sphinx)
  135. add_custom_target(pdf ALL
  136. COMMAND ${PDFLATEX_COMPILER} OpenColorIO.tex
  137. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-latex
  138. COMMENT "Building pdf doc"
  139. SOURCES ${DOCFILES})
  140. - add_dependencies(pdf latex)
  141. install(FILES ${CMAKE_CURRENT_BINARY_DIR}/build-latex/OpenColorIO.pdf
  142. DESTINATION ${CMAKE_INSTALL_DOCDIR})
  143. --
  144. 2.15.1