Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/phenix-bin/
Date: Tue, 06 May 2014 16:44:15
Message-Id: 1399391299.2c7fc4b6a6d108239112399e3c15b268a4d9b0f2.jlec@gentoo
1 commit: 2c7fc4b6a6d108239112399e3c15b268a4d9b0f2
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 6 15:48:19 2014 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue May 6 15:48:19 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2c7fc4b6
7
8 sci-chemistry/phenix-bin: Version Bump
9
10 Package-Manager: portage-2.2.10
11
12 ---
13 sci-chemistry/phenix-bin/ChangeLog | 5 +
14 .../phenix-bin/phenix-bin-1.9.1690.ebuild | 114 +++++++++++++++++++++
15 2 files changed, 119 insertions(+)
16
17 diff --git a/sci-chemistry/phenix-bin/ChangeLog b/sci-chemistry/phenix-bin/ChangeLog
18 index eb06212..ddba56b 100644
19 --- a/sci-chemistry/phenix-bin/ChangeLog
20 +++ b/sci-chemistry/phenix-bin/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*phenix-bin-1.9.1690 (06 May 2014)
26 +
27 + 06 May 2014; Justin Lecher <jlec@g.o> +phenix-bin-1.9.1690.ebuild:
28 + Version Bump
29 +
30 25 Feb 2014; Justin Lecher <jlec@g.o> phenix-bin-1.8.4.1496.ebuild:
31 Fix prefix problems
32
33
34 diff --git a/sci-chemistry/phenix-bin/phenix-bin-1.9.1690.ebuild b/sci-chemistry/phenix-bin/phenix-bin-1.9.1690.ebuild
35 new file mode 100644
36 index 0000000..2196ef1
37 --- /dev/null
38 +++ b/sci-chemistry/phenix-bin/phenix-bin-1.9.1690.ebuild
39 @@ -0,0 +1,114 @@
40 +# Copyright 1999-2014 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=5
45 +
46 +PYTHON_COMPAT=( python2_7 )
47 +
48 +WX_GTK_VER=2.8
49 +
50 +inherit python-single-r1 versionator wxwidgets
51 +
52 +MY_PV="$(replace_version_separator 2 -)"
53 +MY_P="phenix-installer-${MY_PV}"
54 +
55 +DESCRIPTION="Python-based Hierarchical ENvironment for Integrated Xtallography"
56 +HOMEPAGE="http://phenix-online.org/"
57 +SRC_URI="
58 + amd64? ( phenix-installer-${MY_PV}-intel-linux-2.6-x86_64-fc12.tar )
59 +"
60 +
61 +SLOT="0"
62 +LICENSE="phenix"
63 +KEYWORDS="~amd64 ~amd64-linux"
64 +IUSE=""
65 +
66 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
67 +
68 +RDEPEND="${PYTHON_DEPS}
69 + app-arch/bzip2
70 + dev-db/sqlite:3
71 + dev-libs/atk
72 + dev-libs/boost
73 + dev-libs/expat
74 + dev-libs/glib:2
75 + dev-libs/openssl
76 + media-gfx/nvidia-cg-toolkit
77 + media-libs/fontconfig
78 + media-libs/freetype
79 + media-libs/libpng:1.2
80 + sys-libs/db:4.8
81 + sys-libs/gdbm
82 + sys-libs/ncurses[tinfo]
83 + sys-libs/readline
84 + virtual/glu
85 + x11-libs/cairo
86 + x11-libs/gdk-pixbuf:2
87 + x11-libs/gtk+:2
88 + x11-libs/pango
89 + x11-libs/pixman
90 + x11-libs/libSM
91 + x11-libs/libX11
92 + x11-libs/libXcursor
93 + x11-libs/libXext
94 + x11-libs/libXfixes
95 + x11-libs/libXft
96 + x11-libs/libXinerama
97 + x11-libs/libXi
98 + x11-libs/libXmu
99 + x11-libs/libXrandr
100 + x11-libs/libXrender
101 + x11-libs/libXxf86vm
102 + x11-libs/wxGTK:${WX_GTK_VER}[X]
103 + sys-libs/zlib
104 + virtual/jpeg:62"
105 +DEPEND="${PYTHON_DEPS}"
106 +
107 +RESTRICT="fetch"
108 +
109 +QA_PREBUILT="opt/phenix-${MY_PV}/.*"
110 +
111 +S="${WORKDIR}"/${MY_P}
112 +
113 +pkg_nofetch() {
114 + elog "Please visit"
115 + elog "http://www.phenix-online.org/phenix_request/index.cgi"
116 + elog "and request a download password. With that done,"
117 + elog "visit http://www.phenix-online.org/download/phenix/release"
118 + elog "and download version \"Kernel 2.6 (64-bit; Fedora 12)\" (${A})"
119 + elog "into ${DISTDIR}"
120 +}
121 +
122 +src_prepare() {
123 + ./install --prefix="${S}/foo"
124 +}
125 +
126 +src_install() {
127 + sed \
128 + -e "s:${S}/foo:${EPREFIX}/opt:g" \
129 + -i \
130 + build-binary/intel-linux-2.6-*/*/log/*.log \
131 + build-final/intel-linux-2.6-*/*/log/*.log \
132 + foo/phenix-${MY_PV}/build/intel-linux-2.6-*/*_env \
133 + foo/phenix-${MY_PV}/build/intel-linux-*/*sh \
134 + foo/phenix-${MY_PV}/build/intel-linux-*/bin/* \
135 + foo/phenix-${MY_PV}/build/intel-linux-2.6-*/base/etc/{gtk*,pango}/* \
136 + foo/phenix-${MY_PV}/phenix_env* \
137 + || die
138 +
139 + dodir /opt
140 + mv "${S}/foo/phenix-${MY_PV}" "${ED}/opt/"
141 +
142 + cat >> phenix <<- EOF
143 + #!${EPREFIX}/bin/bash
144 +
145 + source "${EPREFIX}/opt/phenix-${MY_PV}/phenix_env.sh"
146 + export LD_LIBRARY_PATH="${EPREFIX}"/usr/$(get_libdir)
147 + exec phenix
148 + EOF
149 + dobin phenix
150 +
151 + python_fix_shebang "${ED}"/opt
152 + python_optimize "${ED}"/opt
153 +}