forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scsh-0.6.7-r1.ebuild
44 lines (34 loc) · 1007 Bytes
/
scsh-0.6.7-r1.ebuild
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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
inherit eutils multilib
MY_PV="${PV%*.*}"
DESCRIPTION="Unix shell embedded in Scheme"
HOMEPAGE="http://www.scsh.net/"
SRC_URI="ftp://ftp.scsh.net/pub/scsh/${MY_PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND="!dev-scheme/scheme48"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PV}-Makefile.in-doc-dir-gentoo.patch"
epatch "${FILESDIR}/${PV}-Makefile.in-LDFLAGS.patch"
epatch "${FILESDIR}/${PV}-Missing-includes.patch"
}
src_configure() {
use amd64 && multilib_toolchain_setup x86
SCSH_LIB_DIRS="/usr/$(get_libdir)/${PN}"
econf \
--libdir=/usr/$(get_libdir) \
--includedir=/usr/include \
--with-lib-dirs-list=${SCSH_LIB_DIRS}
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "make install failed."
local ENVD="${T}/50scsh"
echo "SCSH_LIB_DIRS=\"${SCSH_LIB_DIRS}\"" > "${ENVD}"
doenvd "${ENVD}"
}