/[gentoo-x86]/dev-db/tora/tora-2.0.0.ebuild
Gentoo

Contents of /dev-db/tora/tora-2.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jun 25 21:06:31 2009 UTC (11 years, 1 month ago) by dertobi123
Branch: MAIN
Changes since 1.3: +2 -1 lines
Fix gcc-4.4 compilation (#274220), always depend on qt-sql (#274743)
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-2.0.0.ebuild,v 1.3 2009/05/04 16:51:46 dertobi123 Exp $
4
5 EAPI=2
6
7 inherit eutils kde-functions
8
9 IUSE="debug mysql oracle oci8-instant-client postgres"
10 DESCRIPTION="TOra - Toolkit For Oracle"
11 HOMEPAGE="http://tora.sourceforge.net"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
17
18 RDEPEND="${DEPEND}"
19 DEPEND="dev-lang/perl
20 x11-libs/qt-sql
21 mysql? ( x11-libs/qt-sql[mysql] )
22 postgres? ( x11-libs/qt-sql[postgres] )
23 >=x11-libs/qscintilla-2.1[qt4]
24 oci8-instant-client? (
25 dev-db/oracle-instantclient-basic
26 dev-db/oracle-instantclient-sqlplus
27 )"
28
29 pkg_setup() {
30 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
31 eerror "ORACLE_HOME variable is not set."
32 eerror
33 eerror "You must install Oracle >= 8i client for Linux in"
34 eerror "order to compile TOra with Oracle support."
35 eerror
36 eerror "Otherwise specify -oracle in your USE variable."
37 eerror
38 eerror "You can download the Oracle software from"
39 eerror "http://otn.oracle.com/software/content.html"
40 die
41 fi
42 }
43
44 src_configure() {
45 # Need to fake out Qt or we'll get sandbox problems
46 REALHOME="$HOME"
47 mkdir -p "$T"/fakehome/.kde
48 mkdir -p "$T"/fakehome/.qt
49 export HOME="$T/fakehome"
50 addwrite "${QTDIR}/etc/settings"
51
52 # Remove files generated with qt-4.4 moc
53 rm src/{moc_*.cpp,ui_*ui.h} || die "rm failed"
54
55 local myconf
56
57 if use oracle; then
58 myconf="$myconf --with-oracle=${ORACLE_HOME}"
59 fi
60
61 if use oci8-instant-client; then
62 myconf="$myconf --with-instant-client=${ORACLE_HOME}"
63 fi
64
65 if use oci8-instant-client || use oracle ; then
66 myconf="$myconf --with-oracle-libraries=${ORACLE_HOME}/lib \
67 --with-oracle-includes=${ORACLE_HOME}/include "
68 fi
69
70 myconf="$myconf --with-qt-includes=/usr/include/qt4/ --with-qt-libraries=/usr/lib/qt4/ --with-qt-dir=/usr/lib/qt4"
71
72 econf $myconf || die "configure failed"
73 }
74
75 src_compile() {
76 emake -j1 || die "make failed"
77 }
78
79 src_install() {
80 make install DESTDIR="${D}"
81 dodoc BUGS INSTALL NEWS README TODO
82
83 insinto /usr/share/applications
84 doins "${FILESDIR}"/${PN}.desktop
85 insinto /usr/share/pixmaps
86 doins "${FILESDIR}"/${PN}.png
87 }

  ViewVC Help
Powered by ViewVC 1.1.20