# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18 17:25:12 agenkin Exp DESCRIPTION="Embedded database library" HOMEPAGE="http://www.equi4.com/metakit/" LICENSE="" DEPEND="python? ( >=dev-lang/python-2.2.1 ) tcltk? ( >=dev-lang/tcl-8.3.3-r2 )" #RDEPEND="" SRC_URI="http://www.equi4.com/pub/mk/${P}-37.tar.gz" S=${WORKDIR}/${P} src_compile() { local myconf use python && myconf=" --enable-python" use tcltk && myconf="$myconf --with-tcl=/usr/include" 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 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} dodoc CHANGES README WHATSNEW dohtml MetaKit.html dohtml -a html,gif,png,jpg -r doc/* }