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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Mar 21 10:04:27 2008 UTC (12 years, 3 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Version bump, plus fix qscintilla dep as per #213898
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 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.18.ebuild,v 1.10 2007/07/13 06:38:59 mr_bones_ Exp $
4
5 inherit eutils kde-functions
6
7 IUSE="kde oracle debug"
8 DESCRIPTION="TOra - Toolkit For Oracle"
9 HOMEPAGE="http://tora.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="alpha amd64 ~hppa ~ppc ~sparc x86"
15
16 DEPEND="=x11-libs/qt-3*
17 dev-lang/perl
18 kde? ( >=kde-base/kdelibs-3.1
19 kde-base/arts )"
20
21 pkg_setup() {
22 if use oracle && [ -z "$ORACLE_HOME" ] ; then
23 eerror "ORACLE_HOME variable is not set."
24 eerror
25 eerror "You must install Oracle >= 8i client for Linux in"
26 eerror "order to compile TOra with Oracle support."
27 eerror
28 eerror "Otherwise specify -oracle in your USE variable."
29 eerror
30 eerror "You can download the Oracle software from"
31 eerror "http://otn.oracle.com/software/content.html"
32 die
33 fi
34 }
35
36 src_unpack() {
37 unpack ${A}
38 cd ${S}
39 epatch ${FILESDIR}/gcc41.patch
40 }
41
42 src_compile() {
43 set-qtdir 3
44 set-kdedir 3
45
46 # Need to fake out Qt or we'll get sandbox problems
47 REALHOME="$HOME"
48 mkdir -p $T/fakehome/.kde
49 mkdir -p $T/fakehome/.qt
50 export HOME="$T/fakehome"
51 addwrite "${QTDIR}/etc/settings"
52
53 local myconf
54 #myconf="--prefix=/usr"
55 #myconf="$myconf --with-mono"
56
57 use kde \
58 && myconf="$myconf --with-kde" \
59 || myconf="$myconf --without-kde"
60 use oracle || myconf="$myconf --without-oracle"
61
62 myconf="$myconf --with-qt-dir=/usr/qt/3"
63
64 #./configure $myconf || die "configure failed"
65 econf $myconf || die "configure failed"
66 emake || die "emake failed"
67 }
68
69 src_install() {
70 #make install ROOT=${D}
71 make install DESTDIR=${D}
72 dodoc LICENSE.txt BUGS INSTALL NEWS README TODO
73 }

  ViewVC Help
Powered by ViewVC 1.1.20