1 |
caleb 07/12/21 19:35:11 |
2 |
|
3 |
Modified: qt-phonon-4.4.0_rc1.ebuild |
4 |
Log: |
5 |
Make use of new eclass |
6 |
(Portage version: 2.1.3.16) |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: qt-phonon-4.4.0_rc1.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- qt-phonon-4.4.0_rc1.ebuild 20 Dec 2007 13:45:11 -0000 1.2 |
22 |
+++ qt-phonon-4.4.0_rc1.ebuild 21 Dec 2007 19:35:11 -0000 1.3 |
23 |
@@ -1,11 +1,11 @@ |
24 |
# Copyright 1999-2007 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild,v 1.2 2007/12/20 13:45:11 caleb Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.4.0_rc1.ebuild,v 1.3 2007/12/21 19:35:11 caleb Exp $ |
28 |
|
29 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
30 |
+inherit qt4-build |
31 |
|
32 |
SRCTYPE="preview-opensource-src" |
33 |
-DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." |
34 |
+DESCRIPTION="The Phonon module for the Qt toolkit." |
35 |
HOMEPAGE="http://www.trolltech.com/" |
36 |
|
37 |
MY_PV=${PV/_rc/-tp} |
38 |
@@ -19,35 +19,17 @@ |
39 |
|
40 |
IUSE="debug dbus" |
41 |
|
42 |
-RDEPEND="=x11-libs/qt-4.4.0_rc1 |
43 |
+RDEPEND="=x11-libs/qt-gui-4.4.0_rc1 |
44 |
media-libs/gstreamer |
45 |
media-libs/gst-plugins-base |
46 |
dbus? ( =x11-libs/qt-dbus-${PV} )" |
47 |
|
48 |
DEPEND="${RDEPEND}" |
49 |
|
50 |
-pkg_setup() { |
51 |
- QTBASEDIR=/usr/$(get_libdir)/qt4 |
52 |
- QTPREFIXDIR=/usr |
53 |
- QTBINDIR=/usr/bin |
54 |
- QTLIBDIR=/usr/$(get_libdir)/qt4 |
55 |
- QTPCDIR=/usr/$(get_libdir)/pkgconfig |
56 |
- QTDATADIR=/usr/share/qt4 |
57 |
- QTDOCDIR=/usr/share/doc/${PF} |
58 |
- QTHEADERDIR=/usr/include/qt4 |
59 |
- QTPLUGINDIR=${QTLIBDIR}/plugins |
60 |
- QTSYSCONFDIR=/etc/qt4 |
61 |
- QTTRANSDIR=${QTDATADIR}/translations |
62 |
- QTEXAMPLESDIR=${QTDATADIR}/examples |
63 |
- QTDEMOSDIR=${QTDATADIR}/demos |
64 |
-} |
65 |
- |
66 |
src_unpack() { |
67 |
|
68 |
unpack ${A} |
69 |
cd "${S}" |
70 |
- # epatch "${FILESDIR}"/qt-4.2.3-hppa-ldcw-fix.patch |
71 |
- |
72 |
epatch "${FILESDIR}"/abstractaudiooutput.cpp.diff |
73 |
|
74 |
# Don't let the user go too overboard with flags. If you really want to, uncomment |
75 |
@@ -60,65 +42,34 @@ |
76 |
append-flags -fno-stack-protector |
77 |
fi |
78 |
|
79 |
- # Override the creation of qmake and copy over the one from the system. This speeds up compilation time a lot. |
80 |
- epatch "${FILESDIR}"/configure.patch |
81 |
- cp ${QTBINDIR}/qmake "${S}"/bin/qmake |
82 |
+ skip_qmake_build_patch |
83 |
+ skip_project_generation_patch |
84 |
+ install_binaries_to_buildtree |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
- export PATH="${S}/bin:${PATH}" |
89 |
- export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
90 |
- |
91 |
- [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
92 |
- |
93 |
- # Disable visibility explicitly if gcc version isn't 4 |
94 |
- if [[ "$(gcc-major-version)" != "4" ]]; then |
95 |
- myconf="${myconf} -no-reduce-exports" |
96 |
- fi |
97 |
- |
98 |
- # Add a switch that will attempt to use recent binutils to reduce relocations. Should be harmless for other |
99 |
- # cases. From bug #178535 |
100 |
- myconf="${myconf} -fast -reduce-relocations -phonon" |
101 |
- use debug && myconf="${myconf} -debug -no-separate-debug-info" || myconf="${myconf} -release -no-separate-debug-info" |
102 |
+ local myconf=$(standard_configure_options) |
103 |
|
104 |
+ myconf="${myconf} -phonon" |
105 |
use dbus && myconf="${myconf} -qdbus" || myconf="${myconf} -no-qdbus" |
106 |
|
107 |
- myconf="${myconf} -nomake examples -nomake demos" |
108 |
- |
109 |
- myconf="-stl -verbose -largefile -confirm-license \ |
110 |
- -no-rpath \ |
111 |
- -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} -datadir ${QTDATADIR} \ |
112 |
- -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR} \ |
113 |
- -sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} \ |
114 |
- -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR} ${myconf}" |
115 |
- |
116 |
echo ./configure ${myconf} |
117 |
./configure ${myconf} || die |
118 |
|
119 |
- # Edit the .qmake.cache file |
120 |
- sed -i -e "s:QMAKE_MOC:\#QMAKE_MOC:g" "${S}"/.qmake.cache |
121 |
- sed -i -e "s:QMAKE_UIC:\#QMAKE_UIC:g" "${S}"/.qmake.cache |
122 |
- sed -i -e "s:QMAKE_RCC:\#QMAKE_RCC:g" "${S}"/.qmake.cache |
123 |
- |
124 |
- cd "${S}"/src/phonon |
125 |
- qmake "LIBS+=-L${QTLIBDIR}" && emake || die |
126 |
+ build_directories src/phonon src/plugins/phonon |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
- export PATH="${S}/bin:${PATH}" |
131 |
- export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
132 |
+ install_directories src/phonon src/plugins/phonon |
133 |
+ fix_library_files |
134 |
+} |
135 |
|
136 |
- cd "${S}"/src/phonon |
137 |
- emake INSTALL_ROOT="${D}" install || die |
138 |
+pkg_postinst() |
139 |
+{ |
140 |
+ qconfig_add_option phonon |
141 |
+} |
142 |
|
143 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.la |
144 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.prl |
145 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
146 |
- |
147 |
- # pkgconfig files refer to WORKDIR/bin as the moc and uic locations. Fix: |
148 |
- sed -i -e "s:${S}/bin:${QTBINDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
149 |
- |
150 |
- # Move .pc files into the pkgconfig directory |
151 |
- dodir ${QTPCDIR} |
152 |
- mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR} |
153 |
+pkg_postrm() |
154 |
+{ |
155 |
+ qconfig_remove_option phonon |
156 |
} |
157 |
|
158 |
|
159 |
|
160 |
-- |
161 |
gentoo-commits@g.o mailing list |