1 |
jlec 10/12/02 22:15:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tinker-6.ebuild |
5 |
Removed: tinker-6.0.ebuild |
6 |
Log: |
7 |
Fixes for upstreams changes |
8 |
|
9 |
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.28 sci-chemistry/tinker/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/tinker/ChangeLog?rev=1.28&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/tinker/ChangeLog?rev=1.28&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/tinker/ChangeLog?r1=1.27&r2=1.28 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/tinker/ChangeLog,v |
21 |
retrieving revision 1.27 |
22 |
retrieving revision 1.28 |
23 |
diff -u -r1.27 -r1.28 |
24 |
--- ChangeLog 2 Dec 2010 10:51:37 -0000 1.27 |
25 |
+++ ChangeLog 2 Dec 2010 22:15:37 -0000 1.28 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-chemistry/tinker |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/tinker/ChangeLog,v 1.27 2010/12/02 10:51:37 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/tinker/ChangeLog,v 1.28 2010/12/02 22:15:37 jlec Exp $ |
31 |
+ |
32 |
+*tinker-6 (02 Dec 2010) |
33 |
+ |
34 |
+ 02 Dec 2010; Justin Lecher <jlec@g.o> +files/6-openmp.patch, |
35 |
+ +tinker-6.ebuild, -tinker-6.0.ebuild: |
36 |
+ Fixes for upstreams changes |
37 |
|
38 |
02 Dec 2010; Justin Lecher <jlec@g.o> tinker-5.1.09.ebuild, |
39 |
tinker-6.0.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-chemistry/tinker/tinker-6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/tinker/tinker-6.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/tinker/tinker-6.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: tinker-6.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/tinker/tinker-6.ebuild,v 1.1 2010/12/02 22:15:39 jlec Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
FORTRAN="gfortran ifc" |
56 |
|
57 |
inherit fortran flag-o-matic java-pkg-opt-2 toolchain-funcs |
58 |
|
59 |
DESCRIPTION="Molecular modeling package that includes force fields, such as AMBER and CHARMM" |
60 |
HOMEPAGE="http://dasher.wustl.edu/tinker/" |
61 |
SRC_URI="http://dasher.wustl.edu/${PN}/downloads/${P}.tar.gz" |
62 |
|
63 |
SLOT="0" |
64 |
LICENSE="Tinker" |
65 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
66 |
IUSE="examples" |
67 |
|
68 |
DEPEND=">=virtual/jdk-1.6" |
69 |
RDEPEND=" |
70 |
>=sci-libs/fftw-3.2.2-r1[fortran,threads] |
71 |
dev-libs/maloc |
72 |
!dev-util/diffuse |
73 |
>=virtual/jre-1.6" |
74 |
RESTRICT="mirror" |
75 |
|
76 |
S="${WORKDIR}"/${PN}${PV}/source |
77 |
|
78 |
pkg_setup() { |
79 |
fortran_pkg_setup |
80 |
java-pkg-opt-2_pkg_setup |
81 |
tc-has-openmp || die "Please use an openmp capable compiler like gcc[openmp]" |
82 |
} |
83 |
|
84 |
src_prepare() { |
85 |
sed 's:strip:true:g' -i ../make/Makefile |
86 |
[[ ${FORTRANC} == "ifc" ]] || epatch "${FILESDIR}"/${PV}-openmp.patch |
87 |
} |
88 |
|
89 |
src_compile() { |
90 |
local javalib= |
91 |
for i in $(java-config -g LDPATH | sed 's|:| |g'); do |
92 |
[[ -f ${i}/libjvm.so ]] && javalib=${i} |
93 |
done |
94 |
|
95 |
# use dummy routines in pmpb.f instead of apbs calls |
96 |
rm pmpb.c || die |
97 |
|
98 |
if [[ ${FORTRANC} == "gfortran" ]]; then |
99 |
append-flags -fopenmp |
100 |
_omplib="-lgomp" |
101 |
else |
102 |
append-flags -openmp |
103 |
_omplib="-liomp5" |
104 |
fi |
105 |
|
106 |
_fftwlib="$(pkg-config --libs fftw3 fftw3_threads)" |
107 |
|
108 |
emake \ |
109 |
-f ../make/Makefile \ |
110 |
F77="${FORTRANC}" \ |
111 |
CC="$(tc-getCC) -c" \ |
112 |
F77FLAGS=-c \ |
113 |
OPTFLAGS="${FFLAGS}" \ |
114 |
LINKFLAGS="${LDFLAGS} -Wl,-rpath ${javalib}" \ |
115 |
INCLUDEDIR="$(java-pkg_get-jni-cflags) -I${EPREFIX}/usr/include" \ |
116 |
LIBS="-lmaloc -L${javalib} -ljvm ${_omplib} ${_fftwlib}" \ |
117 |
all || die |
118 |
|
119 |
mkdir "${S}"/../bin || die |
120 |
|
121 |
emake \ |
122 |
-f ../make/Makefile \ |
123 |
BINDIR="${S}"/../bin \ |
124 |
rename || die |
125 |
} |
126 |
|
127 |
src_test() { |
128 |
cd "${WORKDIR}"/${PN}${PV}/test/ |
129 |
for test in *.run; do |
130 |
einfo "Testing ${test} ..." |
131 |
bash ${test} || die |
132 |
done |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
dobin "${WORKDIR}"/${PN}${PV}/perl/mdavg "${WORKDIR}"/${PN}${PV}/bin/* || die |
137 |
|
138 |
insinto /usr/share/${PN}/ |
139 |
doins -r "${WORKDIR}"/${PN}${PV}/params || die |
140 |
|
141 |
dodoc \ |
142 |
"${WORKDIR}"/${PN}${PV}/doc/{*.txt,announce/release-*,*.pdf,0README} || die |
143 |
|
144 |
if use examples; then |
145 |
insinto /usr/share/${P} |
146 |
doins -r "${WORKDIR}"/${PN}${PV}/example || die |
147 |
|
148 |
doins -r "${WORKDIR}"/${PN}${PV}/test || die |
149 |
fi |
150 |
|
151 |
} |