Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/chimera-bin/
Date: Fri, 27 Jun 2014 09:53:10
Message-Id: 1403862773.cbedd96c2be91aaede98b5e1105ae8652c7a0ab2.alexxy@gentoo
1 commit: cbedd96c2be91aaede98b5e1105ae8652c7a0ab2
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 27 09:52:53 2014 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 27 09:52:53 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cbedd96c
7
8 Update chimera to new version
9
10 Package-Manager: portage-2.2.10
11
12 ---
13 sci-chemistry/chimera-bin/ChangeLog | 6 +-
14 sci-chemistry/chimera-bin/chimera-bin-1.9.ebuild | 94 ++++++++++++++++++++++++
15 2 files changed, 99 insertions(+), 1 deletion(-)
16
17 diff --git a/sci-chemistry/chimera-bin/ChangeLog b/sci-chemistry/chimera-bin/ChangeLog
18 index 0ff838c..6d37a9f 100644
19 --- a/sci-chemistry/chimera-bin/ChangeLog
20 +++ b/sci-chemistry/chimera-bin/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*chimera-bin-1.9 (27 Jun 2014)
26 +
27 + 27 Jun 2014; Alexey Shvetsov <alexxy@g.o> +chimera-bin-1.9.ebuild:
28 + Update chimera to new version
29 +
30 *chimera-bin-1.8.1 (16 Jan 2014)
31
32 16 Jan 2014; Justin Lecher <jlec@g.o> +chimera-bin-1.8.1.ebuild:
33 @@ -30,4 +35,3 @@
34 20 Sep 2012; Justin Lecher <jlec@g.o> +chimera-bin-1.6.2.ebuild,
35 +metadata.xml:
36 New addition
37 -
38
39 diff --git a/sci-chemistry/chimera-bin/chimera-bin-1.9.ebuild b/sci-chemistry/chimera-bin/chimera-bin-1.9.ebuild
40 new file mode 100644
41 index 0000000..07734d6
42 --- /dev/null
43 +++ b/sci-chemistry/chimera-bin/chimera-bin-1.9.ebuild
44 @@ -0,0 +1,94 @@
45 +# Copyright 1999-2014 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Header: $
48 +
49 +EAPI=5
50 +
51 +inherit eutils
52 +
53 +DESCRIPTION="An extensible Molecular Modelling System"
54 +HOMEPAGE="http://www.cgl.ucsf.edu/chimera"
55 +SRC_URI="
56 + amd64? ( chimera-${PV}-linux_x86_64.bin )
57 + x86? ( chimera-${PV}-linux.bin )"
58 +
59 +SLOT="0"
60 +LICENSE="chimera"
61 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
62 +IUSE=""
63 +
64 +DEPEND="prefix? ( dev-util/patchelf )"
65 +RDEPEND="
66 + dev-lang/tcl
67 + dev-lang/tk
68 + dev-libs/expat
69 + dev-libs/libotf
70 + dev-libs/openssl:0
71 + dev-libs/libpcre
72 + sys-libs/zlib
73 + media-libs/fontconfig
74 + media-libs/freetype
75 + media-libs/ftgl
76 + media-libs/libpng:1.2
77 + media-libs/tiff
78 + media-libs/tiff:3
79 + sci-libs/hdf5
80 + sys-devel/gcc[openmp,fortran]
81 + virtual/jpeg
82 + virtual/glu
83 + virtual/opengl
84 + www-apps/swish-e
85 + x11-libs/libX11
86 + x11-libs/libICE
87 + x11-libs/libXext
88 + x11-libs/libXft
89 + x11-libs/libXmu
90 + x11-libs/libXpm
91 + x11-libs/libXrender
92 + x11-libs/libSM
93 + x11-libs/libXt
94 + || ( x11-libs/libGLw <media-libs/mesa-8 )"
95 +
96 +S="${WORKDIR}"
97 +
98 +RESTRICT="fetch strip"
99 +
100 +QA_PREBUILT="opt/.*"
101 +
102 +pkg_nofetch() {
103 + elog "Please visit"
104 + elog "http://www.cgl.ucsf.edu/chimera/download.html"
105 + elog "and download ${A} into ${DISTDIR}"
106 +}
107 +
108 +src_unpack() {
109 + cp "${DISTDIR}"/${A} ${A}.zip
110 + unzip ${A}.zip || die
111 +}
112 +
113 +src_install() {
114 + chmod +x ./chimera.bin
115 + dodir /opt/
116 + ./chimera.bin -d foo || die
117 + doicon foo/chimeraIcon.png
118 + mv foo "${ED}/opt/${PN}" || die
119 +
120 + cat >> "${T}"/chimera <<- EOF
121 + #!${EPREFX}/bin/bash
122 +
123 + export PATH="${EPREFIX}/opt/${PN}/bin:\${PATH}"
124 + "${EPREFIX}/opt/${PN}/bin/chimera" \$@
125 + EOF
126 +
127 + exeinto /opt/bin/
128 + doexe "${T}"/chimera
129 +
130 + make_desktop_entry "${EPREFIX}/opt/bin/chimera" Chimera chimeraIcon
131 +
132 + if use prefix; then
133 + local i
134 + for i in "${ED}"/opt/${PN}/bin/{tiffcp,povray,al2co} "${ED}"/opt/${PN}/lib/*.so; do
135 + patchelf --set-rpath "${EPREFIX}/usr/lib:${EPREFIX}/opt/${PN}/lib" "${i}" || die
136 + done
137 + fi
138 +}