Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/platon: platon-20110126.ebuild ChangeLog platon-20101125.ebuild
Date: Wed, 26 Jan 2011 10:19:57
Message-Id: 20110126101947.C277F20054@flycatcher.gentoo.org
1 jlec 11/01/26 10:19:47
2
3 Modified: ChangeLog
4 Added: platon-20110126.ebuild
5 Removed: platon-20101125.ebuild
6 Log:
7 Version Bump, #352440; fetch sources, RESTRICT=mirror
8
9 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.24 sci-chemistry/platon/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.24&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.24&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?r1=1.23&r2=1.24
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v
21 retrieving revision 1.23
22 retrieving revision 1.24
23 diff -u -r1.23 -r1.24
24 --- ChangeLog 16 Dec 2010 13:50:12 -0000 1.23
25 +++ ChangeLog 26 Jan 2011 10:19:47 -0000 1.24
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.23 2010/12/16 13:50:12 jlec Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.24 2011/01/26 10:19:47 jlec Exp $
32 +
33 +*platon-20110126 (26 Jan 2011)
34 +
35 + 26 Jan 2011; Justin Lecher <jlec@g.o>
36 + +files/20110126-buffer-overflow.patch, -files/20101125-buffer-overflow.patch,
37 + -platon-20101125.ebuild, +platon-20110126.ebuild:
38 + Version Bump, #352440; fetch sources, RESTRICT=mirror
39
40 16 Dec 2010; Justin Lecher <jlec@g.o> platon-20101125.ebuild:
41 Removal of fortran.eclass, #348851
42
43
44
45 1.1 sci-chemistry/platon/platon-20110126.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20110126.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20110126.ebuild?rev=1.1&content-type=text/plain
49
50 Index: platon-20110126.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20110126.ebuild,v 1.1 2011/01/26 10:19:47 jlec Exp $
55
56 EAPI="3"
57
58 inherit eutils flag-o-matic multilib toolchain-funcs
59
60 DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool"
61 HOMEPAGE="http://www.cryst.chem.uu.nl/platon/"
62 SRC_URI="http://www.cryst.chem.uu.nl/xraysoft/unix/${PN}.tar.gz -> ${P}.tar.gz"
63
64 LICENSE="free-noncomm"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
67 IUSE="examples"
68
69 # Can't do libf2c dependent on whether <gcc-4 is selected for the build,
70 # so we must always require it
71 RDEPEND="x11-libs/libX11"
72 DEPEND="${RDEPEND}"
73
74 RESTRICT="mirror"
75
76 S="${WORKDIR}/${PN}"
77
78 pkg_nofetch() {
79 elog "If there is a digest mismatch, please file a bug"
80 elog "at https://bugs.gentoo.org/ -- a version bump"
81 elog "is probably required."
82 }
83
84 src_unpack() {
85 unpack ${A}
86 cd "${S}"
87 gunzip platon.f.gz xdrvr.c.gz || die
88 }
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${PV}-buffer-overflow.patch
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} xdrvr.c"
99 echo ${COMMAND}
100 ${COMMAND} || die "Compilation of xdrvr.c failed"
101 COMMAND="$(tc-getFC) -c ${FFLAGS:- -O2} -fno-second-underscore platon.f"
102 echo ${COMMAND}
103 ${COMMAND} || die "Compilation of platon.f failed"
104 COMMAND="$(tc-getFC) -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 }