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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Dec 26 18:45:21 2006 UTC (13 years, 6 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Cleanup, Revbump, Fixes #158213 and #155753
(Portage version: 2.1.2_rc4-r1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 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.16-r1.ebuild,v 1.5 2006/01/19 19:15:28 dertobi123 Exp $
4
5 inherit debug 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}/tora-1.3.16-configure-no_oracle.diff
40 epatch ${FILESDIR}/tora-1.3.16-sh-no_oracle.diff
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 ./configure $myconf || die "configure failed"
64 emake || die "emake failed"
65 }
66
67 src_install() {
68 make install ROOT=${D}
69 dodoc LICENSE.txt BUGS INSTALL NEWS README TODO
70 }

  ViewVC Help
Powered by ViewVC 1.1.20