aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/chimera')
-rw-r--r--sci-chemistry/chimera/Manifest1
-rw-r--r--sci-chemistry/chimera/chimera-1.17.3.ebuild93
2 files changed, 94 insertions, 0 deletions
diff --git a/sci-chemistry/chimera/Manifest b/sci-chemistry/chimera/Manifest
index c6bfe04fd..953fae5f9 100644
--- a/sci-chemistry/chimera/Manifest
+++ b/sci-chemistry/chimera/Manifest
@@ -1,2 +1,3 @@
DIST Chimera512.png 68464 BLAKE2B 51797728b8b9421ab6e42e57bb60881a706d17eed09cbef57506f706b7ebab6511397f90834d15efaea5e86a22fc2ff9e55cf42c7a87d6166716444252d18f49 SHA512 6ed0dd8bd1b5a6b164f80acc1d7e1a91629513b147d37472e1831b657201a3f25c1c0c9a1b44bf565afaa4aa99469910d1ac307a45a80b9a12d0554e1812e2c5
DIST chimera-1.17.1-linux_x86_64.bin 149832020 BLAKE2B 01e78d09a3373a3d927c93daa03d0c17473c18079afd989a29afaad5c56aa57bbfeb968bcef42eb50924e1cde67e939c92a545080c0e7b55549c30e43aae564d SHA512 f6df3ad320f09b3f8d918660a4a7596505c2a97ac0d60a4f6ef9c414851a90bb59ccba9728d5a71df93404b8c6ecf99ab9dca84befcfa10e60285f3a33e3c3bc
+DIST chimera-1.17.3-linux_x86_64.bin 155528316 BLAKE2B 09caddbac9a518606b8065a19840fd2f5e3a57cbb529bea2e4b63cb83ecd91105c1de34dc3f1139382fc80f14e69b28c39152d9b15e16c39a08732ebcd374c51 SHA512 cfbf42dd3aa030db0619bf5750d08ba94acc53f54a890109d422a675394616afba9c85779e5d62bcd4ad83db4a7cfcf8190c2c42c84719c991061859c87288b7
diff --git a/sci-chemistry/chimera/chimera-1.17.3.ebuild b/sci-chemistry/chimera/chimera-1.17.3.ebuild
new file mode 100644
index 000000000..4fdafd361
--- /dev/null
+++ b/sci-chemistry/chimera/chimera-1.17.3.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/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-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
+}