From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 41C021582EF for ; Wed, 05 Mar 2025 17:00:37 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 0B50F343023 for ; Wed, 05 Mar 2025 17:00:37 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5EA371102D2; Wed, 05 Mar 2025 17:00:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 582901102D2 for ; Wed, 05 Mar 2025 17:00:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 08A6634301F for ; Wed, 05 Mar 2025 17:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D17C2853 for ; Wed, 05 Mar 2025 17:00:33 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1741193884.f1f6aa85e44422946cc935ea310cd64dec5e6f90.pacho@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/chimera/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/chimera/chimera-1.18.ebuild X-VCS-Directories: sci-chemistry/chimera/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: f1f6aa85e44422946cc935ea310cd64dec5e6f90 X-VCS-Branch: master Date: Wed, 05 Mar 2025 17:00:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b71f3787-82c8-40d3-ace2-5c7006d6d1b5 X-Archives-Hash: 7929bb9bb5edebbeeae55dc510784fcf commit: f1f6aa85e44422946cc935ea310cd64dec5e6f90 Author: Pacho Ramos gentoo org> AuthorDate: Wed Mar 5 16:58:04 2025 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Wed Mar 5 16:58:04 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f1f6aa85 sci-chemistry/chimera: add 1.18 Signed-off-by: Pacho Ramos gentoo.org> sci-chemistry/chimera/chimera-1.18.ebuild | 94 +++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/sci-chemistry/chimera/chimera-1.18.ebuild b/sci-chemistry/chimera/chimera-1.18.ebuild new file mode 100644 index 000000000..459fe6b30 --- /dev/null +++ b/sci-chemistry/chimera/chimera-1.18.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit desktop xdg + +DESCRIPTION="Next generation molecular visualization program from RBVI" +HOMEPAGE="https://www.cgl.ucsf.edu/chimera/" +SRC_URI="${P}-linux_x86_64.bin + mirror+https://dev.gentoo.org/~pacho/${PN}/Chimera512.png" + +SLOT="0" +LICENSE="chimera" +KEYWORDS="~amd64 ~x86" + +RESTRICT="fetch mirror strip" +QA_PREBUILT="*" + +DEPEND="" +BDEPEND="" +RDEPEND=" + dev-lang/tcl + dev-lang/tk + dev-libs/expat + dev-libs/libotf + dev-libs/openssl:0 + dev-libs/libpcre + sys-libs/zlib + media-libs/fontconfig + media-libs/freetype + media-libs/ftgl + media-libs/libpng + media-libs/tiff + sci-libs/hdf5 + sys-libs/ncurses-compat + sys-devel/gcc[openmp,fortran] + media-libs/libjpeg-turbo + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libICE + x11-libs/libXext + x11-libs/libXft + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXrender + x11-libs/libSM + x11-libs/libXt + x11-libs/libGLw + virtual/libcrypt:= +" + +S="${WORKDIR}" + +pkg_nofetch() { + elog "Please visit" + elog "https://www.cgl.ucsf.edu/chimera/download.html" + elog "and download ${P}-linux_x86_64.bin into your DISTDIR" +} + +src_unpack() { + cp "${DISTDIR}"/${P}-linux_x86_64.bin ${P}-linux_x86_64.bin.zip + unzip ${P}-linux_x86_64.bin.zip || die +} + +src_install() { + chmod +x ./chimera.bin + dodir /opt/ + ./chimera.bin -d foo || die + newicon "${DISTDIR}"/Chimera512.png Chimera.png + make_desktop_entry "${EPREFIX}/opt/bin/chimera" Chimera Chimera + mv foo "${ED}/opt/${PN}" || die + + cat >> "${T}"/chimera <<- EOF + #!${EPREFX}/bin/bash + + export PATH="${EPREFIX}/opt/${PN}/bin:\${PATH}" + "${EPREFIX}/opt/${PN}/bin/chimera" \$@ + EOF + + exeinto /opt/bin/ + doexe "${T}"/chimera + + # point the symlink to the correct location + rm "${ED}/opt/chimera/include/ft2build.h" || die + dosym ../../../usr/include/freetype2/ft2build.h opt/chimera/include/ft2build.h + + if use prefix; then + local i + for i in "${ED}"/opt/${PN}/bin/{tiffcp,povray,al2co} "${ED}"/opt/${PN}/lib/*.so; do + patchelf --set-rpath "${EPREFIX}/usr/lib:${EPREFIX}/opt/${PN}/lib" "${i}" || die + done + fi +}