diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-26 05:45:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-26 05:45:05 +0000 |
commit | 591a21a311878e2daaefd471dfbdbec97b8b66e6 (patch) | |
tree | e8622fe82c9da0d6cc2a6c38e9951477f584a1c5 /openbabel-perl.patch | |
parent | d7c45699b4b3e41973c9a1c0eadeb2cec369c50d (diff) |
automatic import of openbabelopeneuler20.03
Diffstat (limited to 'openbabel-perl.patch')
-rw-r--r-- | openbabel-perl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/openbabel-perl.patch b/openbabel-perl.patch new file mode 100644 index 0000000..7e80117 --- /dev/null +++ b/openbabel-perl.patch @@ -0,0 +1,29 @@ +diff -up openbabel-75414ad4e043f16ba72ae51c7ca60f448576688d/scripts/CMakeLists.txt.rpm openbabel-75414ad4e043f16ba72ae51c7ca60f448576688d/scripts/CMakeLists.txt +--- openbabel-75414ad4e043f16ba72ae51c7ca60f448576688d/scripts/CMakeLists.txt.rpm 2015-02-04 20:04:57.000000000 +0100 ++++ openbabel-75414ad4e043f16ba72ae51c7ca60f448576688d/scripts/CMakeLists.txt 2015-02-07 23:38:54.649356914 +0100 +@@ -336,12 +336,23 @@ if (DO_PERL_BINDINGS) + if(NOT BINDINGS_ONLY) + add_dependencies(bindings_perl openbabel) + endif() ++ execute_process( ++ COMMAND ++ ${PERL_EXECUTABLE} -V:installvendorarch ++ OUTPUT_VARIABLE ++ PERL_INSTALL_DIR_OUTPUT ++ RESULT_VARIABLE ++ PERL_INSTALL_DIR_RESULT ++ ) ++ if (NOT PERL_INSTALL_DIR_RESULT) ++ string(REGEX REPLACE "installvendorarch='([^']+)'.*" "\\1" PERL_INSTALL_DIR ${PERL_INSTALL_DIR_OUTPUT}) ++ endif (NOT PERL_INSTALL_DIR_RESULT) + + install(TARGETS bindings_perl +- LIBRARY DESTINATION ${LIB_INSTALL_DIR}/auto/Chemistry/OpenBabel/ ++ LIBRARY DESTINATION ${PERL_INSTALL_DIR}/auto/Chemistry/OpenBabel/ + COMPONENT bindings_perl) + install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm +- DESTINATION ${LIB_INSTALL_DIR}/Chemistry/ ++ DESTINATION ${PERL_INSTALL_DIR}/Chemistry/ + COMPONENT bindings_perl) + + endif (DO_PERL_BINDINGS) |