1 |
bicatali 09/01/19 22:58:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ipp-6.0.0.063.ebuild |
5 |
Removed: ipp-5.3.3.075.ebuild |
6 |
Log: |
7 |
Added binchecks restriction for quicker install (bug #255279) |
8 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 sci-libs/ipp/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/ipp/ChangeLog?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/ipp/ChangeLog?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/ipp/ChangeLog?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/ipp/ChangeLog,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- ChangeLog 2 Sep 2008 10:51:35 -0000 1.4 |
24 |
+++ ChangeLog 19 Jan 2009 22:58:10 -0000 1.5 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-libs/ipp |
27 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/ipp/ChangeLog,v 1.4 2008/09/02 10:51:35 bicatali Exp $ |
29 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ipp/ChangeLog,v 1.5 2009/01/19 22:58:10 bicatali Exp $ |
31 |
+ |
32 |
+*ipp-6.0.0.063 (19 Jan 2009) |
33 |
+ |
34 |
+ 19 Jan 2009; Sébastien Fabbro <bicatali@g.o> |
35 |
+ -ipp-5.3.3.075.ebuild, +ipp-6.0.0.063.ebuild: |
36 |
+ Added binchecks restriction for quicker install (bug #255279) |
37 |
|
38 |
*ipp-5.3.4.080 (02 Sep 2008) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-libs/ipp/ipp-6.0.0.063.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/ipp/ipp-6.0.0.063.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/ipp/ipp-6.0.0.063.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ipp-6.0.0.063.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ipp/ipp-6.0.0.063.ebuild,v 1.1 2009/01/19 22:58:10 bicatali Exp $ |
53 |
|
54 |
inherit check-reqs |
55 |
|
56 |
PID=1243 |
57 |
PB=${PN} |
58 |
DESCRIPTION="Intel(R) Integrated Performance Primitive library for multimedia and data processing" |
59 |
HOMEPAGE="http://developer.intel.com/software/products/ipp/" |
60 |
|
61 |
KEYWORDS="~amd64 ~x86 ~ia64" |
62 |
COM_URI="http://registrationcenter-download.intel.com/irc_nas/${PID}" |
63 |
SRC_URI="amd64? ( ${COM_URI}/l_${PB}_em64t_p_${PV}.tar.gz ) |
64 |
x86? ( ${COM_URI}/l_${PB}_ia32_p_${PV}.tar.gz ) |
65 |
ia64? ( ${COM_URI}/l_${PB}_itanium_p_${PV}.tar.gz )" |
66 |
|
67 |
SLOT=0 |
68 |
LICENSE="Intel-SDP" |
69 |
|
70 |
IUSE="" |
71 |
RESTRICT="strip mirror binchecks" |
72 |
|
73 |
INTEL_LIC_DIR=/opt/intel/licenses |
74 |
|
75 |
pkg_setup() { |
76 |
# Check the license |
77 |
if [[ -z ${IPP_LICENSE} ]]; then |
78 |
IPP_LICENSE="$(grep -ls PerfPrim ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" |
79 |
IPP_LICENSE=${IPP_LICENSE/${ROOT}/} |
80 |
fi |
81 |
if [[ -z ${IPP_LICENSE} ]]; then |
82 |
eerror "Did not find any valid ipp license." |
83 |
eerror "Register at ${HOMEPAGE} to receive a license" |
84 |
eerror "and place it in ${INTEL_LIC_DIR} or run:" |
85 |
eerror "export IPP_LICENSE=/my/license/file emerge ipp" |
86 |
die "license setup failed" |
87 |
fi |
88 |
|
89 |
local disq_req |
90 |
IPP_ARCH= |
91 |
if use amd64; then |
92 |
IPP_ARCH="em64t" |
93 |
disk_req="800" |
94 |
elif use x86; then |
95 |
IPP_ARCH="ia32" |
96 |
disk_req="600" |
97 |
elif use ia64; then |
98 |
IPP_ARCH="ia64" |
99 |
disk_req="700" |
100 |
fi |
101 |
einfo "IPP_LICENSE=${IPP_LICENSE}" |
102 |
einfo "IPP_ARCH=${IPP_ARCH}" |
103 |
|
104 |
# Check if we have enough RAM and free diskspace |
105 |
CHECKREQS_MEMORY="512" |
106 |
CHECKREQS_DISK_BUILD=${disk_req} |
107 |
check_reqs |
108 |
} |
109 |
|
110 |
src_unpack() { |
111 |
|
112 |
ewarn |
113 |
ewarn "Intel ${PN} requires at least 300Mb of disk space" |
114 |
ewarn "Make sure you have enough in ${PORTAGE_TMPDIR}, /tmp and in /opt" |
115 |
ewarn |
116 |
unpack ${A} |
117 |
|
118 |
cd l_${PB}_*_${PV}/install |
119 |
# need to make a file to install non-interactively. |
120 |
# to produce such a file, first do it interactively |
121 |
# tar xf l_*; ./install.sh --duplicate ipp.ini; |
122 |
# the file will be instman/ipp.ini |
123 |
# binary blob extractor installs crap in /opt/intel |
124 |
addwrite /opt/intel |
125 |
cp ${IPP_LICENSE} "${WORKDIR}"/ |
126 |
IPP_TMP_LICENSE="$(basename ${IPP_LICENSE})" |
127 |
cat > ipp.ini <<- EOF |
128 |
[IPP_${IPP_ARCH}] |
129 |
EULA_ACCEPT_REJECT=ACCEPT |
130 |
EOF |
131 |
einfo "Extracting ..." |
132 |
./install \ |
133 |
--silent ${PWD}/ipp.ini \ |
134 |
--nonrpm \ |
135 |
--licensepath "${WORKDIR}"/${IPP_TMP_LICENSE} \ |
136 |
--installpath "${S}" \ |
137 |
--log log.txt &> /dev/null |
138 |
|
139 |
# This check is arbitrary to say the least... |
140 |
# We used to look for a specific library (ie: libippmmx.so) but that |
141 |
# is unreliable as they are moving targets and may not be there on |
142 |
# the next release. ippEULA.txt is more likely to remain there at |
143 |
# the next release. |
144 |
if [[ -z $(find "${S}" -name ippEULA.txt) ]]; then |
145 |
eerror "could not find extracted files" |
146 |
eerror "see ${PWD}/log.txt to see why" |
147 |
die "extracting failed" |
148 |
fi |
149 |
|
150 |
rm -rf "${WORKDIR}"/l_* |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
einfo "Binary package, nothing to compile" |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
local instdir=/opt/intel/${PN}/${PV}/${IPP_ARCH} |
159 |
dodir ${instdir} |
160 |
|
161 |
# install license file |
162 |
if [[ ! -f ${INTEL_LIC_DIR}/${IPP_TMP_LICENSE} ]]; then |
163 |
insinto ${INTEL_LIC_DIR} |
164 |
doins "${WORKDIR}"/${IPP_TMP_LICENSE} |
165 |
fi |
166 |
|
167 |
# cp quicker than doins |
168 |
einfo "Copying all files" |
169 |
cp -pPR "${S}"/* "${D}"${instdir} || \ |
170 |
die "copying files failed" |
171 |
|
172 |
local env_file=36ipp |
173 |
echo "LDPATH=${instdir}/sharedlib" > ${env_file} |
174 |
doenvd ${env_file} || die "doenvd ${env_file} failed" |
175 |
} |