diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2020-03-16 17:22:13 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2020-03-16 17:58:49 +0100 |
commit | 4752ad90f0e5096cebe36782a4c098a45d2ae67e (patch) | |
tree | 0a1130c4b69956be9d0482e8653563847f7a9987 /sci-physics/geant/files/geant-4.10.6-datadir.patch | |
parent | sci-physics/geant: add myself as maintainer (diff) | |
download | gentoo-4752ad90f0e5096cebe36782a4c098a45d2ae67e.tar.gz gentoo-4752ad90f0e5096cebe36782a4c098a45d2ae67e.tar.bz2 gentoo-4752ad90f0e5096cebe36782a4c098a45d2ae67e.zip |
sci-physics/geant: version bumps for Geant4 10.6
This set of new ebuilds for Geant4 have been updated to offer more
functionality and be easier to maintain in the future. Here is a
list of the improvements made:
- Moved to EAPI=7
- Same ebuild can be used for regular, beta, and patch releases
- Dropped extra zeros from version numbers to follow upstream more closely
- SRC_URI has been updated to the new upstream location
- Fixed dependency on CLHEP to require matching USE=threads
- Added USE=c++XX flags to allow users to choose C++ standard (this is
useful for packages that depend on both sci-physics/root and geant
to ensure that they have been compiled with matching C++ standards).
- New USE=hdf5 and USE=freetype have been added
- Removed obsolete scripts and unnecessary dependency on app-shells/tcsh
- Always use system's zlib instead of bundled one
- Removed usage of PDEPEND by updating geant-docs and geant-data
- Added patch to allow customization of CMAKE_INSTALL_DATADIR
- Added ${EXTRA_ECONF} to allow users to customize installation further
without patching ebuild itself or using an overlay
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'sci-physics/geant/files/geant-4.10.6-datadir.patch')
-rw-r--r-- | sci-physics/geant/files/geant-4.10.6-datadir.patch | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/sci-physics/geant/files/geant-4.10.6-datadir.patch b/sci-physics/geant/files/geant-4.10.6-datadir.patch new file mode 100644 index 000000000000..c26bf8914b46 --- /dev/null +++ b/sci-physics/geant/files/geant-4.10.6-datadir.patch @@ -0,0 +1,159 @@ +From 44966c44635debaddd859c788b008cd4e6c7fab6 Mon Sep 17 00:00:00 2001 +From: Guilherme Amadio <amadio@cern.ch> +Date: Fri, 13 Mar 2020 15:36:27 +0100 +Subject: [PATCH] Allow customization of CMAKE_INSTALL_DATADIR + +--- + cmake/Modules/G4CMakeMain.cmake | 2 +- + cmake/Modules/G4ConfigureGNUMakeHelpers.cmake | 20 +++++++++---------- + cmake/Modules/Geant4InstallData.cmake | 4 ++-- + source/analysis/CMakeLists.txt | 2 +- + source/analysis/g4tools/CMakeLists.txt | 2 +- + 5 files changed, 15 insertions(+), 15 deletions(-) + +diff --git a/cmake/Modules/G4CMakeMain.cmake b/cmake/Modules/G4CMakeMain.cmake +index a6b984fcad..5ab63202ca 100644 +--- a/cmake/Modules/G4CMakeMain.cmake ++++ b/cmake/Modules/G4CMakeMain.cmake +@@ -121,7 +121,7 @@ mark_as_advanced(GEANT4_INSTALL_EXAMPLES) + + if(GEANT4_INSTALL_EXAMPLES) + install(DIRECTORY examples +- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION} ++ DESTINATION ${CMAKE_INSTALL_DATADIR} + COMPONENT Examples + PATTERN "CVS" EXCLUDE + PATTERN ".svn" EXCLUDE +diff --git a/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake b/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake +index c2aeefee59..1052f43a45 100644 +--- a/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake ++++ b/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake +@@ -729,7 +729,7 @@ _g4tc_configure_build_tree_scripts(geant4make) + # +- CMAKE_INSTALL_PREFIX + # +- LIBDIR/Geant4-VERSION (G4LIB) + # +- INCLUDEDIR/Geant4 (G4INCLUDE) +-# +- DATAROOTDIR/Geant4-VERSION/ ++# +- DATADIR/ + # +- geant4make (THIS IS G4INSTALL!) + # +- geant4make.(c)sh + # +- config/ +@@ -742,7 +742,7 @@ set(G4INSTALL "\"\$geant4make_root\"") + # - Include dir + file(RELATIVE_PATH + G4MAKE_TO_INCLUDEDIR +- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make + ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PROJECT_NAME} + ) + set(G4INCLUDE "\"`cd \$geant4make_root/${G4MAKE_TO_INCLUDEDIR} > /dev/null \; pwd`\"") +@@ -750,7 +750,7 @@ set(G4INCLUDE "\"`cd \$geant4make_root/${G4MAKE_TO_INCLUDEDIR} > /dev/null \; pw + # - Bin dir + file(RELATIVE_PATH + G4MAKE_TO_BINDIR +- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make + ${CMAKE_INSTALL_FULL_BINDIR} + ) + set(G4BIN_DIR "\"`cd \$geant4make_root/${G4MAKE_TO_BINDIR} > /dev/null \; pwd`\"") +@@ -758,7 +758,7 @@ set(G4BIN_DIR "\"`cd \$geant4make_root/${G4MAKE_TO_BINDIR} > /dev/null \; pwd`\" + # - Lib dir + file(RELATIVE_PATH + G4MAKE_TO_LIBDIR +- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make + ${CMAKE_INSTALL_FULL_LIBDIR} + ) + set(G4LIB "\"`cd \$geant4make_root/${G4MAKE_TO_LIBDIR}/Geant4-${Geant4_VERSION} > /dev/null \; pwd`\"") +@@ -775,7 +775,7 @@ foreach(_ds ${GEANT4_EXPORTED_DATASETS}) + + file(RELATIVE_PATH + G4MAKE_TO_DATADIR +- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make + ${${_ds}_PATH} + ) + set(${_ds}_PATH "\"`cd \$geant4make_root/${G4MAKE_TO_DATADIR} > /dev/null \; pwd`\"") +@@ -788,7 +788,7 @@ set(TOOLS_FONT_PATH "\"`cd \$geant4make_root/../fonts > /dev/null ; pwd`\"") + _g4tc_configure_install_tree_scripts( + ${CMAKE_BINARY_DIR}/InstallTreeFiles + geant4make +- ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ ${CMAKE_INSTALL_DATADIR}/geant4make + ) + + +@@ -797,7 +797,7 @@ _g4tc_configure_install_tree_scripts( + # softlink to the G4SYSTEM directory. + # + install(DIRECTORY config +- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make ++ DESTINATION ${CMAKE_INSTALL_DATADIR}/geant4make + COMPONENT Development + FILES_MATCHING PATTERN "*.gmk" + PATTERN "CVS" EXCLUDE +@@ -845,11 +845,11 @@ endforeach() + + # - Fonts + file(RELATIVE_PATH +- G4ENV_BINDIR_TO_DATAROOTDIR ++ G4ENV_BINDIR_TO_DATADIR + "${CMAKE_INSTALL_FULL_BINDIR}" +- "${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}" ++ "${CMAKE_INSTALL_FULL_DATADIR}" + ) +-set(TOOLS_FONT_PATH "\"`cd \$geant4_envbindir/${G4ENV_BINDIR_TO_DATAROOTDIR}/fonts > /dev/null ; pwd`\"") ++set(TOOLS_FONT_PATH "\"`cd \$geant4_envbindir/${G4ENV_BINDIR_TO_DATADIR}/fonts > /dev/null ; pwd`\"") + + + # - Configure for each shell +diff --git a/cmake/Modules/Geant4InstallData.cmake b/cmake/Modules/Geant4InstallData.cmake +index 496b0fc4df..55536e51d4 100644 +--- a/cmake/Modules/Geant4InstallData.cmake ++++ b/cmake/Modules/Geant4InstallData.cmake +@@ -105,7 +105,7 @@ set(GEANT4_DATASETS_URL "https://cern.ch/geant4-data/datasets") + set(GEANT4_BUILD_FULL_DATADIR ${PROJECT_BINARY_DIR}/data) + + # Where to install data in the install tree (a Default) +-set(GEANT4_INSTALL_DATADIR_DEFAULT "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}-${${PROJECT_NAME}_VERSION}/data") ++set(GEANT4_INSTALL_DATADIR_DEFAULT "${CMAKE_INSTALL_DATADIR}/data") + + # File containing dataset list + set(GEANT4_DATASETS_DEFINITIONS "Geant4DatasetDefinitions") +@@ -596,7 +596,7 @@ endfunction() + # Choose Physics Data Install Dir + # This follows the pattern for interface and setting as in GNUInstallDirs + if(NOT GEANT4_INSTALL_DATADIR) +- set(GEANT4_INSTALL_DATADIR "" CACHE PATH "read-only architecture independent Geant4 physics data (DATAROOTDIR/${GEANT4_INSTALL_DATADIR_DEFAULT}") ++ set(GEANT4_INSTALL_DATADIR "" CACHE PATH "read-only architecture independent Geant4 physics data (DATADIR/data") + set(GEANT4_INSTALL_DATADIR "${GEANT4_INSTALL_DATADIR_DEFAULT}") + endif() + +diff --git a/source/analysis/CMakeLists.txt b/source/analysis/CMakeLists.txt +index 44fa4a97be..4c40c704be 100644 +--- a/source/analysis/CMakeLists.txt ++++ b/source/analysis/CMakeLists.txt +@@ -67,7 +67,7 @@ endif() + # + if (GEANT4_USE_FREETYPE) + install(DIRECTORY fonts/ +- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/fonts ++ DESTINATION ${CMAKE_INSTALL_DATADIR}/fonts + PATTERN ".svn" EXCLUDE + ) + endif() +diff --git a/source/analysis/g4tools/CMakeLists.txt b/source/analysis/g4tools/CMakeLists.txt +index 54c72f1297..df87582bc1 100644 +--- a/source/analysis/g4tools/CMakeLists.txt ++++ b/source/analysis/g4tools/CMakeLists.txt +@@ -43,7 +43,7 @@ install(DIRECTORY include/ + # We also need to install the tools license + # + install(FILES tools.license +- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION} ++ DESTINATION ${CMAKE_INSTALL_DATADIR} + ) + + #------------------------------------------------------------------------------ +-- +2.25.1 + |