app-shells/scsh: EAPI 6 bump and clean up.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 8 Dec 2016 22:43:55 +0000 (23:43 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 8 Dec 2016 22:47:47 +0000 (23:47 +0100)
Package-Manager: portage-2.3.0

app-shells/scsh/files/0.6.7-Makefile.in-LDFLAGS.patch
app-shells/scsh/files/0.6.7-Makefile.in-doc-dir-gentoo.patch
app-shells/scsh/scsh-0.6.7-r2.ebuild [new file with mode: 0644]

index b1c6480885d80612ee674b84629030474fe618d5..34d54a53c3aad3b290554a125f04ad8f07d04350 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.in.orig   2010-08-11 16:55:09.246939884 +0200
-+++ Makefile.in        2010-08-11 16:55:31.309819842 +0200
+--- a/Makefile.in.orig 2010-08-11 16:55:09.246939884 +0200
++++ b/Makefile.in      2010-08-11 16:55:31.309819842 +0200
 @@ -853,7 +853,7 @@
  cig/libcig.c:         cig/libcig.scm
  
index 6ec949bb115d5c4bd55bcd0c4e35cc8df273ae9a..d32e24b4e4b081c934499b9c93f67512f0becdc6 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.in.orig   2004-09-24 01:43:55.743685848 +0200
-+++ Makefile.in        2004-09-24 01:43:55.745685544 +0200
+--- a/Makefile.in.orig 2004-09-24 01:43:55.743685848 +0200
++++ b/Makefile.in      2004-09-24 01:43:55.745685544 +0200
 @@ -33,7 +33,7 @@
  host = @host@
  ### End of `configure' section###
diff --git a/app-shells/scsh/scsh-0.6.7-r2.ebuild b/app-shells/scsh/scsh-0.6.7-r2.ebuild
new file mode 100644 (file)
index 0000000..a90d936
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit 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}"
+
+PATCHES=(
+       "${FILESDIR}/${PV}-Makefile.in-doc-dir-gentoo.patch"
+       "${FILESDIR}/${PV}-Makefile.in-LDFLAGS.patch"
+       "${FILESDIR}/${PV}-Missing-includes.patch"
+)
+
+RESTRICT="test" # some tests don't pass.
+
+src_prepare() {
+       default
+}
+
+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
+       local ENVD="${T}/50scsh"
+       echo "SCSH_LIB_DIRS=\"${SCSH_LIB_DIRS}\"" > "${ENVD}" || die
+       doenvd "${ENVD}"
+}