Lines 1-40
Link Here
|
1 |
# Copyright 1999-2016 Gentoo Foundation |
1 |
# Copyright 1999-2017 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
|
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-3.0.0_pre20140918.ebuild,v 1.5 2014/09/18 Exp $ |
3 |
|
4 |
|
4 |
EAPI=5 |
5 |
EAPI=5 |
5 |
|
6 |
|
6 |
inherit cmake-utils eutils |
7 |
inherit cmake-utils eutils |
7 |
|
8 |
|
8 |
if [[ ${PV} == 9999 ]]; then |
9 |
if [[ ${PV} == 9999 ]]; then |
9 |
ESVN_REPO_URI="https://svn.code.sf.net/p/tora/code/trunk/tora" |
10 |
EGIT_REPO_URI="https://github.com/tora-tool/tora" |
10 |
inherit subversion |
11 |
inherit git-2 |
11 |
SRC_URI="" |
12 |
KEYWORDS="" |
12 |
else |
13 |
else |
13 |
SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.xz" |
14 |
SRC_URI="${PN}-master.zip" |
|
|
15 |
#SRC_URI="${PN}-master.tgz" |
16 |
KEYWORDS="~amd64 ~x86" |
14 |
fi |
17 |
fi |
15 |
|
18 |
|
16 |
DESCRIPTION="TOra - Toolkit For Oracle" |
19 |
DESCRIPTION="TOra - Toolkit For Oracle" |
17 |
HOMEPAGE="http://torasql.com/" |
20 |
HOMEPAGE="https://github.com/tora-tool/tora/wiki" |
18 |
IUSE="debug mysql postgres" |
21 |
IUSE="debug mysql pch postgres +qt5" |
19 |
|
22 |
|
20 |
SLOT="0" |
23 |
SLOT="0" |
21 |
LICENSE="GPL-2" |
24 |
LICENSE="GPL-2" |
22 |
KEYWORDS="~amd64 ~x86" |
|
|
23 |
|
25 |
|
24 |
RDEPEND=" |
26 |
RDEPEND=" |
25 |
dev-libs/ferrisloki |
27 |
dev-libs/ferrisloki |
26 |
x11-libs/qscintilla:=[qt4(-)] |
28 |
x11-libs/qscintilla |
27 |
dev-qt/qtgui:4 |
29 |
qt5? ( dev-qt/qtgui:5 dev-qt/qtsql:5[mysql?,postgres?] dev-qt/qtxmlpatterns:5 dev-qt/linguist:5 dev-qt/qtnetwork:5 dev-qt/qtsql:5 dev-qt/qtxml:5 ) |
28 |
dev-qt/qtsql:4[mysql?,postgres?] |
30 |
!qt5? ( dev-qt/qtgui:4 dev-qt/qtsql:4[mysql?,postgres?] dev-qt/qtxmlpatterns:4 ) |
29 |
dev-qt/qtxmlpatterns:4 |
|
|
30 |
=dev-db/oracle-instantclient-basic-11* |
31 |
=dev-db/oracle-instantclient-basic-11* |
31 |
postgres? ( dev-db/postgresql:* ) |
32 |
postgres? ( dev-db/postgresql ) |
32 |
" |
33 |
" |
|
|
34 |
|
33 |
DEPEND=" |
35 |
DEPEND=" |
34 |
virtual/pkgconfig |
36 |
virtual/pkgconfig |
35 |
${RDEPEND} |
37 |
${RDEPEND} |
36 |
" |
38 |
" |
37 |
|
39 |
|
|
|
40 |
S="${WORKDIR}/${PN}-master" |
41 |
|
38 |
pkg_setup() { |
42 |
pkg_setup() { |
39 |
if [ -z "$ORACLE_HOME" ] ; then |
43 |
if [ -z "$ORACLE_HOME" ] ; then |
40 |
eerror "ORACLE_HOME variable is not set." |
44 |
eerror "ORACLE_HOME variable is not set." |
Lines 49-73
Link Here
|
49 |
} |
53 |
} |
50 |
|
54 |
|
51 |
src_prepare() { |
55 |
src_prepare() { |
|
|
56 |
# Clean 3rd-party dependencies to ensure usage right ones: |
57 |
#rm -rf extlibs/loki* || die # for dev-libs/ferrisloki see bug #383109 |
58 |
# |
52 |
sed -i \ |
59 |
sed -i \ |
53 |
-e "/COPYING/ d" \ |
60 |
-e "/COPYING/ d" \ |
54 |
CMakeLists.txt || die "Removal of COPYING file failed" |
61 |
CMakeLists.txt || die "Removal of COPYING file failed" |
55 |
# bug 547520 |
62 |
# bug 547520 |
56 |
grep -rlZ '$$ORIGIN' . | xargs -0 sed -i 's|:$$ORIGIN[^:"]*||' || \ |
63 |
grep -rlZ '$$ORIGIN' . | xargs -0 sed -i 's|:$$ORIGIN[^:"]*||' || \ |
57 |
die 'Removal of $$ORIGIN failed' |
64 |
die 'Removal of $$ORIGIN failed' |
|
|
65 |
# |
66 |
epatch_user |
58 |
} |
67 |
} |
59 |
|
68 |
|
60 |
src_configure() { |
69 |
src_configure() { |
61 |
local mycmakeargs=() |
70 |
local mycmakeargs=() |
62 |
mycmakeargs=(-DENABLE_ORACLE=ON) |
71 |
mycmakeargs=(-DENABLE_ORACLE=ON) |
|
|
72 |
mycmakeargs+=(-DTARGET_NAME=ALL) |
73 |
# IMB DB2 support is very initial and for 2016-03-13 not planned to be complete |
74 |
mycmakeargs+=(-DENABLE_DB2=OFF) |
63 |
mycmakeargs+=( |
75 |
mycmakeargs+=( |
64 |
-DWANT_RPM=OFF |
76 |
-DWANT_RPM=OFF |
65 |
-DWANT_BUNDLE=OFF |
77 |
-DWANT_BUNDLE=OFF |
66 |
-DWANT_BUNDLE_STANDALONE=OFF |
78 |
-DWANT_BUNDLE_STANDALONE=OFF |
|
|
79 |
$(cmake-utils_use_use pch) |
67 |
-DWANT_INTERNAL_QSCINTILLA=OFF |
80 |
-DWANT_INTERNAL_QSCINTILLA=OFF |
68 |
-DWANT_INTERNAL_LOKI=OFF |
81 |
-DWANT_INTERNAL_LOKI=OFF |
69 |
-DLOKI_LIBRARY="$(pkg-config --variable=libdir ferrisloki)/libferrisloki.so" |
82 |
-DLOKI_LIBRARY="$(pkg-config --variable=libdir ferrisloki)/libferrisloki.so" |
70 |
-DLOKI_INCLUDE_DIR="$(pkg-config --variable=includedir ferrisloki)/FerrisLoki" |
83 |
-DLOKI_INCLUDE_DIR="$(pkg-config --variable=includedir ferrisloki)/FerrisLoki" |
|
|
84 |
$(cmake-utils_use qt5 QT5_BUILD) |
71 |
$(cmake-utils_use_enable postgres PGSQL) |
85 |
$(cmake-utils_use_enable postgres PGSQL) |
72 |
$(cmake-utils_use_want debug) |
86 |
$(cmake-utils_use_want debug) |
73 |
# path variables |
87 |
# path variables |