/[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.1 - (show annotations) (download)
Sat Dec 27 22:37:30 2008 UTC (11 years, 7 months ago) by dertobi123
Branch: MAIN
Version bump, #247180
(Portage version: 2.2_rc19/cvs/Linux 2.6.28-gentoo i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-1.3.23.ebuild,v 1.1 2008/06/16 18:21:35 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? ( dev-db/oracle-instantclient-basic )"
24
25 pkg_setup() {
26 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
27 eerror "ORACLE_HOME variable is not set."
28 eerror
29 eerror "You must install Oracle >= 8i client for Linux in"
30 eerror "order to compile TOra with Oracle support."
31 eerror
32 eerror "Otherwise specify -oracle in your USE variable."
33 eerror
34 eerror "You can download the Oracle software from"
35 eerror "http://otn.oracle.com/software/content.html"
36 die
37 fi
38 }
39
40 src_configure() {
41 # Need to fake out Qt or we'll get sandbox problems
42 REALHOME="$HOME"
43 mkdir -p "$T"/fakehome/.kde
44 mkdir -p "$T"/fakehome/.qt
45 export HOME="$T/fakehome"
46 addwrite "${QTDIR}/etc/settings"
47
48 local myconf
49
50 if use oracle; then
51 myconf="$myconf --with-oracle=${ORACLE_HOME}"
52 fi
53
54 if use oci8-instant-client; then
55 myconf="$myconf --with-instant-client=${ORACLE_HOME}"
56 fi
57
58 if use oci8-instant-client || use oracle ; then
59 myconf="$myconf --with-oracle-libraries=${ORACLE_HOME}/lib \
60 --with-oracle-includes=${ORACLE_HOME}/include "
61 fi
62
63 myconf="$myconf --with-qt-includes=/usr/include/qt4/ --with-qt-libraries=/usr/lib/qt4/ --with-qt-dir=/usr/lib/qt4"
64
65 econf $myconf || die "configure failed"
66 }
67
68 src_compile() {
69 emake -j1 || die "make failed"
70 }
71
72 src_install() {
73 make install DESTDIR="${D}"
74 dodoc BUGS INSTALL NEWS README TODO
75
76 insinto /usr/share/applications
77 doins "${FILESDIR}"/${PN}.desktop
78 insinto /usr/share/pixmaps
79 doins "${FILESDIR}"/${PN}.png
80 }

  ViewVC Help
Powered by ViewVC 1.1.20