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: ChangeLog ifc-10.1.018.ebuild ifc-10.1.013.ebuild
Date: Tue, 02 Sep 2008 09:47:28
Message-Id: E1KaSTl-0007QX-Et@stork.gentoo.org
1 bicatali 08/09/02 09:47:17
2
3 Modified: ChangeLog
4 Added: ifc-10.1.018.ebuild
5 Removed: ifc-10.1.013.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64)
9
10 Revision Changes Path
11 1.48 dev-lang/ifc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.48&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.48&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?r1=1.47&r2=1.48
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v
20 retrieving revision 1.47
21 retrieving revision 1.48
22 diff -u -r1.47 -r1.48
23 --- ChangeLog 10 Jul 2008 16:49:54 -0000 1.47
24 +++ ChangeLog 2 Sep 2008 09:47:16 -0000 1.48
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/ifc
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.47 2008/07/10 16:49:54 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.48 2008/09/02 09:47:16 bicatali Exp $
30 +
31 +*ifc-10.1.018 (02 Sep 2008)
32 +
33 + 02 Sep 2008; Sébastien Fabbro <bicatali@g.o> -ifc-10.1.013.ebuild,
34 + +ifc-10.1.018.ebuild:
35 + Version bump
36
37 10 Jul 2008; Sébastien Fabbro <bicatali@g.o> ifc-10.1.017.ebuild:
38 Removed slotting, not ready.
39
40
41
42 1.1 dev-lang/ifc/ifc-10.1.018.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-10.1.018.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-10.1.018.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ifc-10.1.018.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ifc-10.1.018.ebuild,v 1.1 2008/09/02 09:47:16 bicatali Exp $
52
53 inherit rpm eutils check-reqs
54
55 PID=1208
56 PB=fc
57 PEXEC="ifort"
58 DESCRIPTION="Intel FORTRAN 77/95 optimized compiler for Linux"
59 HOMEPAGE="http://www.intel.com/software/products/compilers/flin/"
60
61 ###
62 # everything below common to ifc and icc
63 # no eclass: very likely to change for next versions
64 ###
65 PACKID="l_${PB}_p_${PV}"
66 KEYWORDS="~amd64 ~ia64 ~x86"
67 SRC_COM="http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKID}"
68 SRC_URI="amd64? ( ${SRC_COM}_intel64.tar.gz )
69 ia64? ( ${SRC_COM}_ia64.tar.gz )
70 x86? ( ${SRC_COM}_ia32.tar.gz )"
71
72 LICENSE="Intel-SDP"
73 SLOT="0"
74
75 RESTRICT="test strip mirror"
76 IUSE=""
77 DEPEND=""
78 RDEPEND="virtual/libstdc++
79 amd64? ( app-emulation/emul-linux-x86-compat )"
80
81 pkg_setup() {
82 # Check if we have enough RAM and free diskspace
83 CHECKREQS_MEMORY="512"
84 local disk_req="300"
85 use amd64 && disk_req="400"
86 use ia64 && disk_req="350"
87 CHECKREQS_DISK_BUILD=${disk_req}
88 check_reqs
89 }
90
91 src_unpack() {
92 unpack ${A}
93 mv "${WORKDIR}"/l_* "${S}"
94 cd "${S}"
95
96 local ext=
97 use amd64 && ext=e
98 INSTALL_DIR=/opt/intel/${PB}${ext}/${PV}
99
100 # debugger installed with dev-lang/idb
101 rm -f data/intel*idb*.rpm
102
103 for x in data/intel*.rpm; do
104 einfo "Extracting $(basename ${x})..."
105 rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
106 done
107
108 einfo "Fixing paths and tagging"
109 cd "${S}"/${INSTALL_DIR}/bin
110 sed -e "s|<INSTALLDIR>|${INSTALL_DIR}|g" \
111 -e 's|export -n IA32ROOT;||g' \
112 -i ${PEXEC} *sh \
113 || die "sed fixing shells and paths failed"
114
115 cd "${S}"/${INSTALL_DIR}/doc
116 sed -e "s|\<installpackageid\>|${PACKID}|g" \
117 -e "s|\<INSTALLTIMECOMBOPACKAGEID\>|${PACKID}|g" \
118 -i *support \
119 || die "sed support file failed"
120 chmod 644 *support
121 }
122
123 src_install() {
124 einfo "Copying files"
125 dodir ${INSTALL_DIR}
126 cp -pPR \
127 "${S}"/${INSTALL_DIR}/* \
128 "${D}"/${INSTALL_DIR}/ \
129 || die "Copying ${PN} failed"
130
131 local env_file=05${PN}
132 cat > ${env_file} <<-EOF
133 PATH=${INSTALL_DIR}/bin
134 ROOTPATH=${INSTALL_DIR}/bin
135 LDPATH=${INSTALL_DIR}/lib
136 MANPATH=${INSTALL_DIR}/man
137 EOF
138 doenvd ${env_file} || die "doenvd ${env_file} failed"
139 }
140
141 pkg_postinst () {
142 # remove left over from unpacking
143 rm -f "${ROOT}"/opt/intel/{intel_sdp_products.db,.*.log} \
144 || die "remove logs failed"
145
146 elog "Make sure you have recieved the a license for ${PN},"
147 elog "you cannot run ${PN} without a license file."
148 elog "To receive a non-commercial license, you need to register."
149 elog "Read the website for more information on this license:"
150 elog "${HOMEPAGE}"
151 elog "Then put the license file into ${ROOT}/opt/intel/licenses."
152 elog "\nTo use ${PN} issue first \n\tsource ${ROOT}/etc/profile"
153 elog "Debugger is installed with dev-lang/idb"
154 }