summaryrefslogtreecommitdiff
blob: 375238e97de4c0f0cda50d116a7166c8f8ae2b46 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/scsh/scsh-0.6.7.ebuild,v 1.6 2008/08/03 16:10:31 pchrist Exp $

inherit eutils scsh

MV="${PV%*.*}"

DESCRIPTION="Unix shell embedded in Scheme"
HOMEPAGE="http://www.scsh.net/"
SRC_URI="ftp://ftp.scsh.net/pub/scsh/${MV}/${P}.tar.gz"
LICENSE="as-is BSD"
SLOT="0"
KEYWORDS="-amd64 ppc sparc x86"
IUSE=""

DEPEND=""

src_unpack() {
	# SCSH_LIB_DIRS='$SCSH_SCSH_PATH'
	set_layout
	set_path_variables
	unpack ${A}
	cd "${S}"
	if ! use scsh; then
		epatch "${FILESDIR}/${PV}-Makefile.in-doc-dir-gentoo.patch" || die
	fi
}

src_compile() {
	scsh_conf="--prefix=/usr
		--libdir=/usr/$(get_libdir)
		--includedir=/usr/include
		--with-lib-dirs-list=$(scsh_scsh_path)"
	econf "${scsh_conf}" || die
	emake || die
}

src_install() {
	make DESTDIR="${D}" install || die
	dodir /etc/env.d
	cat >"${D}/etc/env.d/50scsh" <<EOF
SCSH_LIB_DIRS='${SCSH_LIB_DIRS}'
EOF
}