summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/gigabase/gigabase-3.83-r1.ebuild')
-rw-r--r--dev-db/gigabase/gigabase-3.83-r1.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-db/gigabase/gigabase-3.83-r1.ebuild b/dev-db/gigabase/gigabase-3.83-r1.ebuild
new file mode 100644
index 000000000000..671323a643bc
--- /dev/null
+++ b/dev-db/gigabase/gigabase-3.83-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit eutils multilib
+
+DESCRIPTION="OO-DBMS with interfaces for C/C++/Java/PHP/Perl"
+HOMEPAGE="http://www.garret.ru/~knizhnik/gigabase.html"
+SRC_URI="mirror://sourceforge/gigabase/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc static-libs"
+
+DEPEND="doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix-dereferencing.patch"
+}
+
+src_configure() {
+ mf="${S}/Makefile"
+
+ econf $(use_enable static-libs static)
+ sed -r -i -e 's/subsql([^\.]|$)/subsql-gdb\1/' ${mf} || die
+}
+
+src_compile() {
+ emake
+ use doc && { doxygen doxygen.cfg || die; }
+}
+
+src_test() {
+ pwd
+ cd "${S}"
+ local TESTS
+ local -i failcnt=0
+ TESTS="testddl testidx testidx2 testiref testleak testperf testperf2 testspat testtl testsync testtimeseries"
+
+ for t in ${TESTS}; do
+ ./${t} || { ewarn "$t fails"; failcnt+=1; }
+ done
+ [[ $failcnt != 0 ]] && die "See warnings above for tests that failed"
+}
+
+src_install() {
+ einstall
+ prune_libtool_files
+
+ dodoc CHANGES
+ use doc && dohtml GigaBASE.htm
+ use doc && dohtml -r docs/html/*
+}
+
+pkg_postinst() {
+ elog "The subsql binary has been renamed to subsql-gdb,"
+ elog "to avoid a name clash with the FastDB version of subsql"
+}