blob: a0dc61c1f1522c6fc5906469f334b18ae1cd63e4 (
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
|
# Copyright 1999-2008 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.10 2008/01/29 12:10:51 opfer 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
sed -i -e "s|\$prefix/lib|\$prefix/$(get_libdir)|g" configure
}
src_compile() {
econf --libdir=/usr/$(get_libdir)|| die
emake || die
}
src_install() {
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
}
|