diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 13:16:56 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 13:16:56 +0000 |
commit | a41cdedb8955d9c192c6414286f24b2502f7f62c (patch) | |
tree | 18243bfc4b8ccac3c45cd9538e50102c03134eda /x11-libs/qt-dbus | |
parent | Changed /usr/bin/true to true (bug #202830) (diff) | |
download | gentoo-2-a41cdedb8955d9c192c6414286f24b2502f7f62c.tar.gz gentoo-2-a41cdedb8955d9c192c6414286f24b2502f7f62c.tar.bz2 gentoo-2-a41cdedb8955d9c192c6414286f24b2502f7f62c.zip |
Initial ebuild
(Portage version: 2.1.3.16)
Diffstat (limited to 'x11-libs/qt-dbus')
-rw-r--r-- | x11-libs/qt-dbus/ChangeLog | 10 | ||||
-rw-r--r-- | x11-libs/qt-dbus/Manifest | 16 | ||||
-rw-r--r-- | x11-libs/qt-dbus/files/digest-qt-dbus-4.4.0_rc1 | 3 | ||||
-rw-r--r-- | x11-libs/qt-dbus/metadata.xml | 5 | ||||
-rw-r--r-- | x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild | 119 |
5 files changed, 153 insertions, 0 deletions
diff --git a/x11-libs/qt-dbus/ChangeLog b/x11-libs/qt-dbus/ChangeLog new file mode 100644 index 000000000000..b5a83c76736b --- /dev/null +++ b/x11-libs/qt-dbus/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for x11-libs/qt-dbus +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-dbus/ChangeLog,v 1.1 2007/12/20 13:16:56 caleb Exp $ + +*qt-dbus-4.4.0_rc1 (20 Dec 2007) + + 20 Dec 2007; Caleb Tennis <caleb@gentoo.org> +metadata.xml, + +qt-dbus-4.4.0_rc1.ebuild: + Initial ebuild + diff --git a/x11-libs/qt-dbus/Manifest b/x11-libs/qt-dbus/Manifest new file mode 100644 index 000000000000..368271698d08 --- /dev/null +++ b/x11-libs/qt-dbus/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-dbus-4.4.0_rc1.ebuild 3681 RMD160 f4ed5eb565d11c0c8af786597b2793fc014fc4bc SHA1 fa374b4013b37bb556295763b5b5aac3e8893735 SHA256 b0401a07e13644faccd2f92aaab49549e52caed75739bee4e3334c2bd6b81708 +MD5 6bf861373280b10749901c096acdedc0 qt-dbus-4.4.0_rc1.ebuild 3681 +RMD160 f4ed5eb565d11c0c8af786597b2793fc014fc4bc qt-dbus-4.4.0_rc1.ebuild 3681 +SHA256 b0401a07e13644faccd2f92aaab49549e52caed75739bee4e3334c2bd6b81708 qt-dbus-4.4.0_rc1.ebuild 3681 +MISC ChangeLog 260 RMD160 96d04862f28919ba525305de7ad41204dc9f8247 SHA1 6fafd91ca8b8a7a982788a62a1b5c4549ece51ad SHA256 3a9bb3fb1e87557cd05084f69143316f47f9b859ca3be5619d23260408bca882 +MD5 0d7fa6912390e50064b5f3593298cdea ChangeLog 260 +RMD160 96d04862f28919ba525305de7ad41204dc9f8247 ChangeLog 260 +SHA256 3a9bb3fb1e87557cd05084f69143316f47f9b859ca3be5619d23260408bca882 ChangeLog 260 +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-dbus-4.4.0_rc1 325 +RMD160 b82b94eb49ac3711f85f127b3b2d336ebc7e2711 files/digest-qt-dbus-4.4.0_rc1 325 +SHA256 76d5f09c74420bfa920616103da36e3bab698f3932f4db60db3d499ff34abf0e files/digest-qt-dbus-4.4.0_rc1 325 diff --git a/x11-libs/qt-dbus/files/digest-qt-dbus-4.4.0_rc1 b/x11-libs/qt-dbus/files/digest-qt-dbus-4.4.0_rc1 new file mode 100644 index 000000000000..2cd44a5faf48 --- /dev/null +++ b/x11-libs/qt-dbus/files/digest-qt-dbus-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-dbus/metadata.xml b/x11-libs/qt-dbus/metadata.xml new file mode 100644 index 000000000000..01a5c2875e0d --- /dev/null +++ b/x11-libs/qt-dbus/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-dbus/qt-dbus-4.4.0_rc1.ebuild b/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild new file mode 100644 index 000000000000..efee1b354d2b --- /dev/null +++ b/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-dbus/qt-dbus-4.4.0_rc1.ebuild,v 1.1 2007/12/20 13:16:56 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" + +RDEPEND="=x11-libs/qt-4.4.0_rc1 + dbus? ( >=sys-apps/dbus-1.0.2 )" + +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 -qdbus" + use debug && myconf="${myconf} -debug -no-separate-debug-info" || myconf="${myconf} -release -no-separate-debug-info" + + 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/qdbus + qmake "LIBS+=-L${QTLIBDIR}" && emake || die + + cd "${S}"/tools/qdbus + 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/qdbus + emake INSTALL_ROOT="${D}" install || die + + cd "${S}"/tools/qdbus + 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} +} |