Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-sql: ChangeLog qt-sql-4.7.4.ebuild
Date: Thu, 08 Sep 2011 09:22:09
Message-Id: 20110908092154.8CA3D2004C@flycatcher.gentoo.org
1 wired 11/09/08 09:21:54
2
3 Modified: ChangeLog
4 Added: qt-sql-4.7.4.ebuild
5 Log:
6 version bump, 4.7.4
7
8 (Portage version: 2.2.0_alpha54/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.113 x11-libs/qt-sql/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-sql/ChangeLog?rev=1.113&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-sql/ChangeLog?rev=1.113&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-sql/ChangeLog?r1=1.112&r2=1.113
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v
20 retrieving revision 1.112
21 retrieving revision 1.113
22 diff -u -r1.112 -r1.113
23 --- ChangeLog 17 Aug 2011 16:58:19 -0000 1.112
24 +++ ChangeLog 8 Sep 2011 09:21:54 -0000 1.113
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-libs/qt-sql
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v 1.112 2011/08/17 16:58:19 chithanh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-sql/ChangeLog,v 1.113 2011/09/08 09:21:54 wired Exp $
30 +
31 +*qt-sql-4.7.4 (08 Sep 2011)
32 +
33 + 08 Sep 2011; Alex Alexander <wired@g.o> +qt-sql-4.7.4.ebuild:
34 + version bump, 4.7.4
35
36 17 Aug 2011; Chí-Thanh Christopher Nguyễn <chithanh@g.o>
37 qt-sql-4.6.3-r2.ebuild:
38
39
40
41 1.1 x11-libs/qt-sql/qt-sql-4.7.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-sql/qt-sql-4.7.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-sql/qt-sql-4.7.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qt-sql-4.7.4.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.7.4.ebuild,v 1.1 2011/09/08 09:21:54 wired Exp $
51
52 EAPI="3"
53 inherit qt4-build
54
55 DESCRIPTION="The SQL module for the Qt toolkit"
56 SLOT="4"
57 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
58 IUSE="firebird freetds iconv mysql odbc postgres qt3support +sqlite"
59
60 DEPEND="~x11-libs/qt-core-${PV}[aqua=,debug=,qt3support=]
61 firebird? ( dev-db/firebird )
62 freetds? ( dev-db/freetds )
63 mysql? ( virtual/mysql )
64 odbc? ( dev-db/unixODBC )
65 postgres? ( dev-db/postgresql-base )
66 sqlite? ( dev-db/sqlite:3 )"
67 RDEPEND="${DEPEND}"
68
69 pkg_setup() {
70 QT4_TARGET_DIRECTORIES="src/sql src/plugins/sqldrivers"
71 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
72 include/Qt/
73 include/QtCore/
74 include/QtSql/
75 include/QtScript/
76 src/src.pro
77 src/corelib/
78 src/plugins
79 src/3rdparty
80 src/tools"
81
82 if ! ( use firebird || use freetds || use mysql || use odbc || use postgres || use sqlite );
83 then
84 ewarn "You need to enable at least one SQL driver. Enable at least"
85 ewarn "one of these USE flags: \"firebird freetds mysql odbc postgres sqlite tds\"."
86 die "Enable at least one SQL driver."
87 fi
88
89 qt4-build_pkg_setup
90 }
91
92 src_prepare() {
93 qt4-build_src_prepare
94
95 sed -e '/pg_config --libs/d' -i "${S}"/configure \
96 || die "sed to fix postgresql usage in ./configure failed"
97 }
98
99 src_configure() {
100 # Don't support sqlite2 anymore
101 myconf="${myconf} -no-sql-sqlite2
102 $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I${EPREFIX}/usr/include/mysql -L${EPREFIX}/usr/$(get_libdir)/mysql ")
103 $(qt_use postgres sql-psql plugin) $(use postgres && echo "-I${EPREFIX}/usr/include/postgresql/pgsql ")
104 $(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo '-system-sqlite')
105 $(qt_use odbc sql-odbc plugin)
106 $(qt_use freetds sql-tds plugin)
107 $(qt_use firebird sql-ibase plugin)
108 $(qt_use qt3support)"
109
110 myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender
111 -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
112 -no-opengl -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
115 -no-fontconfig -no-glib -no-opengl -no-svg -no-gtkstyle"
116
117 qt4-build_src_configure
118 }