diff options
author | Gregorio Guidi <greg_g@gentoo.org> | 2005-02-23 11:12:01 +0000 |
---|---|---|
committer | Gregorio Guidi <greg_g@gentoo.org> | 2005-02-23 11:12:01 +0000 |
commit | d6c02462451e4d2962d464c07e86120b12b43247 (patch) | |
tree | 3cf386192db22196c3ec1d196348f6151a7c5cd9 /x11-libs | |
parent | Initial import as per bug #82328 (diff) | |
download | gentoo-2-d6c02462451e4d2962d464c07e86120b12b43247.tar.gz gentoo-2-d6c02462451e4d2962d464c07e86120b12b43247.tar.bz2 gentoo-2-d6c02462451e4d2962d464c07e86120b12b43247.zip |
New version and big cleanup. See ChangeLog for details.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/qt-embedded/ChangeLog | 11 | ||||
-rw-r--r-- | x11-libs/qt-embedded/Manifest | 13 | ||||
-rw-r--r-- | x11-libs/qt-embedded/files/digest-qt-embedded-3.3.4 | 1 | ||||
-rw-r--r-- | x11-libs/qt-embedded/qt-embedded-3.3.4.ebuild | 147 |
4 files changed, 165 insertions, 7 deletions
diff --git a/x11-libs/qt-embedded/ChangeLog b/x11-libs/qt-embedded/ChangeLog index e40619ef25b5..6824e36bc372 100644 --- a/x11-libs/qt-embedded/ChangeLog +++ b/x11-libs/qt-embedded/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-libs/qt-embedded -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.14 2004/11/06 07:44:32 mr_bones_ Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-embedded/ChangeLog,v 1.15 2005/02/23 11:12:01 greg_g Exp $ + +*qt-embedded-3.3.4 (23 Feb 2005) + + 23 Feb 2005; Gregorio Guidi <greg_g@gentoo.org> +qt-embedded-3.3.4.ebuild: + New version and big cleanup. Added a lot of USE flags, fixed compile problems + (#66624, #78674). Solved the issues related to QTDIR and QMAKESPEC variables + conflicting with Qt (#71655) by not defining them anymore. 05 Nov 2004; Michael Sterrett <mr_bones_@gentoo.org> qt-embedded-3.0.5.ebuild, qt-embedded-3.1.2.ebuild, diff --git a/x11-libs/qt-embedded/Manifest b/x11-libs/qt-embedded/Manifest index 3fcc57d91adb..0a13a2fc3743 100644 --- a/x11-libs/qt-embedded/Manifest +++ b/x11-libs/qt-embedded/Manifest @@ -1,13 +1,16 @@ -MD5 499665dae4b2da8eb697e1b41b493712 ChangeLog 2176 MD5 512150b47a904b0240101e319856aab1 metadata.xml 156 -MD5 55bdea2caffae2cb269f25f45f29515e qt-embedded-3.0.5.ebuild 4318 MD5 616c7c1a19cb6ebc52d1fde9fc82e13e qt-embedded-3.1.2.ebuild 4394 MD5 93269b1aa9694496199c162b2b494803 qt-embedded-3.3.2.ebuild 4619 +MD5 55bdea2caffae2cb269f25f45f29515e qt-embedded-3.0.5.ebuild 4318 +MD5 499665dae4b2da8eb697e1b41b493712 ChangeLog 2176 +MD5 971b2240cf5708cdc2edb595c309853a qt-embedded-3.3.4.ebuild 3444 MD5 c901b061b2a25ed0c40b90be4344b3f2 qt-embedded-3.3.2-r1.ebuild 4776 +MD5 fc553746a0c77730e1785fc7fc0da47d files/digest-qt-embedded-3.3.2 77 +MD5 5f0cacec360762cefef2d5219aee443a files/50qt-embeddeddir3 25 MD5 b0719cf6e99f249585e84430fbbc2883 files/47qt-embedded3 118 MD5 1fcffbb83d84af4b0d6d074ec508db20 files/digest-qt-embedded-3.0.5 77 -MD5 81e8e195b18cba662da2c540ce2a1dbc files/digest-qt-embedded-3.1.2 77 MD5 097bb712d277f17864951d77b56ca46b files/tools-Makefile 2053 -MD5 5f0cacec360762cefef2d5219aee443a files/50qt-embeddeddir3 25 -MD5 fc553746a0c77730e1785fc7fc0da47d files/digest-qt-embedded-3.3.2 77 MD5 fc553746a0c77730e1785fc7fc0da47d files/digest-qt-embedded-3.3.2-r1 77 +MD5 e94af6ef3445834da6a0b225f5753f75 files/digest-qt-embedded-3.3.4 77 +MD5 81e8e195b18cba662da2c540ce2a1dbc files/digest-qt-embedded-3.1.2 77 +MD5 477e7a05c9c19535d27f96c2fe0d6940 files/qt-embedded-3.3.4-47qt-embedded3 90 diff --git a/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.4 b/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.4 new file mode 100644 index 000000000000..c359fee6a4e7 --- /dev/null +++ b/x11-libs/qt-embedded/files/digest-qt-embedded-3.3.4 @@ -0,0 +1 @@ +MD5 bb456d9fba432b29422ce5338c44eadc qt-embedded-free-3.3.4.tar.bz2 19714149 diff --git a/x11-libs/qt-embedded/qt-embedded-3.3.4.ebuild b/x11-libs/qt-embedded/qt-embedded-3.3.4.ebuild new file mode 100644 index 000000000000..f5344daa58f9 --- /dev/null +++ b/x11-libs/qt-embedded/qt-embedded-3.3.4.ebuild @@ -0,0 +1,147 @@ +# 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.4.ebuild,v 1.1 2005/02/23 11:12:01 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="~x86 ~amd64 ~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 ) + odbc? ( >=dev-db/unixODBC-2 ) + firebird? ( dev-db/firebird ) + mysql? ( dev-db/mysql ) + opengl? ( virtual/opengl virtual/glu ) + postgres? ( dev-db/postgresql )" + +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 odbc && myconf="${myconf} -plugin-sql-odbc" || myconf="${myconf} -no-sql-odbc" + 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 || 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 + 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 + 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 +} |