1 |
On 16:33 Thu 20 Dec , Caleb Tennis (caleb) wrote: |
2 |
> Revision Changes Path |
3 |
> 1.1 x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild |
4 |
> |
5 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild?rev=1.1&view=markup |
6 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild?rev=1.1&content-type=text/plain |
7 |
|
8 |
> RDEPEND="=x11-libs/qt-4.4.0_rc1 |
9 |
> ( virtual/opengl virtual/glu )" |
10 |
|
11 |
Did you autogenerate these ebuilds? It looks like the deps were pulled |
12 |
out of a conditional in the original qt. |
13 |
|
14 |
> pkg_setup() { |
15 |
> QTBASEDIR=/usr/$(get_libdir)/qt4 |
16 |
> QTPREFIXDIR=/usr |
17 |
> QTBINDIR=/usr/bin |
18 |
> QTLIBDIR=/usr/$(get_libdir)/qt4 |
19 |
> QTPCDIR=/usr/$(get_libdir)/pkgconfig |
20 |
> QTDATADIR=/usr/share/qt4 |
21 |
> QTDOCDIR=/usr/share/doc/${PF} |
22 |
> QTHEADERDIR=/usr/include/qt4 |
23 |
> QTPLUGINDIR=${QTLIBDIR}/plugins |
24 |
> QTSYSCONFDIR=/etc/qt4 |
25 |
> QTTRANSDIR=${QTDATADIR}/translations |
26 |
> QTEXAMPLESDIR=${QTDATADIR}/examples |
27 |
> QTDEMOSDIR=${QTDATADIR}/demos |
28 |
> } |
29 |
|
30 |
I've seen this in all of the split qt ebuilds. Should it go in the eclass? |
31 |
|
32 |
> src_compile() { |
33 |
> export PATH="${S}/bin:${PATH}" |
34 |
> export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
35 |
> |
36 |
> [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
37 |
> |
38 |
> # Disable visibility explicitly if gcc version isn't 4 |
39 |
> if [[ "$(gcc-major-version)" != "4" ]]; then |
40 |
|
41 |
To future-proof, might want to check for -ge 4 instead. |
42 |
|
43 |
> src_install() { |
44 |
> export PATH="${S}/bin:${PATH}" |
45 |
> export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
46 |
|
47 |
Why do you need to do this again? It should've been saved from the last |
48 |
phase. |
49 |
|
50 |
> pkg_postinst() |
51 |
> { |
52 |
> # Need to add opengl to QT_CONFIG line |
53 |
> sed -i -e "s:opengl ::g" ${QTDATADIR}/mkspecs/qconfig.pri |
54 |
> sed -i -e "s:QT_CONFIG += :QT_CONFIG += opengl :g" ${QTDATADIR}/mkspecs/qconfig.pri |
55 |
> } |
56 |
> |
57 |
> pkg_postrm() |
58 |
> { |
59 |
> # Need to add opengl to QT_CONFIG line |
60 |
> sed -i -e "s:opengl ::g" ${QTDATADIR}/mkspecs/qconfig.pri |
61 |
> } |
62 |
|
63 |
The postrm comment doesn't match the action. |
64 |
|
65 |
Thanks, |
66 |
Donnie |
67 |
-- |
68 |
gentoo-dev@g.o mailing list |