summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/scsh/scsh-0.6.7-r3.ebuild')
-rw-r--r--app-shells/scsh/scsh-0.6.7-r3.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/app-shells/scsh/scsh-0.6.7-r3.ebuild b/app-shells/scsh/scsh-0.6.7-r3.ebuild
new file mode 100644
index 000000000000..26d0d047d90b
--- /dev/null
+++ b/app-shells/scsh/scsh-0.6.7-r3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTICE: SCSH 0.6.7 is 32bit only
+# https://bugs.gentoo.org/589122#c6
+
+EAPI=8
+
+inherit multilib
+
+MY_PV="${PV%*.*}"
+
+DESCRIPTION="Unix shell embedded in Scheme"
+HOMEPAGE="https://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"
+
+RDEPEND="
+ !dev-scheme/scheme48
+ virtual/libcrypt:=
+ amd64? ( virtual/libcrypt:=[abi_x86_32] )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-Makefile.in-AR.patch
+ "${FILESDIR}"/${PV}-Makefile.in-LDFLAGS.patch
+ "${FILESDIR}"/${PV}-Makefile.in-doc-dir-gentoo.patch
+ "${FILESDIR}"/${PV}-Missing-includes.patch
+ "${FILESDIR}"/${PV}-scheme48vm-prelude.h-SMALL_MULTIPLY.patch
+)
+
+src_configure() {
+ use amd64 && multilib_toolchain_setup x86
+
+ export SCSH_LIB_DIRS="/usr/$(get_libdir)/${PN}"
+
+ local myconf=(
+ --includedir=/usr/include
+ --libdir=/usr/$(get_libdir)
+ --with-lib-dirs-list=${SCSH_LIB_DIRS}
+ )
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+
+ # Fix doc install dir
+ mv "${ED}/usr/share/doc/${PN}-${PV}" "${ED}/usr/share/doc/${PF}" || die
+
+ local ENVD="${T}/50scsh"
+ echo "SCSH_LIB_DIRS='\"${SCSH_LIB_DIRS}\"'" > "${ENVD}" || die
+ doenvd "${ENVD}"
+}