gentoo/sci-chemistry/openbabel/files/openbabel-3.1.1_p2024-fix_examples.patch
Nicolas PARLANT 203d57887f
sci-chemistry/openbabel: add 3.1.1_p20241221
New snapshot to include in particular more json features.

deps :
  libxml2/cairo are not required with minimal
  rm openbabel-perl

replace sed :
  perl LIB_INSTALL_DIR (no-op) -> set PERL_INSTDIR
  PYTHON_BINDINGS (no-op for test/CMakeLists.txt due to a typo) -> not required
  examples RUNTIME_DESTINATION -> patch with CMAKE_INSTALL_DOCDIR
  find_package :
     use DISABLE_FIND_PACKAGE for Cairo(png), wxWidgets(wxwidgets) and Boost
     use ADD_INCHI_FORMAT to prevent using bundled inchi

openbabel-python-cmake :
  use target_include_directories instead of include_directories to prevent
  including all python_targets at the same time for each implementation.

tests :
  skip two more tests with known issues
  rm -O2 exclusions introduced with 1fce6e91e642ac7fe5c3b9f675c54244be423a53
  It seems fixed now (checked with -O2/clang/lto/gcc15/+-openmp/+-cpu_flags).
  This will require investigation if it reappears.

add py3.13 (tests passed)

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-24 09:15:54 +00:00

14 lines
454 B
Diff

prevent installation of examples in /usr/bin
all files from examples are 'RUNTIME', no lib
--- a/doc/examples/CMakeLists.txt
+++ b/doc/examples/CMakeLists.txt
@@ -7,7 +7,7 @@
add_executable(${example} ${example}.cpp)
target_link_libraries(${example} ${BABEL_LIBRARY})
install(TARGETS ${example}
- RUNTIME DESTINATION bin
+ RUNTIME DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)