1 |
On 14:58 Wed 03 Oct , Caleb Tennis (caleb) wrote: |
2 |
> 1.1 x11-libs/qt/qt-4.3.2.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/qt-4.3.2.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/qt-4.3.2.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> case ${CHOST} in |
8 |
> *-freebsd*|*-dragonfly*) |
9 |
> spec="freebsd" ;; |
10 |
> *-openbsd*) |
11 |
> spec="openbsd" ;; |
12 |
> *-netbsd*) |
13 |
> spec="netbsd" ;; |
14 |
> *-darwin*) |
15 |
> spec="darwin" ;; |
16 |
> *-linux-*|*-linux) |
17 |
> spec="linux" ;; |
18 |
> *) |
19 |
> die "Unknown CHOST, no platform choosed." |
20 |
> esac |
21 |
> |
22 |
> CXX=$(tc-getCXX) |
23 |
> if [[ ${CXX/g++/} != ${CXX} ]]; then |
24 |
> spec="${spec}-g++" |
25 |
> elif [[ ${CXX/icpc/} != ${CXX} ]]; then |
26 |
> spec="${spec}-icc" |
27 |
> else |
28 |
> die "Unknown compiler ${CXX}." |
29 |
> fi |
30 |
|
31 |
Try being a little smarter with both CHOST and CXX -- only add an |
32 |
exception if the spec name isn't equal to the variable value. |
33 |
|
34 |
spec=$(echo ${CHOST} | cut -d- -f3) |
35 |
spec=${spec%%[0-9]*} |
36 |
spec=${spec}-$(tc-getCXX) |
37 |
|
38 |
For icc, you should just be able to use 'icc'; it's installed that for |
39 |
quite a while. That way you don't require any special cases here. |
40 |
|
41 |
> cd ${S} |
42 |
> epatch ${FILESDIR}/qt-4.2.3-hppa-ldcw-fix.patch |
43 |
> cd ${S}/mkspecs/$(qt_mkspecs_dir) |
44 |
> cd ${S}/mkspecs/common |
45 |
> cd ${S}/qmake |
46 |
> cd ${S} |
47 |
> make INSTALL_ROOT=${D} install_subtargets || die |
48 |
> make INSTALL_ROOT=${D} install_qmake || die |
49 |
> make INSTALL_ROOT=${D} install_mkspecs || die |
50 |
> make INSTALL_ROOT=${D} install_htmldocs || die |
51 |
> make INSTALL_ROOT=${D} install_translations || die |
52 |
> sed -i -e "s:${S}/lib:${QTLIBDIR}:g" ${D}/${QTLIBDIR}/*.la |
53 |
> sed -i -e "s:${S}/lib:${QTLIBDIR}:g" ${D}/${QTLIBDIR}/*.prl |
54 |
> sed -i -e "s:${S}/lib:${QTLIBDIR}:g" ${D}/${QTLIBDIR}/pkgconfig/*.pc |
55 |
> sed -i -e "s:${S}/bin:${QTBINDIR}:g" ${D}/${QTLIBDIR}/pkgconfig/*.pc |
56 |
> mv ${D}/${QTLIBDIR}/pkgconfig/*.pc ${D}/${QTPCDIR} |
57 |
> doins ${FILESDIR}/qt4/*.desktop |
58 |
|
59 |
Quote variables that can have spaces in them: D, S, T, WORKDIR, |
60 |
FILESDIR, DESTDIR, ROOT. |
61 |
|
62 |
If emake doesn't work, please add a comment to that effect. |
63 |
|
64 |
Thanks, |
65 |
Donnie |
66 |
-- |
67 |
gentoo-dev@g.o mailing list |