Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/ifc: metadata.xml ChangeLog ifc-10.0.026.ebuild
Date: Sun, 30 Sep 2007 10:43:36
Message-Id: E1Ibw8L-0000pK-D6@stork.gentoo.org
1 bicatali 07/09/30 10:34:45
2
3 Modified: metadata.xml ChangeLog
4 Added: ifc-10.0.026.ebuild
5 Log:
6 Version bump. Refactored the ebuild. Install debugger with USE flag and
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.4 dev-lang/ifc/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/metadata.xml?r1=1.3&r2=1.4
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/ifc/metadata.xml,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- metadata.xml 26 May 2005 22:50:39 -0000 1.3
23 +++ metadata.xml 30 Sep 2007 10:34:44 -0000 1.4
24 @@ -6,4 +6,14 @@
25 <email>kugelfang@g.o</email>
26 <name>Danny van Dyk</name>
27 </maintainer>
28 +<longdescription lang="en">
29 +The Intel® Fortran Compiler is a full features FORTRAN 77/95 and
30 +substantial FORTRAN 2003 compiler for Intel based architectures.
31 +It is here offered as a non-commercial (please see web site to see
32 +terms of qualifications).
33 +The compiler supports multi-threading, and processor support that includes automatic
34 +processor dispatch, vectorization, auto-parallelization, OpenMP, data
35 +prefetching, loop unrolling. The package come with a debugger and
36 +large documentation.
37 +</longdescription>
38 </pkgmetadata>
39
40
41
42 1.27 dev-lang/ifc/ChangeLog
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.27&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.27&content-type=text/plain
46 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?r1=1.26&r2=1.27
47
48 Index: ChangeLog
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v
51 retrieving revision 1.26
52 retrieving revision 1.27
53 diff -u -r1.26 -r1.27
54 --- ChangeLog 2 Jul 2007 14:44:01 -0000 1.26
55 +++ ChangeLog 30 Sep 2007 10:34:44 -0000 1.27
56 @@ -1,6 +1,14 @@
57 # ChangeLog for dev-lang/ifc
58 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
59 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.26 2007/07/02 14:44:01 peper Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.27 2007/09/30 10:34:44 bicatali Exp $
61 +
62 +*ifc-10.0.026 (30 Sep 2007)
63 +
64 + 30 Sep 2007; Sébastien Fabbro <bicatali@g.o> metadata.xml,
65 + +ifc-10.0.026.ebuild:
66 + Version bump. Refactored the ebuild. Install debugger with USE flag and
67 + extra deps. No more slotted until we have some utility to switch between
68 + versions.
69
70 02 Jul 2007; Piotr Jaroszyński <peper@g.o> ifc-9.1.040.ebuild:
71 (QA) RESTRICT clean up.
72
73
74
75 1.1 dev-lang/ifc/ifc-10.0.026.ebuild
76
77 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-10.0.026.ebuild?rev=1.1&view=markup
78 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-10.0.026.ebuild?rev=1.1&content-type=text/plain
79
80 Index: ifc-10.0.026.ebuild
81 ===================================================================
82 # Copyright 1999-2007 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ifc-10.0.026.ebuild,v 1.1 2007/09/30 10:34:44 bicatali Exp $
85
86 inherit rpm elisp-common
87
88 PID=787
89 PB=fc
90 PEXEC=ifort
91 DESCRIPTION="Intel FORTRAN 77/95 optimized compiler for Linux"
92 HOMEPAGE="http://www.intel.com/software/products/compilers/flin/"
93
94 ###
95 # everything below common to ifc and icc
96 # no eclass: very likely to change for next versions
97 ###
98 PACKAGEID="l_${PB}_c_${PV}"
99 KEYWORDS="~amd64 ~ia64 ~x86"
100 SRC_URI="amd64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_intel64.tar.gz )
101 ia64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia64.tar.gz )
102 x86? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}_ia32.tar.gz )"
103
104 LICENSE="Intel-SDP"
105 SLOT="0"
106
107 RESTRICT="test strip mirror"
108 IUSE="emacs debugger"
109
110 DEPEND=""
111 RDEPEND="debugger? (
112 x11-libs/libXt
113 x11-libs/libXft
114 dev-libs/libxml2
115 virtual/libstdc++ )"
116
117 if use x86; then
118 MY_P="${PACKAGEID}_ia32"
119 elif use amd64; then
120 MY_P="${PACKAGEID}_intel64"
121 elif use ia64; then
122 MY_P="${PACKAGEID}_ia64"
123 fi
124
125 S="${WORKDIR}/${MY_P}"
126
127 src_unpack() {
128 unpack ${A}
129 cd "${S}"
130
131 local ext=
132 use amd64 && ext=e
133 INSTALL_DIR=/opt/intel/${PB}${ext}/${PV}
134
135 if use debugger && [[ ! -x /opt/intel/idb${ext}/${PV}/bin/idb ]]; then
136 INSTALL_IDB_DIR=/opt/intel/idb${ext}/${PV}
137 else
138 use debugger && einfo "Debugger already installed"
139 rm -f data/intel*idb*.rpm
140 fi
141
142 for x in data/intel*.rpm; do
143 einfo "Extracting $(basename ${x})..."
144 rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
145 done
146
147 einfo "Fixing paths and tagging"
148 cd "${S}"/${INSTALL_DIR}/bin
149 sed -e "s|<INSTALLDIR>|${INSTALL_DIR}|g" \
150 -i ${PEXEC} ${PEXEC}*sh \
151 || die "sed fixing path failed"
152
153 cd "${S}"/${INSTALL_DIR}/doc
154 sed -e "s|\<installpackageid\>|${PACKAGEID}|g" \
155 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKAGEID}|g" \
156 -i *support \
157 || die "sed support file failed"
158 chmod 644 *support
159 }
160
161 src_install() {
162 einfo "Copying files"
163 dodir ${INSTALL_DIR}
164 cp -pPR \
165 "${S}"/${INSTALL_DIR}/* \
166 "${D}"/${INSTALL_DIR}/ \
167 || die "copying ${PN} failed"
168
169 local env_file=05${PN}
170 echo "PATH=${INSTALL_DIR}/bin" > ${env_file}
171 echo "ROOTPATH=${INSTALL_DIR}/bin" >> ${env_file}
172 echo "LDPATH=${INSTALL_DIR}/lib" >> ${env_file}
173 echo "MANPATH=${INSTALL_DIR}/man" >> ${env_file}
174 echo "INCLUDE=${INSTALL_DIR}/include" >> ${env_file}
175 echo "IA32ROOT=${INSTALL_DIR}" >> ${env_file}
176 doenvd ${env_file} || die "doenvd ${env_file} failed"
177
178 if [[ -n ${INSTALL_IDB_DIR} ]]; then
179 dodir ${INSTALL_IDB_DIR}
180 cp -pPR \
181 "${S}"/${INSTALL_IDB_DIR}/* \
182 "${D}"/${INSTALL_IDB_DIR}/ \
183 || die "copying debugger failed"
184 local idb_env_file=06idb
185 echo "PATH=${INSTALL_IDB_DIR}/bin" > ${idb_env_file}
186 echo "ROOTPATH=${INSTALL_IDB_DIR}/bin" >> ${idb_env_file}
187 echo "MANPATH=${INSTALL_IDB_DIR}/man" >> ${idb_env_file}
188 doenvd ${idb_env_file} || die "doenvd ${idb_env_file} failed"
189 use emacs && \
190 elisp-site-file-install "${S}"${INSTALL_IDB_DIR}/bin/*.el
191 fi
192 }
193
194 pkg_postinst () {
195 elog "Make sure you have recieved the restrictive"
196 elog "non-commercial license ${PN} by registering at:"
197 elog "http://www.intel.com/cd/software/products/asmo-na/eng/download/download/219771.htm"
198 elog "You cannot run ${PN} without this license file."
199 elog "Read the website for more information on this license."
200 elog "To use ${PN} now, issue first \n\tsource /etc/profile"
201 use emacs && elisp-site-regen
202 rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log}
203 }
204
205 pkg_postrm() {
206 use emacs && elisp-site-regen
207 }
208
209
210
211 --
212 gentoo-commits@g.o mailing list