# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/ferite/ferite-1.0.2.ebuild,v 1.7 2007/04/22 09:55:33 mabi Exp $ inherit multilib DESCRIPTION="A clean, lightweight, object oriented scripting language" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://www.ferite.org/" DEPEND="virtual/libc >=dev-libs/libpcre-5 dev-libs/libxml2" SLOT="1" LICENSE="as-is" KEYWORDS="~alpha ~amd64 ppc sparc x86" IUSE="" src_unpack() { unpack ${A} cd ${S} sed -i -e '/^fbmdir/s:$(prefix)/share/doc/ferite:/usr/share/doc/${PF}:' Makefile.in sed -i -e 's:$(prefix)/share/doc/ferite:${D}/usr/share/doc/${PF}:' docs/Makefile.in sed -i -e '/$(docsdir)/s:$(DESTDIR)::' docs/Makefile.in sed -i -e '/$(docsDATA_INSTALL)/s:$(DESTDIR)::' docs/Makefile.in sed -i -e '/^LDFLAGS/s:LDFLAGS:#LDFLAGS:' modules/stream/Makefile.in sed -i -e '/^testscriptsdir/s:$(prefix)/share/doc/ferite/:/usr/share/doc/${PF}/:' \ scripts/test/Makefile.in sed -i -e '/^testscriptsdir/s:$(prefix)/share/doc/ferite/:/usr/share/doc/${PF}/:' \ scripts/test/rmi/Makefile.in } src_compile() { econf --libdir=/usr/$(get_libdir)|| die emake || die } src_install() { cd ${S} cp tools/doc/feritedoc ${T} sed -i -e '/^prefix/s:prefix:${T}' -e ${T}/feritedoc sed -i -e '/^$prefix/s:$prefix/bin/ferite:{D}/usr/bin/ferite:' -e ${T}/feritedoc sed -i -e 's:build_c_api_docs.sh $(prefix)/bin/:build_c_api_docs.sh ${T}/:' docs/Makefile.in make DESTDIR=${D} LIBDIR=/usr/$(get_libdir) install || die }