summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Schouten <hkbst@gentoo.org>2007-06-09 18:24:32 +0000
committerMarijn Schouten <hkbst@gentoo.org>2007-06-09 18:24:32 +0000
commit47cd5d06a7351cecebb6db47e7c0c3ffe381af18 (patch)
treeaa095451f670383bcc8fc4618d89e5d5cd534b1b /dev-scheme/tinyscheme/tinyscheme-1.38.ebuild
parentTwo minor fixes: remove Application category from desktop file and fix typo w... (diff)
downloadgentoo-2-47cd5d06a7351cecebb6db47e7c0c3ffe381af18.tar.gz
gentoo-2-47cd5d06a7351cecebb6db47e7c0c3ffe381af18.tar.bz2
gentoo-2-47cd5d06a7351cecebb6db47e7c0c3ffe381af18.zip
bump, make sure CFLAGS and LDFLAGS are respected and DEBUG is not on by default, install init file which it complained about
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-scheme/tinyscheme/tinyscheme-1.38.ebuild')
-rw-r--r--dev-scheme/tinyscheme/tinyscheme-1.38.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-scheme/tinyscheme/tinyscheme-1.38.ebuild b/dev-scheme/tinyscheme/tinyscheme-1.38.ebuild
new file mode 100644
index 000000000000..3015ad4aed99
--- /dev/null
+++ b/dev-scheme/tinyscheme/tinyscheme-1.38.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2000-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-scheme/tinyscheme/tinyscheme-1.38.ebuild,v 1.1 2007/06/09 18:24:32 hkbst Exp $
+
+MY_P=${PN}${PV}
+DESCRIPTION="Lightweight scheme interpreter"
+HOMEPAGE="http://tinyscheme.sourceforge.net"
+SRC_URI="http://tinyscheme.sourceforge.net/${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack "${A}"; cd ${S}
+ sed 's/PLATFORM_FEATURES = -DUSE_STRLWR=0/#PLATFORM_FEATURES = -DUSE_STRLWR=0/' -i makefile
+ sed 's/CC = gcc -fpic/CC = gcc -fpic ${CFLAGS}/' -i makefile
+ sed 's/LDFLAGS/LOCAL_LDFLAGS/g' -i makefile
+ sed 's/LOCAL_LDFLAGS = -shared/LOCAL_LDFLAGS = -shared ${LDFLAGS}/' -i makefile
+ sed 's/DEBUG=-g -Wno-char-subscripts -O/DEBUG=/' -i makefile
+}
+
+src_install() {
+ INIT_DIR=/usr/share/tinyscheme/
+ newbin scheme tinyscheme
+ dolib libtinyscheme.a libtinyscheme.so
+ insinto ${INIT_DIR}
+ doins init.scm
+ dodir /etc/env.d/ && echo "TINYSCHEMEINIT=\"${INIT_DIR}\"" > ${D}/etc/env.d/50tinyscheme
+}