separate ebuild for qt odbc plugin. see bug 14178. this is hardmasked because would...
authorDan Armak <danarmak@gentoo.org>
Sat, 23 Oct 2004 21:19:15 +0000 (21:19 +0000)
committerDan Armak <danarmak@gentoo.org>
Sat, 23 Oct 2004 21:19:15 +0000 (21:19 +0000)
dev-db/qt-unixODBC/ChangeLog [new file with mode: 0644]
dev-db/qt-unixODBC/Manifest [new file with mode: 0644]
dev-db/qt-unixODBC/files/digest-qt-unixODBC-3.3.3 [new file with mode: 0644]
dev-db/qt-unixODBC/metadata.xml [new file with mode: 0644]
dev-db/qt-unixODBC/qt-unixODBC-3.3.3.ebuild [new file with mode: 0644]

diff --git a/dev-db/qt-unixODBC/ChangeLog b/dev-db/qt-unixODBC/ChangeLog
new file mode 100644 (file)
index 0000000..3b926d9
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for dev-db/qt-unixODBC
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qt-unixODBC/ChangeLog,v 1.1 2004/10/23 21:19:15 danarmak Exp $
+
+*qt-ODBC-3.3.3 (23 Oct 2004)
+
+  23 Oct 2004; Dan Armak <danarmak@gentoo.org> qt-ODBC-3.3.3.ebuild:
+  First created. A separate ebuild for the QT unixODBC plugin to fix #14178.
+  
\ No newline at end of file
diff --git a/dev-db/qt-unixODBC/Manifest b/dev-db/qt-unixODBC/Manifest
new file mode 100644 (file)
index 0000000..1d7e0f9
--- /dev/null
@@ -0,0 +1,4 @@
+MD5 619c0711be8ba9cca02a56cf83935c04 qt-unixODBC-3.3.3.ebuild 1527
+MD5 4df6b0136152f4f1b7e4eda57805e215 ChangeLog 389
+MD5 512150b47a904b0240101e319856aab1 metadata.xml 156
+MD5 4fc68ca52659787e90f0de57b43e943b files/digest-qt-unixODBC-3.3.3 72
diff --git a/dev-db/qt-unixODBC/files/digest-qt-unixODBC-3.3.3 b/dev-db/qt-unixODBC/files/digest-qt-unixODBC-3.3.3
new file mode 100644 (file)
index 0000000..4d86db2
--- /dev/null
@@ -0,0 +1 @@
+MD5 3e0a0c8429b0a974b39b5f535ddff01c qt-x11-free-3.3.3.tar.bz2 14424812
diff --git a/dev-db/qt-unixODBC/metadata.xml b/dev-db/qt-unixODBC/metadata.xml
new file mode 100644 (file)
index 0000000..01a5c28
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd> 
+</pkgmetadata>
diff --git a/dev-db/qt-unixODBC/qt-unixODBC-3.3.3.ebuild b/dev-db/qt-unixODBC/qt-unixODBC-3.3.3.ebuild
new file mode 100644 (file)
index 0000000..dfb1831
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qt-unixODBC/qt-unixODBC-3.3.3.ebuild,v 1.1 2004/10/23 21:19:15 danarmak Exp $
+
+inherit eutils
+
+SRCTYPE="free"
+DESCRIPTION="QT version ${PV}"
+HOMEPAGE="http://www.trolltech.com/"
+SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.bz2"
+IUSE=""
+LICENSE="|| ( QPL-1.0 GPL-2 )"
+SLOT="3"
+KEYWORDS="~x86"
+
+DEPEND="~x11-libs/qt-$PV
+       dev-db/unixODBC"
+
+S=${WORKDIR}/qt-x11-${SRCTYPE}-${PV}
+
+QTBASE=/usr/qt/3
+export QTDIR=${S}
+export PLATFORM=linux-g++
+
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}
+       cp configure configure.orig
+       sed -e 's:read acceptance:acceptance=yes:' configure.orig > configure
+}
+
+src_compile() {
+       export QTDIR=${S}
+       export SYSCONF=${D}${QTBASE}/etc/settings
+
+       # Let's just allow writing to these directories during Qt emerge
+       # as it makes Qt much happier.
+       addwrite "${QTBASE}/etc/settings"
+       addwrite "$HOME/.qt"
+
+       export YACC='byacc -d'
+
+       ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
+               -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
+               -system-libpng -lpthread -xft -platform ${PLATFORM} -xplatform \
+               ${PLATFORM} -xrender -prefix ${QTBASE} -fast ${myconf} \
+               -dlopen-opengl -plugin-sql-odbc -L${QTBASE}/lib || die
+
+       export QTDIR=${S}
+
+       cd $S/plugins/src/sqldrivers/odbc
+       emake || die
+}
+
+src_install() {
+       mkdir -p $D/$QTBASE/plugins/sqldrivers
+       cp $S/plugins/sqldrivers/libqsqlodbc.so $D/$QTBASE/plugins/sqldrivers/ || die
+}