/[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.3 - (show annotations) (download)
Mon May 4 16:51:46 2009 UTC (11 years, 3 months ago) by dertobi123
Branch: MAIN
Changes since 1.2: +5 -2 lines
Add dep on dev-db/oracle-instantclient-sqlplus for +oci8-instant-client, #258124

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.2 2009/04/23 17:59:52 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 mysql? ( x11-libs/qt-sql[mysql] )
21 postgres? ( x11-libs/qt-sql[postgres] )
22 >=x11-libs/qscintilla-2.1[qt4]
23 oci8-instant-client? (
24 dev-db/oracle-instantclient-basic
25 dev-db/oracle-instantclient-sqlplus
26 )"
27
28 pkg_setup() {
29 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
30 eerror "ORACLE_HOME variable is not set."
31 eerror
32 eerror "You must install Oracle >= 8i client for Linux in"
33 eerror "order to compile TOra with Oracle support."
34 eerror
35 eerror "Otherwise specify -oracle in your USE variable."
36 eerror
37 eerror "You can download the Oracle software from"
38 eerror "http://otn.oracle.com/software/content.html"
39 die
40 fi
41 }
42
43 src_configure() {
44 # Need to fake out Qt or we'll get sandbox problems
45 REALHOME="$HOME"
46 mkdir -p "$T"/fakehome/.kde
47 mkdir -p "$T"/fakehome/.qt
48 export HOME="$T/fakehome"
49 addwrite "${QTDIR}/etc/settings"
50
51 # Remove files generated with qt-4.4 moc
52 rm src/{moc_*.cpp,ui_*ui.h} || die "rm failed"
53
54 local myconf
55
56 if use oracle; then
57 myconf="$myconf --with-oracle=${ORACLE_HOME}"
58 fi
59
60 if use oci8-instant-client; then
61 myconf="$myconf --with-instant-client=${ORACLE_HOME}"
62 fi
63
64 if use oci8-instant-client || use oracle ; then
65 myconf="$myconf --with-oracle-libraries=${ORACLE_HOME}/lib \
66 --with-oracle-includes=${ORACLE_HOME}/include "
67 fi
68
69 myconf="$myconf --with-qt-includes=/usr/include/qt4/ --with-qt-libraries=/usr/lib/qt4/ --with-qt-dir=/usr/lib/qt4"
70
71 econf $myconf || die "configure failed"
72 }
73
74 src_compile() {
75 emake -j1 || die "make failed"
76 }
77
78 src_install() {
79 make install DESTDIR="${D}"
80 dodoc BUGS INSTALL NEWS README TODO
81
82 insinto /usr/share/applications
83 doins "${FILESDIR}"/${PN}.desktop
84 insinto /usr/share/pixmaps
85 doins "${FILESDIR}"/${PN}.png
86 }

  ViewVC Help
Powered by ViewVC 1.1.20