public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ingmar Vanhassel (ingmar)" <ingmar@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: qt4-build.eclass
Date: Thu, 10 Apr 2008 14:23:45 +0000	[thread overview]
Message-ID: <E1Jjxgn-0006GH-Q9@stork.gentoo.org> (raw)

ingmar      08/04/10 14:23:45

  Modified:             qt4-build.eclass
  Log:
  Updates for Qt-4.4.0_rc1.

Revision  Changes    Path
1.11                 eclass/qt4-build.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?r1=1.10&r2=1.11

Index: qt4-build.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- qt4-build.eclass	11 Mar 2008 16:39:43 -0000	1.10
+++ qt4-build.eclass	10 Apr 2008 14:23:45 -0000	1.11
@@ -1,6 +1,6 @@
 # Copyright 2007-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.10 2008/03/11 16:39:43 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.11 2008/04/10 14:23:45 ingmar Exp $
 
 # @ECLASS: qt4-build.eclass
 # @MAINTAINER:
@@ -18,14 +18,27 @@
 		SRCTYPE="${SRCTYPE:-opensource-src}"
 		MY_PV="${PV/_beta/-beta}"
 		;;
+	4.4.0_rc*)
+		SRCTYPE="${SRCTYPE:-opensource-src}"
+		MY_PV="${PV/_rc/-rc}"
+		;;
 	*)
 		SRCTYPE="${SRCTYPE:-opensource-src}"
 		MY_PV="${PV}"
 		;;
 esac
-S=${WORKDIR}/qt-x11-${SRCTYPE}-${MY_PV}
+MY_P=qt-x11-${SRCTYPE}-${MY_PV}
+S=${WORKDIR}/${MY_P}
 
-SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${MY_PV}.tar.bz2"
+SRC_URI="ftp://ftp.trolltech.com/qt/source/${MY_P}.tar.bz2"
+
+case "${PV}" in
+	4.4.0_rc*)
+		SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2"
+		;;
+	*)
+		;;
+esac
 
 qt4-build_pkg_setup() {
 	# Check USE requirements
@@ -52,12 +65,29 @@
 	LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
 }
 
-qt4-build_src_unpack() {
-	# TODO: partial unpacks, cfr split KDE ebuilds.
-	unpack ${A}
-	cd "${S}"
+qt4_unpack() {
+	local target targets
+	for target in configure LICENSE.{GPL2,GPL3,QPL} projects.pro \
+		src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \
+		${QT4_EXTRACT_DIRECTORIES} ${QT4_TARGET_DIRECTORIES}; do
+			targets="${targets} ${MY_P}/${target}"
+	done
+
+	echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
+	tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
+
+	case "${PV}" in
+		4.4.0_rc*)
+			echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2
+			tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2
+			;;
+	esac
+}
 
+qt4-build_src_unpack() {
+	qt4_unpack
 	if [[ ${PN} != qt-core ]]; then
+		cd "${S}"
 		skip_qmake_build_patch
 		skip_project_generation_patch
 		symlink_binaries_to_buildtree
@@ -122,6 +152,17 @@
 		myconf="${myconf} -release -no-separate-debug-info"
 	fi
 
+	# ARCH is set on Gentoo. QT now falls back to generic on an unsupported
+	# ${ARCH}. Therefore we convert it to supported values.
+	case "${ARCH}" in
+		amd64) myconf="${myconf} -arch x86_64" ;;
+		ppc|ppc64) myconf="${myconf} -arch powerpc" ;;
+		x86) myconf="${myconf} -arch i386" ;;
+		alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch ${ARCH}" ;;
+		hppa|sh) myconf="${myconf} -arch generic" ;;
+		*) die "${ARCH} is unsupported by this eclass. Please file a bug." ;;
+	esac
+
 	myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath
 		-prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
 		-datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}



-- 
gentoo-commits@lists.gentoo.org mailing list



             reply	other threads:[~2008-04-10 14:23 UTC|newest]

Thread overview: 98+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 14:23 Ingmar Vanhassel (ingmar) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-17  1:31 [gentoo-commits] gentoo-x86 commit in eclass: qt4-build.eclass Davide Pesavento (pesa)
2014-08-29 23:56 Davide Pesavento (pesa)
2012-02-28 18:53 Davide Pesavento (pesa)
2012-01-01 18:12 Davide Pesavento (pesa)
2011-12-27 16:04 Davide Pesavento (pesa)
2011-12-26 11:59 Davide Pesavento (pesa)
2011-12-21 23:38 Davide Pesavento (pesa)
2011-11-02 18:01 Jeroen Roovers (jer)
2011-10-30 14:21 Markos Chandras (hwoarang)
2011-10-16  9:59 Markos Chandras (hwoarang)
2011-08-13 11:31 Markos Chandras (hwoarang)
2011-03-10 23:45 Alex Alexander (wired)
2011-03-03 21:39 Alex Alexander (wired)
2011-01-20 23:08 Dror Levin (spatz)
2010-11-13 20:50 Alex Alexander (wired)
2010-11-13 20:30 Alex Alexander (wired)
2010-11-10 13:45 Alex Alexander (wired)
2010-10-13 19:33 Raul Porcel (armin76)
2010-09-05  9:25 Markos Chandras (hwoarang)
2010-08-14 18:09 Markos Chandras (hwoarang)
2010-08-13 16:36 Markos Chandras (hwoarang)
2010-08-08 11:34 Raul Porcel (armin76)
2010-07-11 10:32 Markos Chandras (hwoarang)
2010-07-08 15:45 Markos Chandras (hwoarang)
2010-07-03 15:49 Dominik Kapusta (ayoy)
2010-07-03  9:10 Markos Chandras (hwoarang)
2010-05-30 10:31 Dror Levin (spatz)
2010-05-27 21:27 Dror Levin (spatz)
2010-05-26 15:17 Markos Chandras (hwoarang)
2010-05-25 13:39 Dror Levin (spatz)
2010-05-24 22:03 Dror Levin (spatz)
2010-05-24 14:27 Alex Alexander (wired)
2010-05-22 19:23 Alex Alexander (wired)
2010-05-22 15:22 Alex Alexander (wired)
2010-03-24 14:36 Ben de Groot (yngwin)
2010-02-17 23:32 Alex Alexander (wired)
2010-02-15 16:34 Dror Levin (spatz)
2010-02-10 20:34 Ben de Groot (yngwin)
2010-01-21  5:57 Mike Frysinger (vapier)
2010-01-17 20:28 Jonathan Callen (abcd)
2010-01-13 19:35 Jonathan Callen (abcd)
2009-12-25 15:27 Jonathan Callen (abcd)
2009-12-25  8:19 Fabian Groffen (grobian)
2009-12-24 21:40 Jonathan Callen (abcd)
2009-12-22 17:04 Jonathan Callen (abcd)
2009-12-22 16:04 Jonathan Callen (abcd)
2009-12-06  9:34 Markos Chandras (hwoarang)
2009-11-19 12:01 Ioannis Aslanidis (deathwing00)
2009-11-18 22:12 Alex Alexander (wired)
2009-11-09 19:35 Dominik Kapusta (ayoy)
2009-11-09 19:30 Dominik Kapusta (ayoy)
2009-10-16 15:02 Alex Alexander (wired)
2009-10-03 19:29 Dominik Kapusta (ayoy)
2009-10-02 16:39 Alex Alexander (wired)
2009-10-02 15:04 Dominik Kapusta (ayoy)
2009-08-11 14:44 Markos Chandras (hwoarang)
2009-07-31 22:18 Thomas Sachau (tommy)
2009-07-13 19:55 Markos Chandras (hwoarang)
2009-06-28 15:24 Markos Chandras (hwoarang)
2009-06-27 18:55 Ben de Groot (yngwin)
2009-06-27 12:37 Ben de Groot (yngwin)
2009-06-06 22:43 Markos Chandras (hwoarang)
2009-05-29 20:58 Markos Chandras (hwoarang)
2009-05-29 14:48 Markos Chandras (hwoarang)
2009-05-23  1:08 Markos Chandras (hwoarang)
2009-05-12 14:21 Markos Chandras (hwoarang)
2009-04-23 11:45 Markos Chandras (hwoarang)
2009-03-28  2:29 Gordon Malm (gengor)
2009-03-28  0:33 Gordon Malm (gengor)
2009-03-28  0:21 Gordon Malm (gengor)
2009-03-16  8:21 Alexis Ballier (aballier)
2009-03-11 23:58 Diego Petteno (flameeyes)
2009-03-05  9:25 Markos Chandras (hwoarang)
2009-03-04 20:37 Ben de Groot (yngwin)
2009-02-15  0:11 Markos Chandras (hwoarang)
2009-02-14 23:47 Markos Chandras (hwoarang)
2009-02-14 22:48 Markos Chandras (hwoarang)
2009-02-14 22:25 Markos Chandras (hwoarang)
2009-02-11 21:14 Ben de Groot (yngwin)
2009-01-29 18:45 Alexis Ballier (aballier)
2009-01-21  8:55 Gordon Malm (gengor)
2009-01-12 23:47 Ben de Groot (yngwin)
2008-09-18 22:07 Ben de Groot (yngwin)
2008-08-11 12:52 Ben de Groot (yngwin)
2008-05-26 14:30 Ingmar Vanhassel (ingmar)
2008-05-15 12:33 Ingmar Vanhassel (ingmar)
2008-04-14 21:51 Ingmar Vanhassel (ingmar)
2008-03-11 16:39 Ingmar Vanhassel (ingmar)
2008-03-06 14:44 Bo Oersted Andresen (zlin)
2008-03-06  1:23 Ingmar Vanhassel (ingmar)
2008-03-05 23:06 Ingmar Vanhassel (ingmar)
2007-12-23 20:48 Caleb Tennis (caleb)
2007-12-22 17:32 Caleb Tennis (caleb)
2007-12-22 16:29 Caleb Tennis (caleb)
2007-12-21 21:44 Caleb Tennis (caleb)
2007-12-21 21:10 Caleb Tennis (caleb)
2007-12-21 16:11 Caleb Tennis (caleb)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Jjxgn-0006GH-Q9@stork.gentoo.org \
    --to=ingmar@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox