# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: JUline Herfurth # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp S=${WORKDIR}/${P} DESCRIPTION="This is a sample skeleton ebuild file" SRC_URI="http://www.equi4.com/pub/mk/${P}-33.tar.gz " HOMEPAGE="http://www.equi4.com/metakit/" DEPEND="virtual/glibc \ python? ( virtual/python )" # tcltk? ( dev-lang/tcl )" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" src_compile() { local myconf myconf="" if [ -n "`use python`" ] then myconf=" --enable-python" fi # if [ -n "`use tcltk`" ] # then # myconf="$myconf --with-tcl=????" # fi ./unix/configure \ ${myconf} \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" emake || die } src_install () { # no cleaner way to do that ? local pydir pydir=`python-config | cut -d" " -f1 | sed -e 's/-l//g'`/site-packages echo ${D} echo ${WORKDIR} make DESTDIR=${D} install || die make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ install || die mkdir -p ${D}/usr/lib/${pydir} # FIXME : should this go in python hierarchy ? # mv ${D}/usr/lib/*py* ${D}/usr/lib/${pydir} # This must go in python directory cp Mk4py.so ${D}/usr/lib/${pydir} cp python/metakit.py ${D}/usr/lib/${pydir} dodoc CHANGES README WHATSNEW ${FILESDIR}/metakit-license.txt dohtml MetaKit.html dohtml -a html,gif,png,jpg -r doc/* }