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

Contents of /dev-db/tora/tora-2.1.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Oct 13 08:02:28 2014 UTC (5 years, 8 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Drop old versions

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-2.1.3-r2.ebuild,v 1.5 2013/11/09 16:15:40 pacho Exp $
4
5 EAPI=2
6
7 inherit cmake-utils eutils
8
9 DESCRIPTION="TOra - Toolkit For Oracle"
10 HOMEPAGE="http://tora.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12 IUSE="debug mysql oracle oci8-instant-client postgres"
13
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="amd64 ppc x86"
17
18 DEPEND="
19 dev-libs/ferrisloki
20 x11-libs/qscintilla
21 dev-qt/qtgui:4
22 dev-qt/qtsql:4[mysql?,postgres?]
23 dev-qt/qtxmlpatterns:4
24 oci8-instant-client? (
25 dev-db/oracle-instantclient-basic
26 dev-db/oracle-instantclient-sqlplus
27 )
28 postgres? ( dev-db/postgresql-server )
29 "
30 RDEPEND="${DEPEND}"
31
32 pkg_setup() {
33 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
34 eerror "ORACLE_HOME variable is not set."
35 eerror
36 eerror "You must install Oracle >= 8i client for Linux in"
37 eerror "order to compile TOra with Oracle support."
38 eerror
39 eerror "Otherwise specify -oracle in your USE variable."
40 eerror
41 eerror "You can download the Oracle software from"
42 eerror "http://otn.oracle.com/software/content.html"
43 die
44 fi
45 }
46
47 src_prepare() {
48 epatch "${FILESDIR}"/${P}-gcc-4.7.patch #430044
49 epatch "${FILESDIR}"/${P}-ext-loki.patch #383109
50 sed -i \
51 -e "/COPYING/ d" \
52 CMakeLists.txt || die "Removal of COPYING file failed"
53 }
54
55 src_configure() {
56 local mycmakeargs=()
57 if use oracle || use oci8-instant-client ; then
58 mycmakeargs=(-DENABLE_ORACLE=ON)
59 else
60 mycmakeargs=(-DENABLE_ORACLE=OFF)
61 fi
62 mycmakeargs+=(
63 -DWANT_RPM=OFF
64 -DWANT_BUNDLE=OFF
65 -DWANT_BUNDLE_STANDALONE=OFF
66 -DWANT_INTERNAL_QSCINTILLA=OFF
67 -DWANT_INTERNAL_LOKI=OFF
68 $(cmake-utils_use_enable postgres PGSQL)
69 $(cmake-utils_use_want debug)
70 # path variables
71 -DTORA_DOC_DIR=share/doc/${PF}
72 )
73 cmake-utils_src_configure
74 }
75
76 src_install() {
77 cmake-utils_src_install
78 doicon src/icons/${PN}.xpm || die
79 domenu debian/${PN}.desktop || die
80 }

  ViewVC Help
Powered by ViewVC 1.1.20