diff options
author | Donny Davies <woodchip@gentoo.org> | 2003-04-05 07:02:36 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2003-04-05 07:02:36 +0000 |
commit | 4e45b5d1e4cdebd18a0e5d606c9950c2e17f8ac9 (patch) | |
tree | 0cf8d558f9ded8866d50b9c12b0513118753c578 /dev-db/metakit/metakit-2.4.9.2.ebuild | |
parent | bump. (diff) | |
download | gentoo-2-4e45b5d1e4cdebd18a0e5d606c9950c2e17f8ac9.tar.gz gentoo-2-4e45b5d1e4cdebd18a0e5d606c9950c2e17f8ac9.tar.bz2 gentoo-2-4e45b5d1e4cdebd18a0e5d606c9950c2e17f8ac9.zip |
bump.
Diffstat (limited to 'dev-db/metakit/metakit-2.4.9.2.ebuild')
-rw-r--r-- | dev-db/metakit/metakit-2.4.9.2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-db/metakit/metakit-2.4.9.2.ebuild b/dev-db/metakit/metakit-2.4.9.2.ebuild new file mode 100644 index 000000000000..b772f9d53895 --- /dev/null +++ b/dev-db/metakit/metakit-2.4.9.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2003 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.9.2.ebuild,v 1.1 2003/04/05 07:02:30 woodchip Exp $ + +IUSE="python tcltk" + +S=${WORKDIR}/${P} +DESCRIPTION="Embedded database library" +HOMEPAGE="http://www.equi4.com/metakit/" +SRC_URI="http://www.equi4.com/pub/mk/${P}.tar.gz" +DEPEND="python? ( >=dev-lang/python-2.2.1 ) tcltk? ( >=dev-lang/tcl-8.3.3-r2 )" +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 + dodir /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/* +} |