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

Contents of /dev-db/tora/tora-1.3.15-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 8 17:34:57 2005 UTC (15 years, 4 months ago) by rizzo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Stable on x86 and removing obsoletes
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.15-r1.ebuild,v 1.1 2005/02/21 18:58:21 rizzo Exp $
4
5 inherit debug eutils kde-functions
6
7 IUSE="kde oracle debug"
8 DESCRIPTION="TOra - Toolkit For Oracle"
9 HOMEPAGE="http://www.globecom.se/tora/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64"
15
16 DEPEND=">=x11-libs/qt-3.0.0
17 dev-lang/perl
18 kde? ( >=kde-base/kdelibs-3.1 )"
19
20 pkg_setup() {
21 if use oracle && [ -z "$ORACLE_HOME" ] ; then
22 eerror "ORACLE_HOME variable is not set."
23 eerror
24 eerror "You must install Oracle >= 8i client for Linux in"
25 eerror "order to compile TOra with Oracle support."
26 eerror
27 eerror "Otherwise specify -oracle in your USE variable."
28 eerror
29 eerror "You can download the Oracle software from"
30 eerror "http://otn.oracle.com/software/content.html"
31 die
32 fi
33 }
34
35 src_unpack() {
36 unpack ${A}
37 cd ${S}
38 epatch ${FILESDIR}/tora-1.3.15-configure.diff
39 }
40
41 src_compile() {
42 set-qtdir 3
43 set-kdedir 3
44
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 local myconf
53 myconf="--prefix=/usr"
54 myconf="$myconf --with-mono"
55
56 use kde \
57 && myconf="$myconf --with-kde" \
58 || myconf="$myconf --without-kde"
59 use oracle || myconf="$myconf --without-oracle"
60
61 ./configure $myconf || die "configure failed"
62 emake || die "emake failed"
63 }
64
65 src_install() {
66 make install ROOT=${D}
67 dodoc LICENSE.txt BUGS INSTALL NEWS README TODO
68 }

  ViewVC Help
Powered by ViewVC 1.1.20