1 |
jlec 10/06/24 12:28:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: platon-20100615.ebuild |
5 |
Removed: platon-20080725.ebuild platon-20080702.ebuild |
6 |
Log: |
7 |
Version Bump, #255619; reduced optimization to prevend bufferoverflows; #325065 |
8 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.17 sci-chemistry/platon/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.17&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.17&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?r1=1.16&r2=1.17 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v |
20 |
retrieving revision 1.16 |
21 |
retrieving revision 1.17 |
22 |
diff -u -r1.16 -r1.17 |
23 |
--- ChangeLog 7 Jul 2009 23:30:21 -0000 1.16 |
24 |
+++ ChangeLog 24 Jun 2010 12:28:41 -0000 1.17 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sci-chemistry/platon |
27 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.16 2009/07/07 23:30:21 flameeyes Exp $ |
29 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.17 2010/06/24 12:28:41 jlec Exp $ |
31 |
+ |
32 |
+*platon-20100615 (24 Jun 2010) |
33 |
+ |
34 |
+ 24 Jun 2010; Justin Lecher <jlec@g.o> -platon-20080702.ebuild, |
35 |
+ -platon-20080725.ebuild, +platon-20100615.ebuild: |
36 |
+ Version Bump, #255619; reduced optimization to prevend bufferoverflows; |
37 |
+ #325065 |
38 |
|
39 |
07 Jul 2009; Diego E. Pettenò <flameeyes@g.o> |
40 |
platon-20080725.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-chemistry/platon/platon-20100615.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20100615.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20100615.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: platon-20100615.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20100615.ebuild,v 1.1 2010/06/24 12:28:41 jlec Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit flag-o-matic fortran multilib toolchain-funcs |
58 |
|
59 |
FORTRAN="g77 gfortran" |
60 |
|
61 |
DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool" |
62 |
HOMEPAGE="http://www.cryst.chem.uu.nl/platon/" |
63 |
SRC_URI="${P}.tar.gz" |
64 |
|
65 |
LICENSE="free-noncomm" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
68 |
IUSE="examples" |
69 |
|
70 |
# Can't do libf2c dependent on whether <gcc-4 is selected for the build, |
71 |
# so we must always require it |
72 |
RDEPEND="x11-libs/libX11" |
73 |
DEPEND="${RDEPEND}" |
74 |
|
75 |
RESTRICT="fetch" |
76 |
|
77 |
S="${WORKDIR}/${PN}" |
78 |
|
79 |
pkg_nofetch() { |
80 |
elog "Download ${A/-${PV}} from ftp://xraysoft.chem.uu.nl/pub/unix/," |
81 |
elog "rename it to ${A} and place it" |
82 |
elog "in ${DISTDIR}." |
83 |
elog "If there is a digest mismatch, please file a bug" |
84 |
elog "at https://bugs.gentoo.org/ -- a version bump" |
85 |
elog "is probably required." |
86 |
} |
87 |
|
88 |
src_unpack() { |
89 |
unpack ${A} |
90 |
cd "${S}" |
91 |
gunzip platon.f.Z xdrvr.c.gz |
92 |
} |
93 |
|
94 |
src_compile() { |
95 |
# easy to ICE, at least on gcc 4.3 |
96 |
strip-flags |
97 |
|
98 |
COMMAND="$(tc-getCC) -c ${CFLAGS} -O0 xdrvr.c" |
99 |
echo ${COMMAND} |
100 |
${COMMAND} || die "Compilation of xdrvr.c failed" |
101 |
COMMAND="${FORTRANC} -c ${FFLAGS:- -O2} -fno-second-underscore platon.f" |
102 |
echo ${COMMAND} |
103 |
${COMMAND} || die "Compilation of platon.f failed" |
104 |
COMMAND="${FORTRANC} -o platon ${LDFLAGS} platon.o xdrvr.o -lX11 ${F2C}" |
105 |
echo ${COMMAND} |
106 |
${COMMAND} || die "Linking failed" |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
dobin platon || die |
111 |
|
112 |
for bin in pluton s cifchk helena stidy; do |
113 |
dosym platon /usr/bin/${bin} || die |
114 |
done |
115 |
|
116 |
insinto /usr/$(get_libdir)/platon |
117 |
doins check.def || die |
118 |
|
119 |
echo "CHECKDEF=\"${EPREFIX}/usr/$(get_libdir)/platon/check.def\"" > "${T}"/env.d |
120 |
newenvd "${T}"/env.d 50platon || die |
121 |
|
122 |
dodoc README.* || die |
123 |
|
124 |
if use examples; then |
125 |
insinto /usr/share/${PN} |
126 |
doins -r TEST || die |
127 |
fi |
128 |
} |