summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-10-08 07:40:59 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-10-08 07:40:59 +0000
commit7ded0e617aeef056ddf48834d5da2ec7babe8c1a (patch)
treed5b462514db412fb7c3449239568dba4e405c12e /x11-libs
parentAdd qt-embedded-3.3.5 to the Qt mask. (diff)
downloadhistorical-7ded0e617aeef056ddf48834d5da2ec7babe8c1a.tar.gz
historical-7ded0e617aeef056ddf48834d5da2ec7babe8c1a.tar.bz2
historical-7ded0e617aeef056ddf48834d5da2ec7babe8c1a.zip
New version. Use the 'examples' flag as in x11-libs/qt.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/qt-embedded/ChangeLog7
-rw-r--r--x11-libs/qt-embedded/Manifest18
-rw-r--r--x11-libs/qt-embedded/files/digest-qt-embedded-3.3.51
-rw-r--r--x11-libs/qt-embedded/qt-embedded-3.3.5.ebuild153
4 files changed, 165 insertions, 14 deletions
diff --git a/x11-libs/qt-embedded/ChangeLog b/x11-libs/qt-embedded/ChangeLog
index aca164be2b7c..ab5220362408 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-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.17 2005/07/01 15:47:41 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.18 2005/10/08 07:40:59 greg_g Exp $
+
+*qt-embedded-3.3.5 (08 Oct 2005)
+
+ 08 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +qt-embedded-3.3.5.ebuild:
+ New version. Use the 'examples' flag as in x11-libs/qt.
*qt-embedded-3.3.4-r1 (01 Jul 2005)
diff --git a/x11-libs/qt-embedded/Manifest b/x11-libs/qt-embedded/Manifest
index fd902b7e41cf..185130754e69 100644
--- a/x11-libs/qt-embedded/Manifest
+++ b/x11-libs/qt-embedded/Manifest
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 be7ec97d02e86ffb3f73db5731806575 ChangeLog 3125
-MD5 e94af6ef3445834da6a0b225f5753f75 files/digest-qt-embedded-3.3.4 77
-MD5 e94af6ef3445834da6a0b225f5753f75 files/digest-qt-embedded-3.3.4-r1 77
MD5 512150b47a904b0240101e319856aab1 metadata.xml 156
+MD5 d48575a05ee5d001b8a70fa7021b64da qt-embedded-3.3.5.ebuild 4882
+MD5 d08b9cdf43f9733ebee01d5083180e6b ChangeLog 3293
MD5 b3ec2188177648aa41d5b57edab621dd qt-embedded-3.3.4-r1.ebuild 4754
MD5 f6de46122209ededf739e42a4f0e834f qt-embedded-3.3.4.ebuild 4808
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFC0CQ7I1lqEGTUzyQRAoXNAJ9zfxhn0j+9BOIfEKBhMX+dfbGVrACggPGe
-9xitmp/E1rU98loDqmPjevI=
-=bYZB
------END PGP SIGNATURE-----
+MD5 185f23f0859a87e71c55f87ec852d1cc files/digest-qt-embedded-3.3.5 77
+MD5 e94af6ef3445834da6a0b225f5753f75 files/digest-qt-embedded-3.3.4-r1 77
+MD5 e94af6ef3445834da6a0b225f5753f75 files/digest-qt-embedded-3.3.4 77
diff --git a/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.5 b/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.5
new file mode 100644
index 000000000000..7b0384fb1f7a
--- /dev/null
+++ b/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.5
@@ -0,0 +1 @@
+MD5 022d7a3c572b554f3c47b12cae71a8a4 qt-embedded-free-3.3.5.tar.bz2 20039624
diff --git a/x11-libs/qt-embedded/qt-embedded-3.3.5.ebuild b/x11-libs/qt-embedded/qt-embedded-3.3.5.ebuild
new file mode 100644
index 000000000000..0284aa484074
--- /dev/null
+++ b/x11-libs/qt-embedded/qt-embedded-3.3.5.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2005 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.5.ebuild,v 1.1 2005/10/08 07:40:59 greg_g Exp $
+
+DESCRIPTION="Embedded Linux port of Qt"
+HOMEPAGE="http://www.trolltech.com/products/embedded/"
+SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-embedded-free-${PV}.tar.bz2"
+LICENSE="|| ( QPL-1.0 GPL-2 )"
+
+SLOT="3"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cups debug doc examples 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? ( dev-db/mysql )
+ opengl? ( virtual/opengl virtual/glu )
+ postgres? ( dev-db/postgresql )"
+
+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
+
+ # Do not link with -rpath. See bug #75181.
+ find ${S}/mkspecs -name qmake.conf | xargs \
+ 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 examples; 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
+ insinto /etc/env.d
+ doins ${T}/47qt-embedded3
+
+ # qmake cache file
+ sed -i -e "s:${S}:${QTBASE}:" .qmake.cache
+ insinto ${QTBASE}
+ doins .qmake.cache
+
+ # documentation
+ if ! use doc; then
+ rm -rf ${D}/${QTBASE}/doc || die
+ fi
+
+ if use examples; then
+ find ${S}/examples ${S}/tutorial -name Makefile | \
+ xargs sed -i -e "s:${S}:${QTBASE}:g"
+
+ cp -r ${S}/tutorial ${D}/${QTBASE} || die
+ cp -r ${S}/examples ${D}/${QTBASE} || die
+ 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
+}