1 |
jlec 10/07/27 18:47:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vmd-1.8.7-r2.ebuild |
5 |
Log: |
6 |
Make it really prefix ready, don't mix CFLAGS/CXXFLAGS,clean old patches |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.31 sci-chemistry/vmd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/ChangeLog?rev=1.31&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/ChangeLog?rev=1.31&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/ChangeLog?r1=1.30&r2=1.31 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/vmd/ChangeLog,v |
19 |
retrieving revision 1.30 |
20 |
retrieving revision 1.31 |
21 |
diff -u -r1.30 -r1.31 |
22 |
--- ChangeLog 24 Jul 2010 17:27:05 -0000 1.30 |
23 |
+++ ChangeLog 27 Jul 2010 18:47:37 -0000 1.31 |
24 |
@@ -1,6 +1,18 @@ |
25 |
# ChangeLog for sci-chemistry/vmd |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/vmd/ChangeLog,v 1.30 2010/07/24 17:27:05 jlec Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/vmd/ChangeLog,v 1.31 2010/07/27 18:47:37 jlec Exp $ |
29 |
+ |
30 |
+*vmd-1.8.7-r2 (27 Jul 2010) |
31 |
+ |
32 |
+ 27 Jul 2010; Justin Lecher <jlec@g.o> |
33 |
+ -files/vmd-1.8.5-config-gentoo.patch, |
34 |
+ -files/vmd-1.8.6-config-gentoo.patch, |
35 |
+ -files/vmd-1.8.6-fix-crash-on-tcl8.5.patch, |
36 |
+ -files/vmd-1.8.6-python-2.5.patch, -files/vmd-1.8.6-tcltk8.5.patch, |
37 |
+ vmd-1.8.7-r1.ebuild, +vmd-1.8.7-r2.ebuild, -files/vmd-1.8.7-config.patch, |
38 |
+ files/vmd-1.8.7-gentoo.patch, +files/vmd-1.8.7-respect-flags.patch, |
39 |
+ -files/vmd-1.8.7-use-bash-startup.patch: |
40 |
+ Make it really prefix ready, don't mix CFLAGS/CXXFLAGS,clean old patches |
41 |
|
42 |
24 Jul 2010; Justin Lecher <jlec@g.o> vmd-1.8.7-r1.ebuild: |
43 |
Added prefix changes, thanks rei4dan #327517; keyworded for ~-linux prefix |
44 |
|
45 |
|
46 |
|
47 |
1.1 sci-chemistry/vmd/vmd-1.8.7-r2.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/vmd-1.8.7-r2.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/vmd-1.8.7-r2.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: vmd-1.8.7-r2.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2010 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/vmd/vmd-1.8.7-r2.ebuild,v 1.1 2010/07/27 18:47:38 jlec Exp $ |
57 |
|
58 |
EAPI="3" |
59 |
|
60 |
PYTHON_DEPEND="2" |
61 |
|
62 |
inherit eutils multilib python toolchain-funcs |
63 |
|
64 |
DESCRIPTION="Visual Molecular Dynamics" |
65 |
HOMEPAGE="http://www.ks.uiuc.edu/Research/vmd/" |
66 |
SRC_URI="${P}.src.tar.gz" |
67 |
|
68 |
SLOT="0" |
69 |
LICENSE="vmd" |
70 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
71 |
IUSE="tachyon" |
72 |
|
73 |
RESTRICT="fetch" |
74 |
|
75 |
# currently, tk-8.5* with USE=truetype breaks some |
76 |
# tk apps such as Sequence Viewer or Timeline. |
77 |
DEPEND=" |
78 |
|| ( |
79 |
>=dev-lang/tk-8.5[-truetype] |
80 |
=dev-lang/tk-8.4* |
81 |
) |
82 |
dev-lang/perl |
83 |
dev-python/numpy |
84 |
sci-biology/stride |
85 |
sci-libs/netcdf |
86 |
virtual/opengl |
87 |
x11-libs/fltk:1.1 |
88 |
x11-libs/libXft" |
89 |
|
90 |
RDEPEND="${DEPEND} |
91 |
x11-terms/xterm |
92 |
tachyon? ( media-gfx/tachyon )" |
93 |
|
94 |
VMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=VMD" |
95 |
# Binary only plugin!! |
96 |
QA_TEXTRELS="usr/lib*/vmd/plugins/LINUX/tcl/intersurf1.1/bin/intersurf.so" |
97 |
QA_PRESTRIPPED="usr/lib*/vmd/plugins/LINUX/tcl/intersurf1.1/bin/intersurf.so" |
98 |
QA_DT_HASH_amd64="usr/lib64/vmd/plugins/LINUX/tcl/intersurf1.1/bin/intersurf.so" |
99 |
QA_DT_HASH_x86="usr/lib/vmd/plugins/LINUX/tcl/intersurf1.1/bin/intersurf.so" |
100 |
|
101 |
pkg_nofetch() { |
102 |
elog "Please download ${A} from" |
103 |
elog "${VMD_DOWNLOAD}" |
104 |
elog "after agreeing to the license and then move it to " |
105 |
elog "${DISTDIR}" |
106 |
} |
107 |
|
108 |
src_prepare() { |
109 |
# apply LINUX-arch patches to vmd configure |
110 |
cd "${WORKDIR}" && epatch "${FILESDIR}/${P}-gentoo.patch" |
111 |
|
112 |
# prepare the plugins |
113 |
cd "${WORKDIR}"/plugins |
114 |
|
115 |
sed -e "s:CC = gcc:CC = $(tc-getCC):" \ |
116 |
-e "s:CXX = g++:CXX = $(tc-getCXX):" \ |
117 |
-e "s:COPTO =.*\":COPTO = -fPIC -o\":" \ |
118 |
-e "s:LOPTO = .*\":LOPTO = ${LDFLAGS} -fPIC -o\":" \ |
119 |
-e "s:CCFLAGS =.*\":CCFLAGS = ${CFLAGS}\":" \ |
120 |
-e "s:CXXFLAGS =.*\":CXXFLAGS = ${CXXFLAGS}\":" \ |
121 |
-e "s:SHLD = gcc:SHLD = $(tc-getCC):" \ |
122 |
-e "s:-ltcl8.5:-ltcl:" \ |
123 |
-i Make-arch || die "Failed to set up plugins Makefile" |
124 |
|
125 |
# prepare vmd itself |
126 |
cd "${S}" |
127 |
|
128 |
# PREFIX |
129 |
sed \ |
130 |
-e "s:/usr/include/:${EPREFIX}/usr/include:g" \ |
131 |
-i configure || die |
132 |
|
133 |
sed -e "s:gentoo-bindir:${ED}/usr/bin:" \ |
134 |
-e "s:gentoo-libdir:${ED}/usr/$(get_libdir):" \ |
135 |
-i configure || die "failed to adjust install paths" |
136 |
|
137 |
sed -e "s:gentoo-opengl-include:${EPREFIX}/usr/include/GL:" \ |
138 |
-e "s:gentoo-opengl-libs:${EPREFIX}/usr/$(get_libdir):" \ |
139 |
-i configure || die "failed to adjust OpenGL paths" |
140 |
|
141 |
sed -e "s:gentoo-gcc:$(tc-getCC):" \ |
142 |
-e "s:gentoo-g++:$(tc-getCXX):" \ |
143 |
-e "s:gentoo-cflags:${CFLAGS}:" \ |
144 |
-e "s:gentoo-cxxflags:${CXXFLAGS}:" \ |
145 |
-e "s:gentoo-ldflags:${LDFLAGS}:g" \ |
146 |
-i configure || die "Failed to adjust C compiler/flags" |
147 |
|
148 |
sed -e "s:gentoo-plugindir:${WORKDIR}/plugins:" \ |
149 |
-i configure || die "Failed to set up linking to plugin files" |
150 |
|
151 |
sed -e "s:gentoo-fltk-include:${EPREFIX}/usr/include/fltk-1.1:" \ |
152 |
-e "s:gentoo-fltk-libs:${EPREFIX}/usr/$(get_libdir)/fltk-1.1 -Wl,-rpath,${EPREFIX}/usr/$(get_libdir)/fltk-1.1:" \ |
153 |
-i configure || die "failed setting up fltk" |
154 |
|
155 |
sed -e "s:gentoo-netcdf-include:${EPREFIX}/usr/include:" \ |
156 |
-e "s:gentoo-netcdf-libs:${EPREFIX}/usr/$(get_libdir):" \ |
157 |
-i configure || die "failed to set up netcdf" |
158 |
|
159 |
local NUMPY_INCLUDE="numpy/core/include" |
160 |
sed -e "s:gentoo-python-include:${EPREFIX}$(python_get_includedir):" \ |
161 |
-e "s:gentoo-python-lib:${EPREFIX}$(python_get_libdir):" \ |
162 |
-e "s:gentoo-python-link:$(PYTHON):" \ |
163 |
-e "s:gentoo-numpy-include:${EPREFIX}$(python_get_sitedir)/${NUMPY_INCLUDE}:" \ |
164 |
-i configure || die "failed setting up python" |
165 |
|
166 |
sed -e "s:LINUXPPC:LINUX:g" \ |
167 |
-e "s:LINUXALPHA:LINUX:g" \ |
168 |
-e "s:LINUXAMD64:LINUX:g" \ |
169 |
-i "${S}"/bin/vmd.sh || die "failed setting up vmd wrapper script" |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
local myconfig="LINUX OPENGL FLTK TK TCL PTHREADS PYTHON IMD NETCDF NUMPY NOSILENT" |
174 |
rm -f configure.options && echo $myconfig >> configure.options |
175 |
|
176 |
./configure &> /dev/null || die "failed to configure" |
177 |
} |
178 |
|
179 |
src_compile() { |
180 |
# build plugins |
181 |
cd "${WORKDIR}"/plugins |
182 |
|
183 |
emake -j1 \ |
184 |
LINUX TCLINC="-I${EPREFIX}/usr/include" \ |
185 |
TCLLIB="-L${EPREFIX}/usr/$(get_libdir)" \ |
186 |
NETCDFLIB="-L${EPREFIX}/usr/$(get_libdir)" \ |
187 |
NETCDFINC="-I${EPREFIX}/usr/include" \ |
188 |
NETCDFLDFLAGS="-lnetcdf" \ |
189 |
|| die "failed to build plugins" |
190 |
|
191 |
# build vmd |
192 |
cd "${S}"/src |
193 |
emake || die "failed to build vmd" |
194 |
} |
195 |
|
196 |
src_install() { |
197 |
# install plugins |
198 |
cd "${WORKDIR}"/plugins |
199 |
PLUGINDIR=${ED}/usr/$(get_libdir)/${PN}/plugins make distrib || \ |
200 |
die "failed to install plugins" |
201 |
|
202 |
# install vmd |
203 |
cd "${S}"/src |
204 |
make install || die "failed to install vmd" |
205 |
|
206 |
# export STRIDE_BIN so VMD knows where to find stride |
207 |
echo "STRIDE_BIN=${EPREFIX}/usr/bin/stride" > "${T}"/99${PN} || \ |
208 |
die "Failed to create vmd env file" |
209 |
doenvd "${T}"/99${PN} || die "Failed to install vmd env file" |
210 |
|
211 |
# install docs |
212 |
cd "${S}" |
213 |
dodoc Announcement README doc/ig.pdf doc/ug.pdf |
214 |
|
215 |
# remove some of the things we don't want and need in |
216 |
# /usr/lib |
217 |
cd "${ED}"/usr/$(get_libdir)/vmd |
218 |
rm -fr doc README Announcement LICENSE || \ |
219 |
die "failed to clean up /usr/lib/vmd directory" |
220 |
|
221 |
# adjust path in vmd wrapper |
222 |
sed \ |
223 |
-e "s:${ED}::" -i "${ED}"/usr/bin/${PN} \ |
224 |
-e "/^defaultvmddir/s:^.*$:defaultvmddir=\"${EPREFIX}/usr/$(get_libdir)/${PN}\":g" \ |
225 |
|| die "failed to set up vmd wrapper script" |
226 |
|
227 |
# install icon and generate desktop entry |
228 |
insinto /usr/share/pixmaps |
229 |
doins "${FILESDIR}"/vmd.png || die "Failed to install vmd icon" |
230 |
insinto /usr/share/applications |
231 |
doins "${FILESDIR}"/vmd.desktop || die "Failed to install desktop entry" |
232 |
} |