1 |
caleb 07/12/20 16:33:03 |
2 |
|
3 |
Added: qt-opengl-4.4.0_rc1.ebuild metadata.xml ChangeLog |
4 |
Manifest |
5 |
Log: |
6 |
Initial ebuild |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild |
11 |
|
12 |
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 |
13 |
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 |
14 |
|
15 |
Index: qt-opengl-4.4.0_rc1.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2007 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-opengl/qt-opengl-4.4.0_rc1.ebuild,v 1.1 2007/12/20 16:33:02 caleb Exp $ |
20 |
|
21 |
inherit eutils flag-o-matic toolchain-funcs multilib |
22 |
|
23 |
SRCTYPE="preview-opensource-src" |
24 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." |
25 |
HOMEPAGE="http://www.trolltech.com/" |
26 |
|
27 |
MY_PV=${PV/_rc/-tp} |
28 |
|
29 |
SRC_URI="ftp://ftp.trolltech.com/pub/qt/source/qt-x11-${SRCTYPE}-${MY_PV}.tar.gz" |
30 |
S=${WORKDIR}/qt-x11-${SRCTYPE}-${MY_PV} |
31 |
|
32 |
LICENSE="|| ( QPL-1.0 GPL-2 )" |
33 |
SLOT="4" |
34 |
KEYWORDS="~x86" |
35 |
|
36 |
IUSE="debug" |
37 |
|
38 |
RDEPEND="=x11-libs/qt-4.4.0_rc1 |
39 |
( virtual/opengl virtual/glu )" |
40 |
|
41 |
DEPEND="${RDEPEND}" |
42 |
|
43 |
pkg_setup() { |
44 |
QTBASEDIR=/usr/$(get_libdir)/qt4 |
45 |
QTPREFIXDIR=/usr |
46 |
QTBINDIR=/usr/bin |
47 |
QTLIBDIR=/usr/$(get_libdir)/qt4 |
48 |
QTPCDIR=/usr/$(get_libdir)/pkgconfig |
49 |
QTDATADIR=/usr/share/qt4 |
50 |
QTDOCDIR=/usr/share/doc/${PF} |
51 |
QTHEADERDIR=/usr/include/qt4 |
52 |
QTPLUGINDIR=${QTLIBDIR}/plugins |
53 |
QTSYSCONFDIR=/etc/qt4 |
54 |
QTTRANSDIR=${QTDATADIR}/translations |
55 |
QTEXAMPLESDIR=${QTDATADIR}/examples |
56 |
QTDEMOSDIR=${QTDATADIR}/demos |
57 |
} |
58 |
|
59 |
src_unpack() { |
60 |
|
61 |
unpack ${A} |
62 |
cd "${S}" |
63 |
|
64 |
# Don't let the user go too overboard with flags. If you really want to, uncomment |
65 |
# out the line below and give 'er a whirl. |
66 |
strip-flags |
67 |
replace-flags -O3 -O2 |
68 |
|
69 |
if [[ $( gcc-fullversion ) == "3.4.6" && gcc-specs-ssp ]] ; then |
70 |
ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
71 |
append-flags -fno-stack-protector |
72 |
fi |
73 |
|
74 |
# Override the creation of qmake and copy over the one from the system. This speeds up compilation time a lot. |
75 |
epatch "${FILESDIR}"/configure.patch |
76 |
cp ${QTBINDIR}/qmake "${S}"/bin/qmake |
77 |
|
78 |
} |
79 |
|
80 |
src_compile() { |
81 |
export PATH="${S}/bin:${PATH}" |
82 |
export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
83 |
|
84 |
[ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
85 |
|
86 |
# Disable visibility explicitly if gcc version isn't 4 |
87 |
if [[ "$(gcc-major-version)" != "4" ]]; then |
88 |
myconf="${myconf} -no-reduce-exports" |
89 |
fi |
90 |
|
91 |
# Add a switch that will attempt to use recent binutils to reduce relocations. Should be harmless for other |
92 |
# cases. From bug #178535 |
93 |
myconf="${myconf} -fast -reduce-relocations -opengl" |
94 |
use debug && myconf="${myconf} -debug -no-separate-debug-info" || myconf="${myconf} -release -no-separate-debug-info" |
95 |
|
96 |
myconf="${myconf} -nomake examples -nomake demos" |
97 |
|
98 |
myconf="-stl -verbose -largefile -confirm-license \ |
99 |
-no-rpath \ |
100 |
-prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} -datadir ${QTDATADIR} \ |
101 |
-docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR} \ |
102 |
-sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} \ |
103 |
-examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR} ${myconf}" |
104 |
|
105 |
echo ./configure ${myconf} |
106 |
./configure ${myconf} || die |
107 |
|
108 |
# Edit the .qmake.cache file |
109 |
sed -i -e "s:QMAKE_MOC:\#QMAKE_MOC:g" "${S}"/.qmake.cache |
110 |
sed -i -e "s:QMAKE_UIC:\#QMAKE_UIC:g" "${S}"/.qmake.cache |
111 |
sed -i -e "s:QMAKE_RCC:\#QMAKE_RCC:g" "${S}"/.qmake.cache |
112 |
|
113 |
cd "${S}"/src/opengl |
114 |
qmake "LIBS+=-L${QTLIBDIR}" && emake || die |
115 |
|
116 |
# Currently commented out of the TT's Qt build |
117 |
# cd "${S}"/tools/designer/src/plugins/tools/view3d |
118 |
# qmake "LIBS+=-L${QTLIBDIR}" && emake || die |
119 |
} |
120 |
|
121 |
src_install() { |
122 |
export PATH="${S}/bin:${PATH}" |
123 |
export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
124 |
|
125 |
cd "${S}"/src/opengl |
126 |
emake INSTALL_ROOT="${D}" install || die |
127 |
|
128 |
# cd "${S}"/tools/designer/src/plugins/tools/view3d |
129 |
# emake INSTALL_ROOT="${D}" install || die |
130 |
|
131 |
sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.la |
132 |
sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.prl |
133 |
sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
134 |
|
135 |
# pkgconfig files refer to WORKDIR/bin as the moc and uic locations. Fix: |
136 |
sed -i -e "s:${S}/bin:${QTBINDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
137 |
|
138 |
# Move .pc files into the pkgconfig directory |
139 |
dodir ${QTPCDIR} |
140 |
mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR} |
141 |
} |
142 |
|
143 |
pkg_postinst() |
144 |
{ |
145 |
# Need to add opengl to QT_CONFIG line |
146 |
sed -i -e "s:opengl ::g" ${QTDATADIR}/mkspecs/qconfig.pri |
147 |
sed -i -e "s:QT_CONFIG += :QT_CONFIG += opengl :g" ${QTDATADIR}/mkspecs/qconfig.pri |
148 |
} |
149 |
|
150 |
pkg_postrm() |
151 |
{ |
152 |
# Need to add opengl to QT_CONFIG line |
153 |
sed -i -e "s:opengl ::g" ${QTDATADIR}/mkspecs/qconfig.pri |
154 |
} |
155 |
|
156 |
|
157 |
|
158 |
|
159 |
1.1 x11-libs/qt-opengl/metadata.xml |
160 |
|
161 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/metadata.xml?rev=1.1&view=markup |
162 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/metadata.xml?rev=1.1&content-type=text/plain |
163 |
|
164 |
Index: metadata.xml |
165 |
=================================================================== |
166 |
<?xml version="1.0" encoding="UTF-8"?> |
167 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
168 |
<pkgmetadata> |
169 |
<herd>qt</herd> |
170 |
</pkgmetadata> |
171 |
|
172 |
|
173 |
|
174 |
1.1 x11-libs/qt-opengl/ChangeLog |
175 |
|
176 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/ChangeLog?rev=1.1&view=markup |
177 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/ChangeLog?rev=1.1&content-type=text/plain |
178 |
|
179 |
Index: ChangeLog |
180 |
=================================================================== |
181 |
# ChangeLog for x11-libs/qt-opengl |
182 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
183 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-opengl/ChangeLog,v 1.1 2007/12/20 16:33:02 caleb Exp $ |
184 |
|
185 |
*qt-opengl-4.4.0_rc1 (20 Dec 2007) |
186 |
|
187 |
20 Dec 2007; Caleb Tennis <caleb@g.o> +files/configure.patch, |
188 |
+metadata.xml, +qt-opengl-4.4.0_rc1.ebuild: |
189 |
Initial import |
190 |
|
191 |
|
192 |
|
193 |
|
194 |
1.1 x11-libs/qt-opengl/Manifest |
195 |
|
196 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/Manifest?rev=1.1&view=markup |
197 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-opengl/Manifest?rev=1.1&content-type=text/plain |
198 |
|
199 |
Index: Manifest |
200 |
=================================================================== |
201 |
AUX configure.patch 321 RMD160 a2f720997a9ddcaef8e4d9d25f3a6120f065922b SHA1 aeb100048fa903673e84bc39f26b5e73739be7ed SHA256 ac571668b58304d1d7528b95c90e04da048a8f32e385e26a40255d854643c8dc |
202 |
MD5 73c74fe39317680d0f47543a69afde27 files/configure.patch 321 |
203 |
RMD160 a2f720997a9ddcaef8e4d9d25f3a6120f065922b files/configure.patch 321 |
204 |
SHA256 ac571668b58304d1d7528b95c90e04da048a8f32e385e26a40255d854643c8dc files/configure.patch 321 |
205 |
DIST qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz 56029137 RMD160 dd2dee9afaa9d16bdf5ca2bed82a3b9e2162bdd2 SHA1 e242dc542eb1424a51c47e7c80aaefd26668451c SHA256 1757416bda52c34ade3a49b5896bafe9e3cfe092d3180da32d520f94324c0b88 |
206 |
EBUILD qt-opengl-4.4.0_rc1.ebuild 4317 RMD160 c25253fd204f6ffcbc36581605f06e68d99bd1c0 SHA1 43b436c56eb96fb54ecf3a69ce0a53c5c6197b09 SHA256 9f8de9216ce286911777cd45bf0d97b07ab1392bc7e62d7fb032c6c7d6b062cb |
207 |
MD5 00deed952f0b0affd67d75cce4ec3ad2 qt-opengl-4.4.0_rc1.ebuild 4317 |
208 |
RMD160 c25253fd204f6ffcbc36581605f06e68d99bd1c0 qt-opengl-4.4.0_rc1.ebuild 4317 |
209 |
SHA256 9f8de9216ce286911777cd45bf0d97b07ab1392bc7e62d7fb032c6c7d6b062cb qt-opengl-4.4.0_rc1.ebuild 4317 |
210 |
MISC ChangeLog 290 RMD160 74637f35ccf3caca8637b87c1d6453e93bc04b12 SHA1 3264e8f68504598a255e37d42a9348fae87e49d1 SHA256 61e0e9b1250491856a4153d7a964815affb28f891d7d231996a628230d6d5907 |
211 |
MD5 19e9cb2ccdccfe6a5595202b7733c78d ChangeLog 290 |
212 |
RMD160 74637f35ccf3caca8637b87c1d6453e93bc04b12 ChangeLog 290 |
213 |
SHA256 61e0e9b1250491856a4153d7a964815affb28f891d7d231996a628230d6d5907 ChangeLog 290 |
214 |
MISC metadata.xml 156 RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc SHA1 e872bab086832a9db3f0fa9b1897c70577d3af21 SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448 |
215 |
MD5 512150b47a904b0240101e319856aab1 metadata.xml 156 |
216 |
RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc metadata.xml 156 |
217 |
SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448 metadata.xml 156 |
218 |
MD5 82e8a2d695216d8ed9d69b21cb2b06fc files/digest-qt-opengl-4.4.0_rc1 325 |
219 |
RMD160 b82b94eb49ac3711f85f127b3b2d336ebc7e2711 files/digest-qt-opengl-4.4.0_rc1 325 |
220 |
SHA256 76d5f09c74420bfa920616103da36e3bab698f3932f4db60db3d499ff34abf0e files/digest-qt-opengl-4.4.0_rc1 325 |
221 |
|
222 |
|
223 |
|
224 |
-- |
225 |
gentoo-commits@g.o mailing list |