From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3BD7815ACFB for ; Thu, 27 Apr 2023 23:17:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B97DE0935; Thu, 27 Apr 2023 23:17:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C47AE0935 for ; Thu, 27 Apr 2023 23:17:45 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F393340E04 for ; Thu, 27 Apr 2023 23:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0FACA40 for ; Thu, 27 Apr 2023 23:17:42 +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: <1682637321.c99319166709ae3b673c6976d3f8bd7e6ef44fb2.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.17.1.ebuild sci-chemistry/chimera/metadata.xml X-VCS-Directories: sci-chemistry/chimera/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: c99319166709ae3b673c6976d3f8bd7e6ef44fb2 X-VCS-Branch: master Date: Thu, 27 Apr 2023 23:17:42 +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: 542f4f8e-237a-48b3-84f4-ad708cbeecb9 X-Archives-Hash: eeeb372a829d5cad675ac74e713cb931 commit: c99319166709ae3b673c6976d3f8bd7e6ef44fb2 Author: Pacho Ramos gentoo org> AuthorDate: Thu Apr 27 13:14:27 2023 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Thu Apr 27 23:15:21 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c9931916 sci-chemistry/chimera: new package, add 1.17.1 By the way, as chimera-bin was dropped, use a non "-bin" name as there is no source version for this https://devmanual.gentoo.org/ebuild-writing/file-format/index.html#binary-packages Closes: https://bugs.gentoo.org/903559 Signed-off-by: Pacho Ramos gentoo.org> sci-chemistry/chimera/chimera-1.17.1.ebuild | 93 +++++++++++++++++++++++++++++ sci-chemistry/chimera/metadata.xml | 12 ++++ 2 files changed, 105 insertions(+) diff --git a/sci-chemistry/chimera/chimera-1.17.1.ebuild b/sci-chemistry/chimera/chimera-1.17.1.ebuild new file mode 100644 index 000000000..6cb958a5f --- /dev/null +++ b/sci-chemistry/chimera/chimera-1.17.1.ebuild @@ -0,0 +1,93 @@ +# 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/chimerax/" +SRC_URI="chimera-${PV}-linux_x86_64.bin + fetch+http://svn.cgl.ucsf.edu/svn/chimera/trunk/icons/chimera/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-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 chimera-${PV}-linux_x86_64.bin into your DISTDIR" +} + +src_unpack() { + cp "${DISTDIR}"/chimera-${PV}-linux_x86_64.bin chimera-${PV}-linux_x86_64.bin.zip + unzip chimera-${PV}-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 +} diff --git a/sci-chemistry/chimera/metadata.xml b/sci-chemistry/chimera/metadata.xml new file mode 100644 index 000000000..5c83ce208 --- /dev/null +++ b/sci-chemistry/chimera/metadata.xml @@ -0,0 +1,12 @@ + + + + + pacho@gentoo.org + Pacho Ramos + + + sci-chemistry@gentoo.org + Gentoo Chemistry Project + +