diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2022-12-28 01:23:09 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2022-12-28 01:23:09 +0300 |
commit | 088d793bd7acfaefde2894b5654763daeb31b34c (patch) | |
tree | fb68cf192f1245b2a670742cab54ef2fc172e32e /sci-chemistry/relion | |
parent | sci-physics/qgraf: new package, add 3.6.5 (diff) | |
download | sci-088d793bd7acfaefde2894b5654763daeb31b34c.tar.gz sci-088d793bd7acfaefde2894b5654763daeb31b34c.tar.bz2 sci-088d793bd7acfaefde2894b5654763daeb31b34c.zip |
sci-chemistry/relion: add 4.0.0, drop 3.1.1
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'sci-chemistry/relion')
-rw-r--r-- | sci-chemistry/relion/Manifest | 3 | ||||
-rw-r--r-- | sci-chemistry/relion/files/relion-4.0.0-build.patch | 39 | ||||
-rw-r--r-- | sci-chemistry/relion/relion-4.0.0.ebuild (renamed from sci-chemistry/relion/relion-3.1.1.ebuild) | 9 |
3 files changed, 47 insertions, 4 deletions
diff --git a/sci-chemistry/relion/Manifest b/sci-chemistry/relion/Manifest index 6aa383614..75b932e28 100644 --- a/sci-chemistry/relion/Manifest +++ b/sci-chemistry/relion/Manifest @@ -1 +1,2 @@ -DIST relion-3.1.1.tar.gz 2340685 BLAKE2B 0e98db3af7ceb312111260d8af51225d9a6b82314f1f066fe52464b533e59f44f5487ba66110708d661506074be4d52eeb7e04d88344a939bbd33139a33f6dec SHA512 fddf6f8a3d63e4f73aa1f529e4fa8fa7da98d9226b6539530c83496b94793ceef27d013a2d902a794993ab994f8d6467569ea4b681b4dd948654acf482529b22 +DIST class_ranker_0.1.3_torch_1.0.1.pt.tar.gz 2190018 BLAKE2B 157d380693cb97f2f94aea5ee8b1c9b64c50cead45c65d8d95584b12a4901622df025e4bdfccfc9c87286a3d442ffc26ed2a89953b9361f59d7ae2852fcc3a6b SHA512 0e9d4046a9ba211c07abcc44d0b51c7d69805eb946ed96abdd1663760906188050d476268214b4e7a84f529f51226c39f40c3b418373437fae2f4bb24990f338 +DIST relion-4.0.0.tar.gz 3342593 BLAKE2B d2293531cdf3c5779a8f6beb5bc753931388f1c577faa89a927c6ccd72436db0d9a84fbe08b836601b466bc23e9df6500f9e87da1630adecd2b0cf0e245d63e6 SHA512 1e873868bc54a13a7cca74c4a623f5f2aeeec7bd2df04f74d0421127a9c9a3b40a56ebc5b04a9f4138cca1208417b05a30c38ae78106d53b92deeadbeeaf4209 diff --git a/sci-chemistry/relion/files/relion-4.0.0-build.patch b/sci-chemistry/relion/files/relion-4.0.0-build.patch new file mode 100644 index 000000000..d7cb7bf2e --- /dev/null +++ b/sci-chemistry/relion/files/relion-4.0.0-build.patch @@ -0,0 +1,39 @@ +From 138b9c71b41a3c8782c991053a28bfe074bffdd9 Mon Sep 17 00:00:00 2001 +From: Takanori Nakane <nakane.t@gmail.com> +Date: Fri, 28 Oct 2022 19:51:29 +0900 +Subject: [PATCH] Repaired the build failure reported in #826 (by + @prehensilecode and @acaprez) + +--- + src/apps/CMakeLists.txt | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt +index 9870b735..30985aa7 100644 +--- a/src/apps/CMakeLists.txt ++++ b/src/apps/CMakeLists.txt +@@ -273,16 +273,16 @@ if (CUDA_FOUND) + + + +- file(GLOB REL_JAZ_CUDA_SRC "${CMAKE_SOURCE_DIR}/src/jaz/cuda/*.cu" "${CMAKE_SOURCE_DIR}/src/jaz/cuda/kernels/*.cu" ) ++ file(GLOB REL_JAZ_CUDA_SRC "${CMAKE_SOURCE_DIR}/src/jaz/cuda/*.cu") + cuda_add_library(relion_jaz_gpu_util ${REL_JAZ_CUDA_SRC}) + +- #list(APPEND EXTRA_LIBS "${CUDA_CUFFT_LIBRARIES}") +- #if(BUILD_SHARED_LIBS) +- # install (TARGETS relion_jaz_gpu_util LIBRARY DESTINATION lib) +- #else() +- # target_link_libraries(relion_jaz_gpu_util relion_lib) +- # target_link_libraries(relion_jaz_gpu_util ${CUDA_CUFFT_LIBRARIES}) +- #endif() ++ list(APPEND EXTRA_LIBS "${CUDA_CUFFT_LIBRARIES}") ++ if(BUILD_SHARED_LIBS) ++ install (TARGETS relion_jaz_gpu_util LIBRARY DESTINATION lib) ++ else() ++ target_link_libraries(relion_jaz_gpu_util relion_lib) ++ target_link_libraries(relion_jaz_gpu_util ${CUDA_CUFFT_LIBRARIES}) ++ endif() + + target_link_libraries(relion_lib relion_jaz_gpu_util ${CUDA_CUFFT_LIBRARIES}) + target_link_libraries(relion_lib relion_jaz_gpu_util ${CUDA_CUFFT_LIBRARIES} ${CUDA_curand_LIBRARY}) diff --git a/sci-chemistry/relion/relion-3.1.1.ebuild b/sci-chemistry/relion/relion-4.0.0.ebuild index 39e4ab229..a40375f64 100644 --- a/sci-chemistry/relion/relion-3.1.1.ebuild +++ b/sci-chemistry/relion/relion-4.0.0.ebuild @@ -1,7 +1,7 @@ # Copyright 2019-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit cmake @@ -12,10 +12,11 @@ SRC_URI="https://github.com/3dem/relion/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" -IUSE="+gui" +IUSE="+gui cuda" DEPEND=" gui? ( x11-libs/fltk ) + cuda? ( dev-util/nvidia-cuda-toolkit ) dev-cpp/tbb sci-libs/fftw:3.0 media-libs/tiff @@ -27,6 +28,8 @@ RDEPEND=" " BDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/${PN}-4.0.0-build.patch" ) + src_configure() { CMAKE_BUILD_TYPE=Release mycmakeargs=( @@ -35,7 +38,7 @@ src_configure() { -DFORCE_OWN_FFTW=OFF -DFORCE_OWN_FLTK=OFF -DFORCE_OWN_TBB=OFF - -DCUDA=OFF + -DCUDA=$(usex cuda) -DGUI=$(usex gui) ) cmake_src_configure |