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: ChangeLog platon-20100629.ebuild platon-20100625.ebuild
Date: Tue, 29 Jun 2010 19:26:51
Message-Id: 20100629192645.A80322C621@corvid.gentoo.org
1 jlec 10/06/29 19:26:45
2
3 Modified: ChangeLog
4 Added: platon-20100629.ebuild
5 Removed: platon-20100625.ebuild
6 Log:
7 Version Bump
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.19 sci-chemistry/platon/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 27 Jun 2010 13:27:10 -0000 1.18
24 +++ ChangeLog 29 Jun 2010 19:26:45 -0000 1.19
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-chemistry/platon
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.18 2010/06/27 13:27:10 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.19 2010/06/29 19:26:45 jlec Exp $
30 +
31 +*platon-20100629 (29 Jun 2010)
32 +
33 + 29 Jun 2010; Justin Lecher <jlec@g.o>
34 + -files/20100625-buffer-overflow.patch, -platon-20100625.ebuild,
35 + +files/20100629-buffer-overflow.patch, +platon-20100629.ebuild:
36 + Version BUmp
37
38 *platon-20100625 (27 Jun 2010)
39
40
41
42
43 1.1 sci-chemistry/platon/platon-20100629.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20100629.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/platon/platon-20100629.ebuild?rev=1.1&content-type=text/plain
47
48 Index: platon-20100629.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/platon/platon-20100629.ebuild,v 1.1 2010/06/29 19:26:45 jlec Exp $
53
54 EAPI="3"
55
56 inherit eutils flag-o-matic fortran multilib toolchain-funcs
57
58 FORTRAN="g77 gfortran"
59
60 DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool"
61 HOMEPAGE="http://www.cryst.chem.uu.nl/platon/"
62 SRC_URI="${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="fetch"
75
76 S="${WORKDIR}/${PN}"
77
78 pkg_nofetch() {
79 elog "Download ${A/-${PV}} from ftp://xraysoft.chem.uu.nl/pub/unix/,"
80 elog "rename it to ${A} and place it"
81 elog "in ${DISTDIR}."
82 elog "If there is a digest mismatch, please file a bug"
83 elog "at https://bugs.gentoo.org/ -- a version bump"
84 elog "is probably required."
85 }
86
87 src_unpack() {
88 unpack ${A}
89 cd "${S}"
90 gunzip platon.f.Z xdrvr.c.gz || die
91 }
92
93 src_prepare() {
94 epatch "${FILESDIR}"/${PV}-buffer-overflow.patch
95 }
96
97 src_compile() {
98 # easy to ICE, at least on gcc 4.3
99 strip-flags
100
101 COMMAND="$(tc-getCC) -c ${CFLAGS} xdrvr.c"
102 echo ${COMMAND}
103 ${COMMAND} || die "Compilation of xdrvr.c failed"
104 COMMAND="${FORTRANC} -c ${FFLAGS:- -O2} -fno-second-underscore platon.f"
105 echo ${COMMAND}
106 ${COMMAND} || die "Compilation of platon.f failed"
107 COMMAND="${FORTRANC} -o platon ${LDFLAGS} platon.o xdrvr.o -lX11 ${F2C}"
108 echo ${COMMAND}
109 ${COMMAND} || die "Linking failed"
110 }
111
112 src_install() {
113 dobin platon || die
114
115 for bin in pluton s cifchk helena stidy; do
116 dosym platon /usr/bin/${bin} || die
117 done
118
119 insinto /usr/$(get_libdir)/platon
120 doins check.def || die
121
122 echo "CHECKDEF=\"${EPREFIX}/usr/$(get_libdir)/platon/check.def\"" > "${T}"/env.d
123 newenvd "${T}"/env.d 50platon || die
124
125 dodoc README.* || die
126
127 if use examples; then
128 insinto /usr/share/${PN}
129 doins -r TEST || die
130 fi
131 }