diff options
author | Ben de Groot <yngwin@gentoo.org> | 2009-03-27 18:11:07 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2009-03-27 18:11:07 +0000 |
commit | b22ec95dfd6131f658f030b817722cc12bb21d13 (patch) | |
tree | c90e56a043470d3ecf8d7ee6a2ffb5cf68690cca /x11-libs/qt-embedded | |
parent | Masking qt{,-embedded,-unixODBC}-3.3.8 pending removal (diff) | |
download | gentoo-2-b22ec95dfd6131f658f030b817722cc12bb21d13.tar.gz gentoo-2-b22ec95dfd6131f658f030b817722cc12bb21d13.tar.bz2 gentoo-2-b22ec95dfd6131f658f030b817722cc12bb21d13.zip |
Version bump to latest slot:3 version
(Portage version: 2.2_rc27/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/qt-embedded')
-rw-r--r-- | x11-libs/qt-embedded/ChangeLog | 9 | ||||
-rw-r--r-- | x11-libs/qt-embedded/qt-embedded-3.3.8b.ebuild | 146 |
2 files changed, 153 insertions, 2 deletions
diff --git a/x11-libs/qt-embedded/ChangeLog b/x11-libs/qt-embedded/ChangeLog index 719f2becf88a..4d6a7d531edf 100644 --- a/x11-libs/qt-embedded/ChangeLog +++ b/x11-libs/qt-embedded/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-libs/qt-embedded -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.25 2008/12/08 01:06:02 darkside Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.26 2009/03/27 18:11:07 yngwin Exp $ + +*qt-embedded-3.3.8b (27 Mar 2009) + + 27 Mar 2009; Ben de Groot <yngwin@gentoo.org> +qt-embedded-3.3.8b.ebuild: + Version bump to latest slot:3 version 08 Dec 2008; Jeremy Olexa <darkside@gentoo.org> qt-embedded-3.3.8.ebuild: revert ~amd64 kw until bug #164113 is fixed diff --git a/x11-libs/qt-embedded/qt-embedded-3.3.8b.ebuild b/x11-libs/qt-embedded/qt-embedded-3.3.8b.ebuild new file mode 100644 index 000000000000..ff3f30be2cc0 --- /dev/null +++ b/x11-libs/qt-embedded/qt-embedded-3.3.8b.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/qt-embedded-3.3.8b.ebuild,v 1.1 2009/03/27 18:11:07 yngwin Exp $ + +DESCRIPTION="Embedded Linux port of Qt" +HOMEPAGE="http://www.qtsoftware.com/products/platform/qt-for-embedded-linux" +SRC_URI="ftp://ftp.qtsoftware.com/qt/source/qt-embedded-free-${PV}.tar.gz" +LICENSE="|| ( QPL-1.0 GPL-2 )" + +SLOT="3" +KEYWORDS="~x86 ~ppc" +IUSE="cups debug doc firebird gif ipv6 mysql nis odbc opengl postgres sqlite" + +DEPEND="media-libs/libpng + media-libs/jpeg + media-libs/libmng + media-libs/lcms + sys-libs/zlib + cups? ( net-print/cups ) + firebird? ( dev-db/firebird ) + mysql? ( virtual/mysql ) + opengl? ( virtual/opengl virtual/glu ) + postgres? ( virtual/postgresql-server )" +RDEPEND="${DEPEND}" +PDEPEND="odbc? ( ~dev-db/qt-unixODBC-${PV} )" + +S="${WORKDIR}/qt-embedded-free-${PV}" + +QTBASE=/usr/qt/3-embedded + +pkg_setup() { + ewarn "Note: this ebuild provides a Qt/Embedded setup that is suitable for testing," + ewarn "but definitely not tailored for real embedded systems." + ewarn "I advise you select your own featureset (e.g. by editing this ebuild)" + ewarn "if building for such a system." + + export QTDIR="${S}" + + # values for 'PLATFORM' (host system) can be found in mkspecs/ + # values for 'XPLATFORM' (target system) can be found in mkspecs/qws/ + if use x86; then + export PLATFORM="linux-g++" + export XPLATFORM="qws/linux-x86-g++" + elif use amd64; then + export PLATFORM="linux-g++-64" + export XPLATFORM="qws/linux-x86-g++" + elif use ppc; then + export PLATFORM="linux-g++" + export XPLATFORM="qws/linux-generic-g++" + else + die "Unknown platform" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e 's:read acceptance:acceptance=yes:' configure + + # avoid using -rpath + find mkspecs/ -name qmake.conf -exec sed -i -e "s:QMAKE_RPATH.*:QMAKE_RPATH =:" {} \; +} + +src_compile() { + addwrite "${QTBASE}/etc/settings" + + use gif && myconf="${myconf} -qt-gif" || myconf="${myconf} -no-gif" + use cups && myconf="${myconf} -cups" || myconf="${myconf} -no-cups" + use nis && myconf="${myconf} -nis" || myconf="${myconf} -no-nis" + use ipv6 && myconf="${myconf} -ipv6" || myconf="${myconf} -no-ipv6" + use opengl || myconf="${myconf} -disable-opengl" + use mysql && myconf="${myconf} -plugin-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql" || myconf="${myconf} -no-sql-mysql" + use postgres && myconf="${myconf} -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf="${myconf} -no-sql-psql" + use firebird && myconf="${myconf} -plugin-sql-ibase" || myconf="${myconf} -no-sql-ibase" + use sqlite && myconf="${myconf} -plugin-sql-sqlite" || myconf="${myconf} -no-sql-sqlite" + use debug && myconf="${myconf} -debug" || myconf="${myconf} -release -no-g++-exceptions" + + ./configure ${myconf} -shared -depths 8,16,24,32 -system-zlib -thread -stl \ + -freetype -qvfb -plugin-imgfmt-{jpeg,mng,png} -system-lib{jpeg,mng,png} \ + -prefix ${QTBASE} -platform ${PLATFORM} -xplatform ${XPLATFORM} \ + -embedded -no-sql-odbc || die + + export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" + + cd "${S}" && emake symlinks src-qmake src-moc sub-src || die "make failed" + + # the designer is not compiled when using -embedded, but we need the uic + cd "${S}"/tools/designer/uic && emake || die "making uic failed" + + cd "${S}" && emake sub-tools || die "making tools failed" + + if use doc; then + cd "${S}" && emake sub-tutorial sub-examples || die "making examples failed" + fi +} + +src_install() { + INSTALL_ROOT="${D}" emake install + + # fix .prl files + find "${D}"/${QTBASE}/lib* -name "*.prl" -exec sed -i -e "s:${S}:${QTBASE}:g" {} \; + + # remove broken link + rm -f "${D}"/${QTBASE}/mkspecs/${PLATFORM}/${PLATFORM} + + # fonts + insinto ${QTBASE}/lib/fonts + doins "${S}"/lib/fonts/* + + # environment variables + cat <<EOF > ${T}/47qt-embedded3 +PATH=${QTBASE}/bin +ROOTPATH=${QTBASE}/bin +LDPATH=${QTBASE}/lib +EOF + doenvd ${T}/47qt-embedded3 + + # qmake cache file + sed -i -e "s:${S}:${QTBASE}:" .qmake.cache + insinto ${QTBASE} + doins .qmake.cache + + # documentation + if use doc; then + find examples tutorial -name Makefile -exec sed -i -e "s:${S}:${QTBASE}:g" {} \; + + cp -r "${S}"/tutorial "${D}"/${QTBASE} + cp -r "${S}"/examples "${D}"/${QTBASE} + fi + + # default target link (overriden by QMAKESPEC env var) + rm -f "${D}/${QTBASE}/mkspecs/default" + ln -s "${XPLATFORM}" "${D}/${QTBASE}/mkspecs/default" +} + +pkg_postinst() { + echo + einfo "If you want to compile and run a test application using" + einfo "QT/Embedded instead of standard Qt, you must properly" + einfo "set the QTDIR and QMAKESPEC variables, e.g.:" + einfo + einfo " export QTDIR=${QTBASE}" + einfo " export QMAKESPEC=${QTBASE}/mkspecs/${XPLATFORM}" + echo +} |