diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 13:01:45 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 13:01:45 +0000 |
commit | 05051409b25ba9862b558f701a00c284857c3e0b (patch) | |
tree | 6b5dc398dfac8b87e63eb99e11d590b1ab5669fa /x11-libs/qt-qt3support | |
parent | add qt3support (diff) | |
download | gentoo-2-05051409b25ba9862b558f701a00c284857c3e0b.tar.gz gentoo-2-05051409b25ba9862b558f701a00c284857c3e0b.tar.bz2 gentoo-2-05051409b25ba9862b558f701a00c284857c3e0b.zip |
Initial ebuild
(Portage version: 2.1.3.16)
Diffstat (limited to 'x11-libs/qt-qt3support')
-rw-r--r-- | x11-libs/qt-qt3support/ChangeLog | 10 | ||||
-rw-r--r-- | x11-libs/qt-qt3support/Manifest | 16 | ||||
-rw-r--r-- | x11-libs/qt-qt3support/files/digest-qt-qt3support-4.4.0_rc1 | 3 | ||||
-rw-r--r-- | x11-libs/qt-qt3support/metadata.xml | 5 | ||||
-rw-r--r-- | x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild | 126 |
5 files changed, 160 insertions, 0 deletions
diff --git a/x11-libs/qt-qt3support/ChangeLog b/x11-libs/qt-qt3support/ChangeLog new file mode 100644 index 000000000000..8bfa826aa758 --- /dev/null +++ b/x11-libs/qt-qt3support/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for x11-libs/qt-qt3support +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-qt3support/ChangeLog,v 1.1 2007/12/20 13:01:44 caleb Exp $ + +*qt-qt3support-4.4.0_rc1 (20 Dec 2007) + + 20 Dec 2007; Caleb Tennis <caleb@gentoo.org> +metadata.xml, + +qt-qt3support-4.4.0_rc1.ebuild: + Initial import + diff --git a/x11-libs/qt-qt3support/Manifest b/x11-libs/qt-qt3support/Manifest new file mode 100644 index 000000000000..416e0b4aa58b --- /dev/null +++ b/x11-libs/qt-qt3support/Manifest @@ -0,0 +1,16 @@ +DIST qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz 56029137 RMD160 dd2dee9afaa9d16bdf5ca2bed82a3b9e2162bdd2 SHA1 e242dc542eb1424a51c47e7c80aaefd26668451c SHA256 1757416bda52c34ade3a49b5896bafe9e3cfe092d3180da32d520f94324c0b88 +EBUILD qt-qt3support-4.4.0_rc1.ebuild 3961 RMD160 905d339640544d3d1542619cc731a1314ecc4561 SHA1 8aec19304486c6ae56f5c675818befff0ebb5a95 SHA256 b6116deaf57e65e115609491afc59d6539a0d7f12fceb38ba9ea6bd7f6fb2253 +MD5 853c6b751dcd55165f0083431f645dae qt-qt3support-4.4.0_rc1.ebuild 3961 +RMD160 905d339640544d3d1542619cc731a1314ecc4561 qt-qt3support-4.4.0_rc1.ebuild 3961 +SHA256 b6116deaf57e65e115609491afc59d6539a0d7f12fceb38ba9ea6bd7f6fb2253 qt-qt3support-4.4.0_rc1.ebuild 3961 +MISC ChangeLog 278 RMD160 41f216e0feaa87be635daca0a873ae65c0f67fb0 SHA1 7ec23d3bca7c653b5823b191e0b8d626dd4d5584 SHA256 4747945450c3437b23bfa0aed81616afcfef867aef8d5ceeeddbf90f7198402e +MD5 24b6f23a8f07405a279f3e16b7e11109 ChangeLog 278 +RMD160 41f216e0feaa87be635daca0a873ae65c0f67fb0 ChangeLog 278 +SHA256 4747945450c3437b23bfa0aed81616afcfef867aef8d5ceeeddbf90f7198402e ChangeLog 278 +MISC metadata.xml 156 RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc SHA1 e872bab086832a9db3f0fa9b1897c70577d3af21 SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448 +MD5 512150b47a904b0240101e319856aab1 metadata.xml 156 +RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc metadata.xml 156 +SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448 metadata.xml 156 +MD5 82e8a2d695216d8ed9d69b21cb2b06fc files/digest-qt-qt3support-4.4.0_rc1 325 +RMD160 b82b94eb49ac3711f85f127b3b2d336ebc7e2711 files/digest-qt-qt3support-4.4.0_rc1 325 +SHA256 76d5f09c74420bfa920616103da36e3bab698f3932f4db60db3d499ff34abf0e files/digest-qt-qt3support-4.4.0_rc1 325 diff --git a/x11-libs/qt-qt3support/files/digest-qt-qt3support-4.4.0_rc1 b/x11-libs/qt-qt3support/files/digest-qt-qt3support-4.4.0_rc1 new file mode 100644 index 000000000000..2cd44a5faf48 --- /dev/null +++ b/x11-libs/qt-qt3support/files/digest-qt-qt3support-4.4.0_rc1 @@ -0,0 +1,3 @@ +MD5 1c5a5533f885f331600951abd71bd00c qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz 56029137 +RMD160 dd2dee9afaa9d16bdf5ca2bed82a3b9e2162bdd2 qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz 56029137 +SHA256 1757416bda52c34ade3a49b5896bafe9e3cfe092d3180da32d520f94324c0b88 qt-x11-preview-opensource-src-4.4.0-tp1.tar.gz 56029137 diff --git a/x11-libs/qt-qt3support/metadata.xml b/x11-libs/qt-qt3support/metadata.xml new file mode 100644 index 000000000000..01a5c2875e0d --- /dev/null +++ b/x11-libs/qt-qt3support/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>qt</herd> +</pkgmetadata> diff --git a/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild b/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild new file mode 100644 index 000000000000..213727162b17 --- /dev/null +++ b/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild,v 1.1 2007/12/20 13:01:44 caleb Exp $ + +inherit eutils flag-o-matic toolchain-funcs multilib + +SRCTYPE="preview-opensource-src" +DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." +HOMEPAGE="http://www.trolltech.com/" + +MY_PV=${PV/_rc/-tp} + +SRC_URI="ftp://ftp.trolltech.com/pub/qt/source/qt-x11-${SRCTYPE}-${MY_PV}.tar.gz" +S=${WORKDIR}/qt-x11-${SRCTYPE}-${MY_PV} + +LICENSE="|| ( QPL-1.0 GPL-2 )" +SLOT="4" +KEYWORDS="~x86" + +IUSE="debug accessibility" + +RDEPEND="=x11-libs/qt-4.4.0_rc1" + +DEPEND="${RDEPEND}" + +pkg_setup() { + QTBASEDIR=/usr/$(get_libdir)/qt4 + QTPREFIXDIR=/usr + QTBINDIR=/usr/bin + QTLIBDIR=/usr/$(get_libdir)/qt4 + QTPCDIR=/usr/$(get_libdir)/pkgconfig + QTDATADIR=/usr/share/qt4 + QTDOCDIR=/usr/share/doc/${PF} + QTHEADERDIR=/usr/include/qt4 + QTPLUGINDIR=${QTLIBDIR}/plugins + QTSYSCONFDIR=/etc/qt4 + QTTRANSDIR=${QTDATADIR}/translations + QTEXAMPLESDIR=${QTDATADIR}/examples + QTDEMOSDIR=${QTDATADIR}/demos +} + +src_unpack() { + + unpack ${A} + cd "${S}" + + # Don't let the user go too overboard with flags. If you really want to, uncomment + # out the line below and give 'er a whirl. + strip-flags + replace-flags -O3 -O2 + + if [[ $( gcc-fullversion ) == "3.4.6" && gcc-specs-ssp ]] ; then + ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" + append-flags -fno-stack-protector + fi + +} + +src_compile() { + export PATH="${S}/bin:${PATH}" + export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" + + [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" + + # Disable visibility explicitly if gcc version isn't 4 + if [[ "$(gcc-major-version)" != "4" ]]; then + myconf="${myconf} -no-reduce-exports" + fi + + # Add a switch that will attempt to use recent binutils to reduce relocations. Should be harmless for other + # cases. From bug #178535 + myconf="${myconf} -fast -reduce-relocations -qt3support" + use debug && myconf="${myconf} -debug -no-separate-debug-info" || myconf="${myconf} -release -no-separate-debug-info" + use accessibility && myconf="${myconf} -accessibility" || myconf="${myconf} -no-accessibility" + + myconf="${myconf} -nomake examples -nomake demos" + + myconf="-stl -verbose -largefile -confirm-license \ + -no-rpath \ + -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} -datadir ${QTDATADIR} \ + -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR} \ + -sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} \ + -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR} ${myconf}" + + echo ./configure ${myconf} + ./configure ${myconf} || die + + # Edit the .qmake.cache file + sed -i -e "s:QMAKE_MOC:\#QMAKE_MOC:g" "${S}"/.qmake.cache + sed -i -e "s:QMAKE_UIC:\#QMAKE_UIC:g" "${S}"/.qmake.cache + sed -i -e "s:QMAKE_RCC:\#QMAKE_RCC:g" "${S}"/.qmake.cache + + cd "${S}"/src/qt3support + qmake "LIBS+=-L${QTLIBDIR}" && emake || die + + cd "${S}"/tools/designer/src/plugins/widgets + qmake "LIBS+=-L${QTLIBDIR}" && emake || die + + cd "${S}"/tools/qtconfig + qmake "LIBS+=-L${QTLIBDIR}" && emake || die +} + +src_install() { + export PATH="${S}/bin:${PATH}" + export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" + + cd "${S}"/src/qt3support + emake INSTALL_ROOT="${D}" install || die + + cd "${S}"/tools/designer/src/plugins/widgets + emake INSTALL_ROOT="${D}" install || die + + cd "${S}"/tools/qtconfig + emake INSTALL_ROOT="${D}" install || die + + sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.la + sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.prl + sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc + + # pkgconfig files refer to WORKDIR/bin as the moc and uic locations. Fix: + sed -i -e "s:${S}/bin:${QTBINDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc + + # Move .pc files into the pkgconfig directory + dodir ${QTPCDIR} + mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR} +} |