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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (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.6: +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.21.ebuild,v 1.6 2007/11/20 05:37:25 hawking 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 x11-libs/qscintilla
19 kde? ( >=kde-base/kdelibs-3.1
20 kde-base/arts )"
21
22 pkg_setup() {
23 if use oracle && [ -z "$ORACLE_HOME" ] ; then
24 eerror "ORACLE_HOME variable is not set."
25 eerror
26 eerror "You must install Oracle >= 8i client for Linux in"
27 eerror "order to compile TOra with Oracle support."
28 eerror
29 eerror "Otherwise specify -oracle in your USE variable."
30 eerror
31 eerror "You can download the Oracle software from"
32 eerror "http://otn.oracle.com/software/content.html"
33 die
34 fi
35 }
36
37 src_unpack() {
38 unpack ${A}
39 cd ${S}
40 epatch ${FILESDIR}/gcc41.patch
41 }
42
43 src_compile() {
44 set-qtdir 3
45 set-kdedir 3
46
47 # Need to fake out Qt or we'll get sandbox problems
48 REALHOME="$HOME"
49 mkdir -p $T/fakehome/.kde
50 mkdir -p $T/fakehome/.qt
51 export HOME="$T/fakehome"
52 addwrite "${QTDIR}/etc/settings"
53
54 local myconf
55 #myconf="--prefix=/usr"
56 #myconf="$myconf --with-mono"
57
58 use kde \
59 && myconf="$myconf --with-kde" \
60 || myconf="$myconf --without-kde"
61 use oracle || myconf="$myconf --without-oracle"
62
63 myconf="$myconf --with-qt-dir=/usr/qt/3"
64
65 #./configure $myconf || die "configure failed"
66 econf $myconf || die "configure failed"
67 emake -j1 || die "emake failed"
68 }
69
70 src_install() {
71 #make install ROOT=${D}
72 make install DESTDIR=${D}
73 dodoc LICENSE.txt BUGS INSTALL NEWS README TODO
74 }

  ViewVC Help
Powered by ViewVC 1.1.20