Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-sql: ChangeLog qt-sql-4.5.2.ebuild
Date: Sat, 27 Jun 2009 19:21:56
Message-Id: E1MKdTG-0004IP-Ds@stork.gentoo.org
1 yngwin 09/06/27 19:21:54
2
3 Modified: ChangeLog
4 Added: qt-sql-4.5.2.ebuild
5 Log:
6 Qt 4.5.2 release version bump
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.47 x11-libs/qt-sql/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-sql/ChangeLog?rev=1.47&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-sql/ChangeLog?rev=1.47&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-sql/ChangeLog?r1=1.46&r2=1.47
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v
19 retrieving revision 1.46
20 retrieving revision 1.47
21 diff -u -r1.46 -r1.47
22 --- ChangeLog 8 Jun 2009 22:31:53 -0000 1.46
23 +++ ChangeLog 27 Jun 2009 19:21:54 -0000 1.47
24 @@ -1,6 +1,12 @@
25 # ChangeLog for x11-libs/qt-sql
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v 1.46 2009/06/08 22:31:53 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v 1.47 2009/06/27 19:21:54 yngwin Exp $
29 +
30 +*qt-sql-4.5.2 (27 Jun 2009)
31 +
32 + 27 Jun 2009; Ben de Groot <yngwin@g.o> +files/qt-4.5-nolibx11.diff,
33 + +qt-sql-4.5.2.ebuild:
34 + Version bump
35
36 08 Jun 2009; Jeroen Roovers <jer@g.o> qt-sql-4.5.1.ebuild:
37 Stable for HPPA (bug #266201).
38
39
40
41 1.1 x11-libs/qt-sql/qt-sql-4.5.2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-sql/qt-sql-4.5.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-sql/qt-sql-4.5.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qt-sql-4.5.2.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/qt-sql-4.5.2.ebuild,v 1.1 2009/06/27 19:21:54 yngwin Exp $
51
52 EAPI="2"
53 inherit qt4-build
54
55 DESCRIPTION="The SQL module for the Qt toolkit"
56 SLOT="4"
57 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
58 IUSE="firebird iconv mysql odbc postgres qt3support +sqlite"
59
60 DEPEND="~x11-libs/qt-core-${PV}[debug=,qt3support=]
61 firebird? ( dev-db/firebird )
62 mysql? ( virtual/mysql )
63 odbc? ( dev-db/unixODBC )
64 postgres? ( virtual/postgresql-base )
65 sqlite? ( dev-db/sqlite:3 )"
66 RDEPEND="${DEPEND}"
67
68 QT4_TARGET_DIRECTORIES="src/sql src/plugins/sqldrivers"
69 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
70 include/Qt/
71 include/QtCore/
72 include/QtSql/
73 include/QtScript/
74 src/src.pro
75 src/corelib/
76 src/plugins
77 src/sql
78 src/3rdparty
79 src/tools"
80
81 PATCHES=(
82 "${FILESDIR}/qt-4.5-nolibx11.diff"
83 )
84
85 pkg_setup() {
86 if ! (use firebird || use mysql || use odbc || use postgres || use sqlite); then
87 ewarn "You need to enable at least one SQL driver. Enable at least"
88 ewarn "one of these USE flags: \"firebird mysql odbc postgres sqlite\""
89 die "Enable at least one SQL driver."
90 fi
91
92 qt4-build_pkg_setup
93 }
94
95 src_prepare() {
96 qt4-build_src_prepare
97 sed -e '/pg_config --libs/d' -i "${S}"/configure \
98 || die 'sed to fix postgresql usage in ./configure failed.'
99 }
100
101 src_configure() {
102 # Don't support sqlite2 anymore
103 myconf="${myconf} -no-sql-sqlite2
104 $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I/usr/include/mysql -L/usr/$(get_libdir)/mysql ")
105 $(qt_use postgres sql-psql plugin) $(use postgres && echo "-I/usr/include/postgresql/pgsql ")
106 $(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo '-system-sqlite')
107 $(qt_use odbc sql-odbc plugin)
108 $(qt_use qt3support)"
109
110 myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender -no-xrandr
111 -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl
112 -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
113 -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
114 -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility -no-fontconfig
115 -no-glib -no-opengl -no-svg -no-gtkstyle"
116
117 qt4-build_src_configure
118 }