blob: 154daaaf0e82c603fca6b71df2763d6c402d21cd (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/metakit/metakit-2.4.7.37.ebuild,v 1.1 2002/08/05 03:28:41 woodchip Exp $
S=${WORKDIR}/${PN}-${PV%.*}
DESCRIPTION="Embedded database library"
HOMEPAGE="http://www.equi4.com/metakit/"
SRC_URI="http://www.equi4.com/pub/mk/${PN}-${PV%.*}-${PV##*.}.tar.gz"
DEPEND="python? ( >=dev-lang/python-2.2.1 ) tcltk? ( >=dev-lang/tcl-8.3.3-r2 )"
RDEPEND="${DEPEND}"
KEYWORDS="x86"
LICENSE="MetaKit"
SLOT="0"
src_unpack() {
unpack ${A} ; cd ${S}
cp unix/Makefile.in unix/Makefile.in.orig
sed -e "s:^\(CXXFLAGS = \).*:\1${CXXFLAGS}:" unix/Makefile.in.orig \
> unix/Makefile.in
}
src_compile() {
local myconf
use python && myconf="--enable-python"
use tcltk && myconf="${myconf} --with-tcl=/usr/include"
CXXFLAGS="${CXXFLAGS}" unix/configure \
${myconf} \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install () {
local pydir
pydir=`python-config | cut -d" " -f1 | sed -e 's/-l//g'`/site-packages
make \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die
if [ -n "`use python`" ]
then
mkdir -p ${D}/usr/lib/${pydir}
# Because libmk4py.so export Mk4pyinit, that Python will look for ...
# shouldn't do a mv instead of a cp ? Who needs libmk4py.so ?
cp ${D}/usr/lib/libmk4py.so ${D}/usr/lib/${pydir}/Mk4py.so
cp python/metakit.py ${D}/usr/lib/${pydir}
fi
dodoc CHANGES README WHATSNEW
dohtml MetaKit.html
dohtml -a html,gif,png,jpg -r doc/*
}
|