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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7220613835A for ; Mon, 28 Sep 2020 08:13:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC70AE0843; Mon, 28 Sep 2020 08:13:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A765DE0843 for ; Mon, 28 Sep 2020 08:13:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 674C7340A51 for ; Mon, 28 Sep 2020 08:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2353E385 for ; Mon, 28 Sep 2020 08:13:44 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1601280713.6e6a05ff1bc60fd9ec22a6805c7afd6429730ceb.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/chimera-bin/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild X-VCS-Directories: sci-chemistry/chimera-bin/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 6e6a05ff1bc60fd9ec22a6805c7afd6429730ceb X-VCS-Branch: master Date: Mon, 28 Sep 2020 08:13:44 +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: 17ad094e-feba-4eee-9e77-79da41ddaeb8 X-Archives-Hash: d90fa37e49558c0df6988caeaff9e173 commit: 6e6a05ff1bc60fd9ec22a6805c7afd6429730ceb Author: Horea Christian chymera eu> AuthorDate: Mon Sep 28 08:11:53 2020 +0000 Commit: Horea Christian gmail com> CommitDate: Mon Sep 28 08:11:53 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6e6a05ff sci-chemistry/chimera-bin: version bump 1.14 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Horea Christian chymera.eu> sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild | 92 +++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild b/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild new file mode 100644 index 000000000..33f2301fd --- /dev/null +++ b/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils + +DESCRIPTION="An extensible Molecular Modelling System" +HOMEPAGE="http://www.cgl.ucsf.edu/chimera" +SRC_URI="chimera-${PV}-linux_x86_64.bin" + +SLOT="0" +LICENSE="chimera" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="prefix? ( dev-util/patchelf )" +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 + sci-libs/xdrfile + sys-devel/gcc[openmp,fortran] + virtual/jpeg + 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" + +S="${WORKDIR}" + +RESTRICT="fetch strip" + +QA_PREBUILT="opt/.*" + +pkg_nofetch() { + elog "Please visit" + elog "http://www.cgl.ucsf.edu/chimera/download.html" + elog "or" + elog "http://www.cgl.ucsf.edu/chimera/olddownload.html" + elog "and download ${A} into your DISTDIR" +} + +src_unpack() { + cp "${DISTDIR}"/${A} ${A}.zip + unzip ${A}.zip || die +} + +src_install() { + chmod +x ./chimera.bin + dodir /opt/ + ./chimera.bin -d foo || die + doicon foo/chimeraIcon.png + 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 + + make_desktop_entry "${EPREFIX}/opt/bin/chimera" Chimera chimeraIcon + + 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 +}