Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/chimera-bin/
Date: Mon, 28 Sep 2020 08:13:47
Message-Id: 1601280713.6e6a05ff1bc60fd9ec22a6805c7afd6429730ceb.chymera@gentoo
1 commit: 6e6a05ff1bc60fd9ec22a6805c7afd6429730ceb
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Mon Sep 28 08:11:53 2020 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Mon Sep 28 08:11:53 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6e6a05ff
7
8 sci-chemistry/chimera-bin: version bump 1.14
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild | 92 +++++++++++++++++++++++
14 1 file changed, 92 insertions(+)
15
16 diff --git a/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild b/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild
17 new file mode 100644
18 index 000000000..33f2301fd
19 --- /dev/null
20 +++ b/sci-chemistry/chimera-bin/chimera-bin-1.14.ebuild
21 @@ -0,0 +1,92 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit eutils
28 +
29 +DESCRIPTION="An extensible Molecular Modelling System"
30 +HOMEPAGE="http://www.cgl.ucsf.edu/chimera"
31 +SRC_URI="chimera-${PV}-linux_x86_64.bin"
32 +
33 +SLOT="0"
34 +LICENSE="chimera"
35 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
36 +IUSE=""
37 +
38 +DEPEND="prefix? ( dev-util/patchelf )"
39 +RDEPEND="
40 + dev-lang/tcl
41 + dev-lang/tk
42 + dev-libs/expat
43 + dev-libs/libotf
44 + dev-libs/openssl:0
45 + dev-libs/libpcre
46 + sys-libs/zlib
47 + media-libs/fontconfig
48 + media-libs/freetype
49 + media-libs/ftgl
50 + media-libs/libpng
51 + media-libs/tiff
52 + sci-libs/hdf5
53 + sci-libs/xdrfile
54 + sys-devel/gcc[openmp,fortran]
55 + virtual/jpeg
56 + virtual/glu
57 + virtual/opengl
58 + x11-libs/libX11
59 + x11-libs/libICE
60 + x11-libs/libXext
61 + x11-libs/libXft
62 + x11-libs/libXmu
63 + x11-libs/libXpm
64 + x11-libs/libXrender
65 + x11-libs/libSM
66 + x11-libs/libXt
67 + x11-libs/libGLw"
68 +
69 +S="${WORKDIR}"
70 +
71 +RESTRICT="fetch strip"
72 +
73 +QA_PREBUILT="opt/.*"
74 +
75 +pkg_nofetch() {
76 + elog "Please visit"
77 + elog "http://www.cgl.ucsf.edu/chimera/download.html"
78 + elog "or"
79 + elog "http://www.cgl.ucsf.edu/chimera/olddownload.html"
80 + elog "and download ${A} into your DISTDIR"
81 +}
82 +
83 +src_unpack() {
84 + cp "${DISTDIR}"/${A} ${A}.zip
85 + unzip ${A}.zip || die
86 +}
87 +
88 +src_install() {
89 + chmod +x ./chimera.bin
90 + dodir /opt/
91 + ./chimera.bin -d foo || die
92 + doicon foo/chimeraIcon.png
93 + mv foo "${ED}/opt/${PN}" || die
94 +
95 + cat >> "${T}"/chimera <<- EOF
96 + #!${EPREFX}/bin/bash
97 +
98 + export PATH="${EPREFIX}/opt/${PN}/bin:\${PATH}"
99 + "${EPREFIX}/opt/${PN}/bin/chimera" \$@
100 + EOF
101 +
102 + exeinto /opt/bin/
103 + doexe "${T}"/chimera
104 +
105 + make_desktop_entry "${EPREFIX}/opt/bin/chimera" Chimera chimeraIcon
106 +
107 + if use prefix; then
108 + local i
109 + for i in "${ED}"/opt/${PN}/bin/{tiffcp,povray,al2co} "${ED}"/opt/${PN}/lib/*.so; do
110 + patchelf --set-rpath "${EPREFIX}/usr/lib:${EPREFIX}/opt/${PN}/lib" "${i}" || die
111 + done
112 + fi
113 +}