Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/platon: ChangeLog platon-20080725.ebuild platon-20070425.ebuild platon-20060717.ebuild
Date: Sat, 30 Aug 2008 11:27:36
Message-Id: E1KZOc5-0002Q0-La@stork.gentoo.org
1 markusle 08/08/30 11:27:29
2
3 Modified: ChangeLog
4 Added: platon-20080725.ebuild
5 Removed: platon-20070425.ebuild platon-20060717.ebuild
6 Log:
7 Version bump and removed old ebuilds (see bug #183828). Also added amd64 keyword.
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.26-SENTINEL-2 i686)
9
10 Revision Changes Path
11 1.14 sci-chemistry/platon/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/platon/ChangeLog?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/platon/ChangeLog?r1=1.13&r2=1.14
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- ChangeLog 7 Jul 2008 05:36:37 -0000 1.13
24 +++ ChangeLog 30 Aug 2008 11:27:28 -0000 1.14
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-chemistry/platon
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.13 2008/07/07 05:36:37 dberkholz Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/ChangeLog,v 1.14 2008/08/30 11:27:28 markusle Exp $
30 +
31 +*platon-20080725 (30 Aug 2008)
32 +
33 + 30 Aug 2008; Markus Dittrich <markusle@g.o>
34 + -platon-20060717.ebuild, -platon-20070425.ebuild, +platon-20080725.ebuild:
35 + Version bump and removed old ebuilds (see bug #183828). Also added
36 + amd64 keyword.
37
38 07 Jul 2008; Donnie Berkholz <dberkholz@g.o>;
39 platon-20080702.ebuild:
40
41
42
43 1.1 sci-chemistry/platon/platon-20080725.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/platon/platon-20080725.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/platon/platon-20080725.ebuild?rev=1.1&content-type=text/plain
47
48 Index: platon-20080725.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/platon/platon-20080725.ebuild,v 1.1 2008/08/30 11:27:28 markusle Exp $
53
54 inherit fortran toolchain-funcs flag-o-matic
55
56 FORTRAN="g77 gfortran"
57 DESCRIPTION="Versatile, SHELX-97 compatible, multipurpose crystallographic tool"
58 HOMEPAGE="http://www.cryst.chem.uu.nl/platon/"
59 SRC_URI="${P}.tar.gz"
60 RESTRICT="fetch"
61 LICENSE="free-noncomm"
62 SLOT="0"
63 KEYWORDS="~ppc ~x86 ~amd64"
64 IUSE=""
65 # Can't do libf2c dependent on whether <gcc-4 is selected for the build,
66 # so we must always require it
67 RDEPEND="x11-libs/libX11
68 dev-libs/libf2c"
69 DEPEND="${RDEPEND}"
70 S="${WORKDIR}/${PN}"
71
72 pkg_nofetch() {
73 einfo "Download ${A/-${PV}} from ftp://xraysoft.chem.uu.nl/pub/unix/,"
74 einfo "rename it to ${A} and place it"
75 einfo "in ${DISTDIR}."
76 einfo "If there is a digest mismatch, please file a bug"
77 einfo "at https://bugs.gentoo.org/ -- a version bump"
78 einfo "is probably required."
79 }
80
81 src_unpack() {
82 unpack ${A}
83 cd "${S}"
84 gunzip platon.f.Z xdrvr.c.gz
85 }
86
87 src_compile() {
88 local F2C
89 # Needs signal_ and system_, which g77 and libf2c provide,
90 # but gfortran does not
91 if [[ ${FORTRANC} != g77 ]]; then
92 F2C="-lf2c"
93 fi
94
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="${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
111
112 dosym platon /usr/bin/pluton
113 dosym platon /usr/bin/s
114 dosym platon /usr/bin/cifchk
115 dosym platon /usr/bin/helena
116 dosym platon /usr/bin/stidy
117
118 insinto /usr/lib/platon
119 doins check.def
120
121 echo "CHECKDEF=\"/usr/lib/platon/check.def\"" > "${T}"/env.d
122 newenvd "${T}"/env.d 50platon
123
124 dodoc README.* VALIDATION.DOC
125 }