Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/ifc: ChangeLog ifc-11.1.056-r1.ebuild
Date: Thu, 22 Apr 2010 09:17:41
Message-Id: 20100422091736.1698728AEE@corvid.gentoo.org
1 jlec 10/04/22 09:17:35
2
3 Modified: ChangeLog
4 Added: ifc-11.1.056-r1.ebuild
5 Log:
6 Bumped to EAPI=3, keyworded ~amd64-linux ~x86-linux
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.56 dev-lang/ifc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.56&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?rev=1.56&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ChangeLog?r1=1.55&r2=1.56
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v
19 retrieving revision 1.55
20 retrieving revision 1.56
21 diff -u -r1.55 -r1.56
22 --- ChangeLog 18 Apr 2010 08:49:51 -0000 1.55
23 +++ ChangeLog 22 Apr 2010 09:17:35 -0000 1.56
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/ifc
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.55 2010/04/18 08:49:51 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ChangeLog,v 1.56 2010/04/22 09:17:35 jlec Exp $
29 +
30 +*ifc-11.1.056-r1 (22 Apr 2010)
31 +
32 + 22 Apr 2010; Justin Lecher <jlec@g.o> +ifc-11.1.056-r1.ebuild:
33 + Bumped to EAPI=3, keyworded ~amd64-linux ~x86-linux
34
35 18 Apr 2010; Justin Lecher <jlec@g.o> ifc-10.1.017.ebuild,
36 ifc-10.1.018.ebuild:
37
38
39
40 1.1 dev-lang/ifc/ifc-11.1.056-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-11.1.056-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ifc/ifc-11.1.056-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: ifc-11.1.056-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ifc/ifc-11.1.056-r1.ebuild,v 1.1 2010/04/22 09:17:35 jlec Exp $
50
51 EAPI="3"
52
53 inherit check-reqs rpm versionator
54
55 PB=cprof
56 PACKAGEID="l_${PB}_p_${PV}"
57 RELEASE="$(get_version_component_range 1-2)"
58 BUILD="$(get_version_component_range 3)"
59 PID=1582
60
61 DESCRIPTION="Intel FORTRAN compiler suite for Linux"
62 HOMEPAGE="http://www.intel.com/software/products/compilers/clin/"
63 SRC_COM="http://registrationcenter-download.intel.com/irc_nas/${PID}/${PACKAGEID}"
64 SRC_URI="amd64? ( ${SRC_COM}_intel64.tgz )
65 ia64? ( ${SRC_COM}_ia64.tgz )
66 x86? ( ${SRC_COM}_ia32.tgz )"
67
68 LICENSE="Intel-SDP"
69 SLOT="0"
70 IUSE="idb +mkl"
71 KEYWORDS="~amd64 ~ia64 ~x86 ~amd64-linux ~x86-linux"
72
73 RESTRICT="mirror"
74
75 DEPEND=""
76 RDEPEND="~virtual/libstdc++-3.3
77 amd64? ( app-emulation/emul-linux-x86-compat )"
78
79 DESTINATION="${EPRFIX#/}/opt/intel/Compiler/${RELEASE}/${BUILD}"
80
81 QA_TEXTRELS="${DESTINATION}/*"
82 QA_EXECSTACK="${DESTINATION}/*"
83 QA_PRESTRIPPED="${DESTINATION}/lib/intel64/ifort_libFNP.so"
84 QA_DT_HASH="${DESTINATION}/bin/*/.* ${DESTINATION}/lib/*/.* ${DESTINATION}/mkl/lib/*/.* ${DESTINATION}/mkl/benchmarks/mp_linpack/bin_intel/*/.*"
85
86 pkg_setup() {
87 CHECKREQS_MEMORY=1024
88 CHECKREQS_DISK_BUILD=1536
89 use idb && use mkl && CHECKREQS_DISK_BUILD=2048
90 check_reqs
91 IARCH=ia32
92 use amd64 && IARCH=intel64
93 use ia64 && IARCH=ia64
94 }
95
96 src_unpack() {
97 unpack ${A}
98 mv "${WORKDIR}"/l_* "${S}"
99 cd "${S}"
100 use idb || rm -f rpm/*idb*.rpm
101 use mkl || rm -f rpm/*mkl*.rpm
102 if has_version "~dev-lang/icc-${PV}"; then
103 rm -f rpm/*cprolib*.rpm
104 use idb && built_with_use dev-lang/icc idb && rm -f rpm/*idb*.rpm
105 use mkl && built_with_use dev-lang/icc mkl && rm -f rpm/*mkl*.rpm
106 fi
107 for x in rpm/intel*.rpm; do
108 rpm_unpack ./${x} || die "rpm_unpack ${x} failed"
109 done
110 }
111
112 src_prepare() {
113 # from the PURGE_UB804_FNP in pset/install_fc.sh
114 # rm -f "${DESTINATION}"/lib/*/*libFNP.so || die
115
116 # extract the tag function from the original install
117 sed -n \
118 -e "s|find \$DESTINATION|find ${DESTINATION}|g" \
119 -e "s|@\$DESTINATION|@${ROOT}${DESTINATION}|g" \
120 -e '/^UNTAG_CFG_FILES[[:space:]]*(/,/^}/p' \
121 pset/install_fc.sh > tag.sh || die
122 # fix world writeable files
123 [[ -d ${DESTINATION}/mkl ]] && chmod 644 \
124 ${DESTINATION}/mkl/tools/{environment,builder}/* \
125 ${DESTINATION}/mkl/tools/plugins/*/*
126 # remove for collision (bug #288038)
127 has_version "~dev-lang/icc-${PV}" && \
128 rm -f ${DESTINATION}/lib/*/locale/*/flexnet.cat
129 }
130
131 src_install() {
132 einfo "Tagging"
133 . ./tag.sh
134 UNTAG_CFG_FILES
135
136 keepdir /opt/intel/licenses
137 einfo "Copying files"
138 dodir "${DESTINATION}"
139 cp -pPR \
140 ${DESTINATION}/* \
141 "${ED}"/${DESTINATION}/ \
142 || die "Copying ${PN} failed"
143
144 local envf=05icfc
145 cat > ${envf} <<-EOF
146 PATH="${EROOT}${DESTINATION}/bin/${IARCH}"
147 ROOTPATH="${EROOT}${DESTINATION}/bin/${IARCH}"
148 LDPATH="${EROOT}${DESTINATION}/lib/${IARCH}"
149 LIBRARY_PATH="${EROOT}${DESTINATION}/lib/${IARCH}"
150 NLSPATH="${EROOT}${DESTINATION}/lib/locale/en_US/%N"
151 MANPATH="${EROOT}${DESTINATION}/man/en_US"
152 EOF
153 if [[ ! -e "${EROOT}etc/env.d/${envf}" ]] || \
154 [[ -n $(diff "${EROOT}"etc/env.d/${envf} ./${envf}) ]]; then
155 doenvd ${envf} || die "doenvd ${envf} failed"
156 fi
157 [[ -d ${DESTINATION}/idb ]] && \
158 dosym ../../common/com.intel.debugger.help_1.0.0 \
159 ${DESTINATION}/idb/gui/${IARCH}/plugins
160 }
161
162 pkg_postinst() {
163 elog "Make sure you have recieved the an Intel license."
164 elog "To receive a non-commercial license, you need to register at:"
165 elog "http://software.intel.com/en-us/articles/non-commercial-software-development/"
166 elog "Install the license file into ${EROOT}opt/intel/licenses."
167 }