1 |
jlec 10/11/25 19:10:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: platon-20101125.ebuild |
5 |
Removed: platon-20101113.ebuild |
6 |
Log: |
7 |
Version Bump, #346789 |
8 |
|
9 |
(Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.22 sci-chemistry/platon/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.22&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.22&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?r1=1.21&r2=1.22 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v |
21 |
retrieving revision 1.21 |
22 |
retrieving revision 1.22 |
23 |
diff -u -r1.21 -r1.22 |
24 |
--- ChangeLog 13 Nov 2010 12:42:17 -0000 1.21 |
25 |
+++ ChangeLog 25 Nov 2010 19:10:36 -0000 1.22 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sci-chemistry/platon |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.21 2010/11/13 12:42:17 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.22 2010/11/25 19:10:36 jlec Exp $ |
31 |
+ |
32 |
+*platon-20101125 (25 Nov 2010) |
33 |
+ |
34 |
+ 25 Nov 2010; Justin Lecher <jlec@g.o> |
35 |
+ +files/20101125-buffer-overflow.patch, -files/20101113-buffer-overflow.patch, |
36 |
+ -platon-20101113.ebuild, +platon-20101125.ebuild: |
37 |
+ Version Bump, #346789 |
38 |
|
39 |
*platon-20101113 (13 Nov 2010) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-chemistry/platon/platon-20101125.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20101125.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20101125.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: platon-20101125.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-20101125.ebuild,v 1.1 2010/11/25 19:10:36 jlec Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit eutils 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.gz xdrvr.c.gz || die |
92 |
} |
93 |
|
94 |
src_prepare() { |
95 |
epatch "${FILESDIR}"/${PV}-buffer-overflow.patch |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
# easy to ICE, at least on gcc 4.3 |
100 |
strip-flags |
101 |
|
102 |
COMMAND="$(tc-getCC) -c ${CFLAGS} xdrvr.c" |
103 |
echo ${COMMAND} |
104 |
${COMMAND} || die "Compilation of xdrvr.c failed" |
105 |
COMMAND="${FORTRANC} -c ${FFLAGS:- -O2} -fno-second-underscore platon.f" |
106 |
echo ${COMMAND} |
107 |
${COMMAND} || die "Compilation of platon.f failed" |
108 |
COMMAND="${FORTRANC} -o platon ${LDFLAGS} platon.o xdrvr.o -lX11 ${F2C}" |
109 |
echo ${COMMAND} |
110 |
${COMMAND} || die "Linking failed" |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
dobin platon || die |
115 |
|
116 |
for bin in pluton s cifchk helena stidy; do |
117 |
dosym platon /usr/bin/${bin} || die |
118 |
done |
119 |
|
120 |
insinto /usr/$(get_libdir)/platon |
121 |
doins check.def || die |
122 |
|
123 |
echo "CHECKDEF=\"${EPREFIX}/usr/$(get_libdir)/platon/check.def\"" > "${T}"/env.d |
124 |
newenvd "${T}"/env.d 50platon || die |
125 |
|
126 |
dodoc README.* || die |
127 |
|
128 |
if use examples; then |
129 |
insinto /usr/share/${PN} |
130 |
doins -r TEST || die |
131 |
fi |
132 |
} |