summaryrefslogtreecommitdiff
blob: 99268d9248ab7d91a60cae8f4213e40a6f39371a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/framerd/framerd-2.4.3-r1.ebuild,v 1.4 2003/09/06 22:25:50 msterret Exp $

DESCRIPTION="FramerD is a portable distributed object-oriented database designed to support the maintenance and sharing of knowledge bases."
HOMEPAGE="http://www.framerd.org/"
SRC_URI="mirror://sourceforge/framerd/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="readline"
RDEPEND="readline? >=sys-libs/readline-4.1-r4"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${P}"

src_compile() {
    patch -p0 ${S}/etc/setup.fdx ${FILESDIR}/setup.fdx.patch
    MY_OPTS="--enable-shared"
    if [ ! "`use readline`" ]; then
	MY_OPTS="${MY_OPTS} --without-readline"
    fi
    econf ${MY_OPTS}

    emake || die "make failed"
    #emake test || die "make test failed" # failed!!
}

src_install() {
    make DESTDIR=${D} install || die
    mv ${D}/usr/share/framerd/framerd.cfg ${D}/usr/share/framerd/framerd.cfg_orig
    perl -pe "s|${D}||" ${D}/usr/share/framerd/framerd.cfg_orig > ${D}/usr/share/framerd/framerd.cfg
    rm ${D}/usr/share/framerd/framerd.cfg_orig
}