diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest index 0d7ad7558a578..bd9aa99e4d87b 100644 --- a/sci-astronomy/wcslib/Manifest +++ b/sci-astronomy/wcslib/Manifest @@ -1,6 +1,2 @@ -DIST wcslib-7.11.tar.bz2 2946962 BLAKE2B 7c812f50e3c539da3d58a70acd9128bd957fccd463b0c404c4a55740fb6d7df88f9992d1a2c5c303091dfce91943a6e5bcca73b553354f67c2d522ebb77d6dc3 SHA512 28aa67edad31a8fe27bc8b04e060a17ee75d8fa5e9ec82ccbdb72136558e03d1196151214c9ce4026df88cb807ce2645f5df80bbc479ec91cfa749bf8b9477ec DIST wcslib-7.12.tar.bz2 2989693 BLAKE2B 8070cdddb9e89478464443411d165706d44593e33290149da11d2c2857bad202f5dd6ad98b5840167f618eceb9ec47e35f3ee332a8c6e1719fc2b20fe2f31ef2 SHA512 7f38f725992d3c4bd3c1b908d494ac361c17f6b60f091d987fda596211423bb7396b3a5e2f1f6dd6215835016d302083472a7ad0822f17cdfe230c8f556b3e23 -DIST wcslib-7.3.1.tar.bz2 2434274 BLAKE2B 9789a8eb34fe37c96b52e20efe3c14368499058e5c46aad4853b2be5f32a31df26525ec2c38d0ce87bcb7891b91a3ec3ac537e3c662c716a7c4381f26cd715e4 SHA512 753e0e202fb4250d321c36a0df9cd45ed88697111a06e108bc3e5397ddecc60d460cda2b4d45b5311dd72b88b66d4c70ff150b03e2da46c834b024f15304779b -DIST wcslib-7.3.tar.bz2 2435669 BLAKE2B c0f641b4c2fdd9d332816195f399eb2ab3c5aa585f08c4857af77bd5ed4074e653663f7cbddc6d7678cd85bed2c0bd95719cd83a5138d21ad24841396d4c11b9 SHA512 8c98c4b575056e2d966b77a4bc951256d02ecee3a11847e140fd38d93afd0f76b3e906d590c952dc9fc58ceeb1ba062b19d8e1e676ee0032f5b7ed13a9dfa892 -DIST wcslib-8.2.2.tar.bz2 3187577 BLAKE2B cd75652eac5777bce4a66ea1de03796b12c77f7269c6050eda95518d28a17be2ad8ae46b57e0a21f8d03dcf3a0144316d06d16aac7a37a42150e713113cc7edc SHA512 cf540fdac03d2868902c9d4c2f1cd5919e878e79de635b01006b61f4d95f727659033d0d05172a7bcd00287ecc395609a643cf95a6498fbc3ff2d3fb26c136b4 DIST wcslib-8.3.tar.bz2 3245293 BLAKE2B 0f420d1c6e3b4a7e97b3227971f745d70f5c51e907f0315b7f57e79a34ef32446bbd7fa29ffd25c800e888b8aab6227b774375ed8d89d21f7315916fdd06d788 SHA512 248518489431cbcba7a5df9e34a747e2a007128639d8ab655ceee35250e609d952fe466b67cdca5defe16d3e926730d00bfc5c362c369f74851cd88973b506ba diff --git a/sci-astronomy/wcslib/wcslib-7.11.ebuild b/sci-astronomy/wcslib/wcslib-7.11.ebuild deleted file mode 100644 index 2f5f4a45861cd..0000000000000 --- a/sci-astronomy/wcslib/wcslib-7.11.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -inherit flag-o-matic fortran-2 - -DESCRIPTION="Astronomical World Coordinate System transformations library" -HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/" -SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" - -SLOT="0/7" -LICENSE="LGPL-3" -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fortran fits pgplot static-libs +tools" - -RDEPEND=" - fits? ( sci-libs/cfitsio:0= ) - pgplot? ( sci-libs/pgplot:0= )" -DEPEND="${RDEPEND}" -BDEPEND=" - app-alternatives/lex - virtual/pkgconfig" - -src_configure() { - # workaround until upstream fix it properly - append-fflags $(test-flags-FC -fallow-argument-mismatch) - - local myconf=( - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --htmldir="${EPREFIX}"/usr/share/doc/${PF} - $(use_enable fortran) - $(use_enable tools utils) - ) - # hacks because cfitsio and pgplot directories are hard-coded - if use fits; then - myconf+=( - --with-cfitsioinc="${EPREFIX}/usr/include" - --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-cfitsio ) - fi - if use pgplot; then - myconf+=( - --with-pgplotinc="${EPREFIX}/usr/include" - --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-pgplot ) - fi - econf "${myconf[@]}" - sed -i -e 's/COPYING\*//' GNUmakefile || die -} - -src_install () { - default - # static libs share the same symbols as shared (i.e. compiled with PIC) - # so they are not compiled twice - use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a - use doc || rm -r \ - "${ED}"/usr/share/doc/${PF}/html \ - "${ED}"/usr/share/doc/${PF}/*.pdf -} diff --git a/sci-astronomy/wcslib/wcslib-7.3.1.ebuild b/sci-astronomy/wcslib/wcslib-7.3.1.ebuild deleted file mode 100644 index 90795ca990bff..0000000000000 --- a/sci-astronomy/wcslib/wcslib-7.3.1.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -FORTRAN_NEEDED=fortran - -inherit fortran-2 flag-o-matic - -DESCRIPTION="Astronomical World Coordinate System transformations library" -HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/" -SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" - -SLOT="0/7" -LICENSE="LGPL-3" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fortran fits pgplot static-libs +tools" - -RDEPEND=" - fits? ( sci-libs/cfitsio:0= ) - pgplot? ( sci-libs/pgplot:0= )" -DEPEND="${RDEPEND} - app-alternatives/lex - virtual/pkgconfig" - -src_configure() { - # GCC 10 workaround - # bug #764548 - append-fflags $(test-flags-FC -fallow-argument-mismatch) - - local myconf=( - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --htmldir="${EPREFIX}"/usr/share/doc/${PF} - $(use_enable fortran) - $(use_enable tools utils) - ) - - # hacks because cfitsio and pgplot directories are hard-coded - if use fits; then - myconf+=( - --with-cfitsioinc="${EPREFIX}/usr/include" - --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-cfitsio ) - fi - if use pgplot; then - myconf+=( - --with-pgplotinc="${EPREFIX}/usr/include" - --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-pgplot ) - fi - econf ${myconf[@]} - sed -i -e 's/COPYING\*//' GNUmakefile || die -} - -src_test() { - emake check -} - -src_install () { - default - # static libs share the same symbols as shared (i.e. compiled with PIC) - # so they are not compiled twice - use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a - use doc || rm -r \ - "${ED}"/usr/share/doc/${PF}/html \ - "${ED}"/usr/share/doc/${PF}/*.pdf -} diff --git a/sci-astronomy/wcslib/wcslib-7.3.ebuild b/sci-astronomy/wcslib/wcslib-7.3.ebuild deleted file mode 100644 index cffd03763ea22..0000000000000 --- a/sci-astronomy/wcslib/wcslib-7.3.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -FORTRAN_NEEDED=fortran - -inherit fortran-2 flag-o-matic - -DESCRIPTION="Astronomical World Coordinate System transformations library" -HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/" -SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" - -SLOT="0/7" -LICENSE="LGPL-3" -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fortran fits pgplot static-libs +tools" - -RDEPEND=" - fits? ( sci-libs/cfitsio:0= ) - pgplot? ( sci-libs/pgplot:0= )" -DEPEND="${RDEPEND} - app-alternatives/lex - virtual/pkgconfig" - -src_configure() { - # GCC 10 workaround - # bug #764548 - append-fflags $(test-flags-FC -fallow-argument-mismatch) - - local myconf=( - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --htmldir="${EPREFIX}"/usr/share/doc/${PF} - $(use_enable fortran) - $(use_enable tools utils) - ) - - # hacks because cfitsio and pgplot directories are hard-coded - if use fits; then - myconf+=( - --with-cfitsioinc="${EPREFIX}/usr/include" - --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-cfitsio ) - fi - if use pgplot; then - myconf+=( - --with-pgplotinc="${EPREFIX}/usr/include" - --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-pgplot ) - fi - econf ${myconf[@]} - sed -i -e 's/COPYING\*//' GNUmakefile || die -} - -src_test() { - emake check -} - -src_install () { - default - # static libs share the same symbols as shared (i.e. compiled with PIC) - # so they are not compiled twice - use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a - use doc || rm -r \ - "${ED}"/usr/share/doc/${PF}/html \ - "${ED}"/usr/share/doc/${PF}/*.pdf -} diff --git a/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild b/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild deleted file mode 100644 index c0b48800b96fe..0000000000000 --- a/sci-astronomy/wcslib/wcslib-8.2.2-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -FORTRAN_NEEDED=fortran - -inherit flag-o-matic fortran-2 - -DESCRIPTION="Astronomical World Coordinate System transformations library" -HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/" -SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" - -SLOT="0/$(ver_cut 1)" -LICENSE="LGPL-3" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc fortran fits pgplot static-libs +tools" - -RDEPEND=" - fits? ( sci-libs/cfitsio:0= ) - pgplot? ( sci-libs/pgplot:0= )" -DEPEND="${RDEPEND}" -BDEPEND=" - app-alternatives/lex - virtual/pkgconfig" - -src_configure() { - # -Werror=lto-type-mismatch - # https://bugs.gentoo.org/877885 - # - # Upstream has an email contact address, so sent an email describing the issue. - filter-lto - - # workaround until upstream fix it properly - append-fflags $(test-flags-FC -fallow-argument-mismatch) - - local myconf=( - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --htmldir="${EPREFIX}"/usr/share/doc/${PF} - $(use_enable fortran) - $(use_enable tools utils) - ) - # hacks because cfitsio and pgplot directories are hard-coded - if use fits; then - myconf+=( - --with-cfitsioinc="${EPREFIX}/usr/include" - --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-cfitsio ) - fi - if use pgplot; then - myconf+=( - --with-pgplotinc="${EPREFIX}/usr/include" - --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)" - ) - else - myconf+=( --without-pgplot ) - fi - econf "${myconf[@]}" - sed -i -e 's/COPYING\*//' GNUmakefile || die -} - -src_install () { - default - # static libs share the same symbols as shared (i.e. compiled with PIC) - # so they are not compiled twice - if ! use static-libs; then - rm "${ED}"/usr/$(get_libdir)/lib*.a || die - fi - - if ! use doc; then - rm -r \ - "${ED}"/usr/share/doc/${PF}/html \ - "${ED}"/usr/share/doc/${PF}/*.pdf || die - fi - # always creates this symlink - rm "${ED}"/usr/share/doc/${PN} || die -} diff --git a/sci-astronomy/wcslib/wcslib-8.3.ebuild b/sci-astronomy/wcslib/wcslib-8.3-r1.ebuild similarity index 94% rename from sci-astronomy/wcslib/wcslib-8.3.ebuild rename to sci-astronomy/wcslib/wcslib-8.3-r1.ebuild index 942d8b59a872a..50364c94127e7 100644 --- a/sci-astronomy/wcslib/wcslib-8.3.ebuild +++ b/sci-astronomy/wcslib/wcslib-8.3-r1.ebuild @@ -17,8 +17,13 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc fortran fits pgplot static-libs +tools" RDEPEND=" - fits? ( sci-libs/cfitsio:0= ) - pgplot? ( sci-libs/pgplot:0= )" + fits? ( + !sci-astronomy/montage + sci-libs/cfitsio:0= + ) + pgplot? ( sci-libs/pgplot:0= ) +" + DEPEND="${RDEPEND}" BDEPEND=" app-alternatives/lex diff --git a/sci-physics/fastjet-contrib/Manifest b/sci-physics/fastjet-contrib/Manifest index c107593243e97..7a13a24c975d4 100644 --- a/sci-physics/fastjet-contrib/Manifest +++ b/sci-physics/fastjet-contrib/Manifest @@ -1,2 +1,3 @@ DIST fastjet-contrib-1.053.tar.gz 912109 BLAKE2B b195c415163d9ebf8e48d2516ea44014f0f4b112307a86d536e82d62121b0e22d8c862468fddcc8570eea6137c1d757586941af80112459a528e261764a0fb96 SHA512 b8888d30abaead7ec084d551d05dbd53f5a03e226fd58ec1e4c236cb022868c5134a4199dde262f18334628f4b58d532bd0e7955e81d8d964a985646d376878b +DIST fastjet-contrib-1.055.tar.gz 945588 BLAKE2B 5dc40313fa3b1decb1bd6e2ac8ce486b1905e7be3d575e54e43b82982f50202c5eea060390851b92c3f4b08472b8c3f0e304e5bd345e07f4742749ed892d3960 SHA512 2140c4198b704336449bbaed5625428d5e97ae1b744ff83837932189a72f20ba0226843517130cfb0d74fb395abd19c3377f232a86e0e734aded27d52c4ac71d DIST fjcontrib-1.049.tar.gz 850931 BLAKE2B ed80c231220794cda36fb0cbbad225eb8d741f2de5558878f17d1774e16e3046d2af4b0cb895d5fc897f382c36f50def0b3ecb0fba06010347752e0a59ee402f SHA512 21dc066cc8f2667f41377924bad6c3df625fa73d16b6bc3dd49ff76e6e15abbfeac0317850699e7047a7c2445c4a94a67d0f37119922163eae8bf77a56edd9e6 diff --git a/sci-physics/fastjet-contrib/fastjet-contrib-1.055.ebuild b/sci-physics/fastjet-contrib/fastjet-contrib-1.055.ebuild new file mode 100644 index 0000000000000..f48a5b1a4594d --- /dev/null +++ b/sci-physics/fastjet-contrib/fastjet-contrib-1.055.ebuild @@ -0,0 +1,53 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_PN=fjcontrib +MY_P=${MY_PN}-${PV} + +DESCRIPTION="3rd party extensions of FastJet." +HOMEPAGE="https://fastjet.hepforge.org/contrib/" +SRC_URI="https://fastjet.hepforge.org/contrib/downloads/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=">=sci-physics/fastjet-3.4.0" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.049-soname.patch + "${FILESDIR}"/${PN}-1.049-ar.patch +) + +src_configure() { + tc-export CXX AR RANLIB + ./configure \ + --prefix="${ESYSROOT}/usr" \ + --fastjet-config="${ESYSROOT}/usr/bin/fastjet-config" \ + RANLIB="${RANLIB}" \ + AR="${AR}" \ + CXX="${CXX}" \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + FFLAGS="${FFLAGS}" \ + LDFLAGS="${LDFLAGS}" || die +} + +src_compile() { + emake + emake fragile-shared +} + +src_install() { + emake install PREFIX="${ED}/usr" + dolib.so libfastjetcontribfragile.so + # The name used for requesting this library varies + dosym libfastjetcontribfragile.so /usr/$(get_libdir)/libfastjetcontribfragile.so.0 + dosym libfastjetcontribfragile.so /usr/$(get_libdir)/fastjetcontribfragile.so.0 +} diff --git a/sci-physics/fastjet/Manifest b/sci-physics/fastjet/Manifest index 4616587b1dd25..dd9023e15b4d5 100644 --- a/sci-physics/fastjet/Manifest +++ b/sci-physics/fastjet/Manifest @@ -1,2 +1,3 @@ DIST fastjet-3.4.0.tar.gz 2959127 BLAKE2B c99e89ee5cea3fd4e3edebdfebb50efd3c58e7ab15215a384c44120ac930882bd2d4e446b61977fe65dcc49056b958c6510abb7c5889024ae49776b1955bd023 SHA512 af8aeb6197f6bd82ec5f127647f49cd5d455c20e614c23d928b850fc97bc12c70cf6e3b09f1bb0308c2a080fcd4fa13416eea0195695060efaa0e400a687d7b7 DIST fastjet-3.4.2.tar.gz 2973605 BLAKE2B f51b26fdb2611084679a79905c6da460edcf3ad3139bdb2384fe95600e474f4bdb028b24c43456e018c5fb9535491c929d1ec2032d184536efd6b2ef16d54ae1 SHA512 e7702699e67ba5af73f1fe931fe5f67b9f52bb2f0cfdc57dbacf408741e6271ed160503fe6142c92621287df49b441ce7562af589353b199fed09a4c4c839f3f +DIST fastjet-3.4.3.tar.gz 2984798 BLAKE2B ba203a21c5658555606e4ed83fce4cb3dc0a077b0407c336255a7be2ea861a196d57c2f7db03dbd4dad946b8c68827d0d967b3c009d62232d39827342c7ae492 SHA512 9df7fb6ea1082473929d5963eb58c3d420557a2f52e793432f5bd838e8f7212d0a3c3606b98c3dfeeb3a76ffac73926cb7822aaf499d64a65b2cb2bb845fdb77 diff --git a/sci-physics/fastjet/fastjet-3.4.3.ebuild b/sci-physics/fastjet/fastjet-3.4.3.ebuild new file mode 100644 index 0000000000000..f8b55a9cec69f --- /dev/null +++ b/sci-physics/fastjet/fastjet-3.4.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/fastjet-9999.ebuild b/sci-physics/fastjet/fastjet-9999.ebuild new file mode 100644 index 0000000000000..f8b55a9cec69f --- /dev/null +++ b/sci-physics/fastjet/fastjet-9999.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/metadata.xml b/sci-physics/fastjet/metadata.xml index 8a82eeb2f12f6..8e41b6b197d7d 100644 --- a/sci-physics/fastjet/metadata.xml +++ b/sci-physics/fastjet/metadata.xml @@ -18,4 +18,7 @@ Use sci-mathematics/cgal instead of bundled algorithms + + fastjet/fastjet + diff --git a/sci-physics/lammps/Manifest b/sci-physics/lammps/Manifest index 4ef4697527595..95d4d38f2a02b 100644 --- a/sci-physics/lammps/Manifest +++ b/sci-physics/lammps/Manifest @@ -1,4 +1,3 @@ -DIST lammps-17Feb2022.tar.gz 170036241 BLAKE2B 74d370657bff17847dce0bbe082134721722574b298832ea37d319968123b12d37ecdfea5560b2776e846c32d05a98f722710327d8da46f80869f75a36f6c255 SHA512 f2df65847906ca5890aae98efed5712eb6dd694f2b85dc062084a02b9bf43412ecd075f54df2947bff71d3b6313c1ec39c437e02497920da795e9ba0cd5dc068 -DIST lammps-23Jun2022.tar.gz 181439760 BLAKE2B b8012417257527820a4f37dbd300d3f949e3768fc7ae669c49bc7ea0cdc30b28512cb3ee25d375394184bbf1371763da6c3556b2d600f060b754816c589197bf SHA512 e882cb8a83a90b17471cd5c79b2b724378a28642b82511c695a36c0d9a0feb63681b29171c5bfb0bcb218ea3a1a5e4f00fdb8e6ce5f0fc8aed1fa83680cd3a34 -DIST lammps-28Mar2023.tar.gz 187946133 BLAKE2B 87f8ffaefd9a5b4cb7a286157d6c7808d899bf738b42a1e82af257fdafa2cf6ed2ce216d0534fb762882130efea9a5f2566ca5282fb7ef95f028d2839be59eaa SHA512 2999d8311ff83612a0da82e2453e8b25dcb2af56005382725b6fd5ed9e7f61e9ae506d04cc3c587ce75f1e2346e7f2ec05eada6351dad7abee1bc25161851682 DIST lammps-2Aug2023.tar.gz 193279161 BLAKE2B 15816514984a307055e6f42ca741b14a9cabe8839ce266086e9a286bf89a868b2d795846a0a191549013f8f2c403a590ec1231633bf4e161f82d3d83d9fa700e SHA512 5e915f61d29f73de9edca05f371a6ca4449564ab48dfb64c212a417a2200b1738e7f44145db44d794bb480116e8f57c658612d54a3c9f759eb9947d3de5d4c35 +DIST lammps-gtest-1.12.1.tar.gz 854944 BLAKE2B 7b121fb95bb19efec1387a83da2201a139197225f79f7649ceac04695ff06fc4148319ae928d79ced413a9cfd42e68b56bfda1ee6bfdbf07fdd22795e9974388 SHA512 a9104dc6c53747e36e7dd7bb93dfce51a558bd31b487a9ef08def095518e1296da140e0db263e0644d9055dbd903c0cb69380cb2322941dbfb04780ef247df9c +DIST stable_29Aug2024.tar.gz 141582660 BLAKE2B a90233840ff2cb98dd28851137f84820bfa3618488e46f9f304aaa9c2425f40750771b15677ed07b3606eb78b50c8beb26c3933ff71c48c0c2911ca3743647d6 SHA512 c6755da36d78d1f8e13db4c1f473db2c15d062ed79b15e110031b6501388a67f47d62d71fe367a111f7dd6cb58c7d6e358eed7e69589e06f735039ee794f4618 diff --git a/sci-physics/lammps/lammps-20220217.ebuild b/sci-physics/lammps/lammps-20220217.ebuild deleted file mode 100644 index dafbca2ebb943..0000000000000 --- a/sci-physics/lammps/lammps-20220217.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_OPTIONAL=1 -CMAKE_MAKEFILE_GENERATOR=emake -# Doc building insists on fetching mathjax -# DOCS_BUILDER="doxygen" -# DOCS_DEPEND=" -# media-gfx/graphviz -# dev-libs/mathjax -# " - -inherit cmake fortran-2 distutils-r1 # docs - -convert_month() { - local months=( "" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ) - echo ${months[${1#0}]} -} - -MY_PV="$((10#${PV:6:2}))$(convert_month ${PV:4:2})${PV:0:4}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator" -HOMEPAGE="https://lammps.sandia.gov/" -SRC_URI="https://download.lammps.org/tars/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}/cmake" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="cuda examples gzip hip lammps-memalign mpi opencl python test" -# Requires write access to /dev/dri/renderD... -RESTRICT="test" - -RDEPEND=" - app-arch/gzip - media-libs/libpng:0 - sys-libs/zlib - mpi? ( - virtual/mpi - sci-libs/hdf5:=[mpi] - ) - python? ( ${PYTHON_DEPS} ) - sci-libs/voro++ - virtual/blas - virtual/lapack - sci-libs/fftw:3.0= - sci-libs/netcdf:= - cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1:= ) - opencl? ( virtual/opencl ) - hip? ( dev-util/hip:= ) - dev-cpp/eigen:3 - " - # Kokkos-3.5 not in tree atm - # kokkos? ( dev-cpp/kokkos-3.5.* ) -DEPEND="${RDEPEND} - test? ( - dev-cpp/gtest - ) -" - -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) - ?? ( cuda opencl hip ) -" - -src_prepare() { - cmake_src_prepare - if use python; then - pushd ../python || die - distutils-r1_src_prepare - popd - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" - -DBUILD_SHARED_LIBS=ON - -DBUILD_MPI=$(usex mpi) - -DBUILD_DOC=OFF - #-DBUILD_DOC=$(usex doc) - -DENABLE_TESTING=$(usex test) - -DPKG_ASPHERE=ON - -DPKG_BODY=ON - -DPKG_CLASS2=ON - -DPKG_COLLOID=ON - -DPKG_COMPRESS=ON - -DPKG_CORESHELL=ON - -DPKG_DIPOLE=ON - -DPKG_GRANULAR=ON - -DPKG_KSPACE=ON - -DFFT=FFTW3 - -DPKG_KOKKOS=OFF - #-DPKG_KOKKOS=$(usex kokkos) - #$(use kokkos && echo -DEXTERNAL_KOKKOS=ON) - -DPKG_MANYBODY=ON - -DPKG_MC=ON - -DPKG_MEAM=ON - -DPKG_MISC=ON - -DPKG_MOLECULE=ON - -DPKG_PERI=ON - -DPKG_QEQ=ON - -DPKG_REPLICA=ON - -DPKG_RIGID=ON - -DPKG_SHOCK=ON - -DPKG_SRD=ON - -DPKG_PYTHON=$(usex python) - -DPKG_MPIIO=$(usex mpi) - -DPKG_VORONOI=ON - ) - if use cuda || use opencl || use hip; then - mycmakeargs+=( -DPKG_GPU=ON ) - use cuda && mycmakeargs+=( -DGPU_API=cuda ) - use opencl && mycmakeargs+=( -DGPU_API=opencl -DUSE_STATIC_OPENCL_LOADER=OFF ) - use hip && mycmakeargs+=( -DGPU_API=hip ) - else - mycmakeargs+=( -DPKG_GPU=OFF ) - fi - cmake_src_configure - if use python; then - pushd ../python || die - distutils-r1_src_configure - popd - fi -} - -src_compile() { - cmake_src_compile - if use python; then - pushd ../python || die - distutils-r1_src_compile - popd - fi -} - -src_test() { - cmake_src_test - if use python; then - pushd ../python || die - distutils-r1_src_test - popd - fi -} - -src_install() { - cmake_src_install - if use python; then - pushd ../python || die - distutils-r1_src_install - popd - fi - - if use examples; then - for d in examples bench; do - local LAMMPS_EXAMPLES="/usr/share/${PN}/${d}" - insinto "${LAMMPS_EXAMPLES}" - doins -r "${S}"/../${d}/* - done - fi -} diff --git a/sci-physics/lammps/lammps-20220623.ebuild b/sci-physics/lammps/lammps-20220623.ebuild deleted file mode 100644 index 15f4355d109d2..0000000000000 --- a/sci-physics/lammps/lammps-20220623.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_OPTIONAL=1 -DISTUTILS_USE_PEP517=setuptools -CMAKE_MAKEFILE_GENERATOR=emake -# Doc building insists on fetching mathjax -# DOCS_BUILDER="doxygen" -# DOCS_DEPEND=" -# media-gfx/graphviz -# dev-libs/mathjax -# " - -inherit cmake fortran-2 distutils-r1 # docs - -convert_month() { - local months=( "" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ) - echo ${months[${1#0}]} -} - -MY_PV="$((10#${PV:6:2}))$(convert_month ${PV:4:2})${PV:0:4}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator" -HOMEPAGE="https://lammps.sandia.gov/" -SRC_URI="https://download.lammps.org/tars/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}/cmake" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="cuda examples gzip hip lammps-memalign mpi opencl python test" -# Requires write access to /dev/dri/renderD... -RESTRICT="test" - -RDEPEND=" - app-arch/gzip - media-libs/libpng:0 - sys-libs/zlib - mpi? ( - virtual/mpi - sci-libs/hdf5:=[mpi] - ) - python? ( ${PYTHON_DEPS} ) - sci-libs/voro++ - virtual/blas - virtual/lapack - sci-libs/fftw:3.0= - sci-libs/netcdf:= - cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1:= ) - opencl? ( virtual/opencl ) - hip? ( dev-util/hip:= ) - dev-cpp/eigen:3 - " - # Kokkos-3.5 not in tree atm - # kokkos? ( dev-cpp/kokkos-3.5.* ) -BDEPEND="${DISTUTILS_DEPS}" -DEPEND="${RDEPEND} - test? ( - dev-cpp/gtest - ) -" - -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) - ?? ( cuda opencl hip ) -" - -src_prepare() { - cmake_src_prepare - if use python; then - pushd ../python || die - distutils-r1_src_prepare - popd - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" - -DBUILD_SHARED_LIBS=ON - -DBUILD_MPI=$(usex mpi) - -DBUILD_DOC=OFF - #-DBUILD_DOC=$(usex doc) - -DENABLE_TESTING=$(usex test) - -DPKG_ASPHERE=ON - -DPKG_BODY=ON - -DPKG_CLASS2=ON - -DPKG_COLLOID=ON - -DPKG_COMPRESS=ON - -DPKG_CORESHELL=ON - -DPKG_DIPOLE=ON - -DPKG_GRANULAR=ON - -DPKG_KSPACE=ON - -DFFT=FFTW3 - -DPKG_KOKKOS=OFF - #-DPKG_KOKKOS=$(usex kokkos) - #$(use kokkos && echo -DEXTERNAL_KOKKOS=ON) - -DPKG_MANYBODY=ON - -DPKG_MC=ON - -DPKG_MEAM=ON - -DPKG_MISC=ON - -DPKG_MOLECULE=ON - -DPKG_PERI=ON - -DPKG_QEQ=ON - -DPKG_REPLICA=ON - -DPKG_RIGID=ON - -DPKG_SHOCK=ON - -DPKG_SRD=ON - -DPKG_PYTHON=$(usex python) - -DPKG_MPIIO=$(usex mpi) - -DPKG_VORONOI=ON - ) - if use cuda || use opencl || use hip; then - mycmakeargs+=( -DPKG_GPU=ON ) - use cuda && mycmakeargs+=( -DGPU_API=cuda ) - use opencl && mycmakeargs+=( -DGPU_API=opencl -DUSE_STATIC_OPENCL_LOADER=OFF ) - use hip && mycmakeargs+=( -DGPU_API=hip ) - else - mycmakeargs+=( -DPKG_GPU=OFF ) - fi - cmake_src_configure - if use python; then - pushd ../python || die - distutils-r1_src_configure - popd - fi -} - -src_compile() { - cmake_src_compile - if use python; then - pushd ../python || die - distutils-r1_src_compile - popd - fi -} - -src_test() { - cmake_src_test - if use python; then - pushd ../python || die - distutils-r1_src_test - popd - fi -} - -src_install() { - cmake_src_install - if use python; then - pushd ../python || die - distutils-r1_src_install - popd - fi - - if use examples; then - for d in examples bench; do - local LAMMPS_EXAMPLES="/usr/share/${PN}/${d}" - insinto "${LAMMPS_EXAMPLES}" - doins -r "${S}"/../${d}/* - done - fi -} diff --git a/sci-physics/lammps/lammps-20230328.ebuild b/sci-physics/lammps/lammps-20230328.ebuild deleted file mode 100644 index 15f4355d109d2..0000000000000 --- a/sci-physics/lammps/lammps-20230328.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_OPTIONAL=1 -DISTUTILS_USE_PEP517=setuptools -CMAKE_MAKEFILE_GENERATOR=emake -# Doc building insists on fetching mathjax -# DOCS_BUILDER="doxygen" -# DOCS_DEPEND=" -# media-gfx/graphviz -# dev-libs/mathjax -# " - -inherit cmake fortran-2 distutils-r1 # docs - -convert_month() { - local months=( "" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ) - echo ${months[${1#0}]} -} - -MY_PV="$((10#${PV:6:2}))$(convert_month ${PV:4:2})${PV:0:4}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator" -HOMEPAGE="https://lammps.sandia.gov/" -SRC_URI="https://download.lammps.org/tars/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}/cmake" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="cuda examples gzip hip lammps-memalign mpi opencl python test" -# Requires write access to /dev/dri/renderD... -RESTRICT="test" - -RDEPEND=" - app-arch/gzip - media-libs/libpng:0 - sys-libs/zlib - mpi? ( - virtual/mpi - sci-libs/hdf5:=[mpi] - ) - python? ( ${PYTHON_DEPS} ) - sci-libs/voro++ - virtual/blas - virtual/lapack - sci-libs/fftw:3.0= - sci-libs/netcdf:= - cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1:= ) - opencl? ( virtual/opencl ) - hip? ( dev-util/hip:= ) - dev-cpp/eigen:3 - " - # Kokkos-3.5 not in tree atm - # kokkos? ( dev-cpp/kokkos-3.5.* ) -BDEPEND="${DISTUTILS_DEPS}" -DEPEND="${RDEPEND} - test? ( - dev-cpp/gtest - ) -" - -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) - ?? ( cuda opencl hip ) -" - -src_prepare() { - cmake_src_prepare - if use python; then - pushd ../python || die - distutils-r1_src_prepare - popd - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" - -DBUILD_SHARED_LIBS=ON - -DBUILD_MPI=$(usex mpi) - -DBUILD_DOC=OFF - #-DBUILD_DOC=$(usex doc) - -DENABLE_TESTING=$(usex test) - -DPKG_ASPHERE=ON - -DPKG_BODY=ON - -DPKG_CLASS2=ON - -DPKG_COLLOID=ON - -DPKG_COMPRESS=ON - -DPKG_CORESHELL=ON - -DPKG_DIPOLE=ON - -DPKG_GRANULAR=ON - -DPKG_KSPACE=ON - -DFFT=FFTW3 - -DPKG_KOKKOS=OFF - #-DPKG_KOKKOS=$(usex kokkos) - #$(use kokkos && echo -DEXTERNAL_KOKKOS=ON) - -DPKG_MANYBODY=ON - -DPKG_MC=ON - -DPKG_MEAM=ON - -DPKG_MISC=ON - -DPKG_MOLECULE=ON - -DPKG_PERI=ON - -DPKG_QEQ=ON - -DPKG_REPLICA=ON - -DPKG_RIGID=ON - -DPKG_SHOCK=ON - -DPKG_SRD=ON - -DPKG_PYTHON=$(usex python) - -DPKG_MPIIO=$(usex mpi) - -DPKG_VORONOI=ON - ) - if use cuda || use opencl || use hip; then - mycmakeargs+=( -DPKG_GPU=ON ) - use cuda && mycmakeargs+=( -DGPU_API=cuda ) - use opencl && mycmakeargs+=( -DGPU_API=opencl -DUSE_STATIC_OPENCL_LOADER=OFF ) - use hip && mycmakeargs+=( -DGPU_API=hip ) - else - mycmakeargs+=( -DPKG_GPU=OFF ) - fi - cmake_src_configure - if use python; then - pushd ../python || die - distutils-r1_src_configure - popd - fi -} - -src_compile() { - cmake_src_compile - if use python; then - pushd ../python || die - distutils-r1_src_compile - popd - fi -} - -src_test() { - cmake_src_test - if use python; then - pushd ../python || die - distutils-r1_src_test - popd - fi -} - -src_install() { - cmake_src_install - if use python; then - pushd ../python || die - distutils-r1_src_install - popd - fi - - if use examples; then - for d in examples bench; do - local LAMMPS_EXAMPLES="/usr/share/${PN}/${d}" - insinto "${LAMMPS_EXAMPLES}" - doins -r "${S}"/../${d}/* - done - fi -} diff --git a/sci-physics/lammps/lammps-20220217-r1.ebuild b/sci-physics/lammps/lammps-20240829.ebuild similarity index 73% rename from sci-physics/lammps/lammps-20220217-r1.ebuild rename to sci-physics/lammps/lammps-20240829.ebuild index 15f4355d109d2..7d4d92c21ff84 100644 --- a/sci-physics/lammps/lammps-20220217-r1.ebuild +++ b/sci-physics/lammps/lammps-20240829.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) DISTUTILS_OPTIONAL=1 DISTUTILS_USE_PEP517=setuptools CMAKE_MAKEFILE_GENERATOR=emake @@ -22,17 +22,22 @@ convert_month() { } MY_PV="$((10#${PV:6:2}))$(convert_month ${PV:4:2})${PV:0:4}" -MY_P="${PN}-${MY_PV}" +MY_P="${PN}-stable_${MY_PV}" DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator" -HOMEPAGE="https://lammps.sandia.gov/" -SRC_URI="https://download.lammps.org/tars/${MY_P}.tar.gz" +HOMEPAGE="https://www.lammps.org" +SRC_URI=" + https://github.com/lammps/lammps/archive/refs/tags/stable_${MY_PV}.tar.gz + test? ( + https://github.com/google/googletest/archive/release-1.12.1.tar.gz -> ${PN}-gtest-1.12.1.tar.gz + ) +" S="${WORKDIR}/${MY_P}/cmake" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="cuda examples gzip hip lammps-memalign mpi opencl python test" +KEYWORDS="~amd64 ~x86" +IUSE="cuda examples extra gzip hip lammps-memalign mpi opencl openmp python test" # Requires write access to /dev/dri/renderD... RESTRICT="test" @@ -52,7 +57,10 @@ RDEPEND=" sci-libs/netcdf:= cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1:= ) opencl? ( virtual/opencl ) - hip? ( dev-util/hip:= ) + hip? ( + dev-util/hip:= + sci-libs/hipCUB:= + ) dev-cpp/eigen:3 " # Kokkos-3.5 not in tree atm @@ -61,6 +69,7 @@ BDEPEND="${DISTUTILS_DEPS}" DEPEND="${RDEPEND} test? ( dev-cpp/gtest + dev-libs/libyaml ) " @@ -74,7 +83,11 @@ src_prepare() { if use python; then pushd ../python || die distutils-r1_src_prepare - popd + popd || die + fi + if use test; then + mkdir "${BUILD_DIR}/_deps" + cp "${DISTDIR}/${PN}-gtest-1.12.1.tar.gz" "${BUILD_DIR}/_deps/release-1.12.1.tar.gz" fi } @@ -93,6 +106,11 @@ src_configure() { -DPKG_COMPRESS=ON -DPKG_CORESHELL=ON -DPKG_DIPOLE=ON + -DPKG_EXTRA-COMPUTE=$(usex extra) + -DPKG_EXTRA-DUMP=$(usex extra) + -DPKG_EXTRA-FIX=$(usex extra) + -DPKG_EXTRA-MOLECULE=$(usex extra) + -DPKG_EXTRA-PAIR=$(usex extra) -DPKG_GRANULAR=ON -DPKG_KSPACE=ON -DFFT=FFTW3 @@ -104,6 +122,7 @@ src_configure() { -DPKG_MEAM=ON -DPKG_MISC=ON -DPKG_MOLECULE=ON + -DPKG_OPENMP=$(usex openmp) -DPKG_PERI=ON -DPKG_QEQ=ON -DPKG_REPLICA=ON @@ -118,7 +137,7 @@ src_configure() { mycmakeargs+=( -DPKG_GPU=ON ) use cuda && mycmakeargs+=( -DGPU_API=cuda ) use opencl && mycmakeargs+=( -DGPU_API=opencl -DUSE_STATIC_OPENCL_LOADER=OFF ) - use hip && mycmakeargs+=( -DGPU_API=hip ) + use hip && mycmakeargs+=( -DGPU_API=hip -DHIP_PATH="${EPREFIX}/usr" ) else mycmakeargs+=( -DPKG_GPU=OFF ) fi @@ -126,7 +145,7 @@ src_configure() { if use python; then pushd ../python || die distutils-r1_src_configure - popd + popd || die fi } @@ -135,7 +154,7 @@ src_compile() { if use python; then pushd ../python || die distutils-r1_src_compile - popd + popd || die fi } @@ -144,16 +163,21 @@ src_test() { if use python; then pushd ../python || die distutils-r1_src_test - popd + popd || die fi } src_install() { cmake_src_install + + if use opencl; then + dobin "${BUILD_DIR}/ocl_get_devices" + fi + if use python; then pushd ../python || die distutils-r1_src_install - popd + popd || die fi if use examples; then