summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyprien Nicolas (fulax) <c.nicolas+gentoo@gmail.com>2010-09-10 18:36:11 +0200
committerChema Alonso Josa <nimiux@gentoo.org>2018-03-09 22:33:24 +0100
commit62b4b2412b1dccfdba97cefeec6b766530a8a76e (patch)
tree33b72c6248753efcc0d320336aaa55e7e2969944 /dev-scheme/bigloo
parentdev-scheme/hop: Bump to 2.1.1 and 2.2.0_pre2 (diff)
downloadlisp-62b4b2412b1dccfdba97cefeec6b766530a8a76e.tar.gz
lisp-62b4b2412b1dccfdba97cefeec6b766530a8a76e.tar.bz2
lisp-62b4b2412b1dccfdba97cefeec6b766530a8a76e.zip
dev-scheme/bigloo: Add Septembre 10's beta version
Diffstat (limited to 'dev-scheme/bigloo')
-rw-r--r--dev-scheme/bigloo/Manifest3
-rw-r--r--dev-scheme/bigloo/bigloo-3.4b_beta20100910.ebuild180
-rw-r--r--dev-scheme/bigloo/files/bigloo-3.4b-sqltiny_support.patch71
3 files changed, 254 insertions, 0 deletions
diff --git a/dev-scheme/bigloo/Manifest b/dev-scheme/bigloo/Manifest
index 78555ffd..aa088f37 100644
--- a/dev-scheme/bigloo/Manifest
+++ b/dev-scheme/bigloo/Manifest
@@ -3,6 +3,9 @@ AUX bigloo-3.4a-fix_APIs_test_invocation.patch 674 RMD160 6f94b2667030d1281854cb
AUX bigloo-3.4a-gcc45_fortify.patch 3218 RMD160 6571190c62d9b4cb6365e90e1ae4c617dd0bae09 SHA1 3d5c01dc5e7d42b315cb5c1807e71f4c35e76d84 SHA256 ffc2c9f0bb14b7421c0131326302f39df1477393ce893c3b31015ed6cbad6707
AUX bigloo-3.4a-no_strip.patch 1223 RMD160 dbca1695dd4c8784c1e43f43a704de2da9cce041 SHA1 1449381be7b1e6e7ecbb9141d1d858aefe991f67 SHA256 a6ca8a0c7f5cf28bf4a2b9ab0afe1a902101802b115a34d752e8be54ce95cc5c
AUX bigloo-3.4a-sqltiny_support.patch 2504 RMD160 30ca3cc33f8462b99a9d758aece9a53818f2e640 SHA1 5683bd73934c26074ae1184da30edfb3a2c7fe73 SHA256 3981a369345aba648f95e0b460c2fd1203b2f85bb15ef35ed34e8385f0bfd129
+AUX bigloo-3.4b-sqltiny_support.patch 2504 RMD160 30ca3cc33f8462b99a9d758aece9a53818f2e640 SHA1 5683bd73934c26074ae1184da30edfb3a2c7fe73 SHA256 3981a369345aba648f95e0b460c2fd1203b2f85bb15ef35ed34e8385f0bfd129
DIST bigloo3.4a-3.tar.gz 13631619 RMD160 8c9e5a2b3d4adfa2b28d1554681bda42190d7dd9 SHA1 1e925718c81f4067740ca63eb44e97aae6423397 SHA256 c6bf16a60a16447444dc1e3eadf061d37f2796ebb75f3190415fb14aa06bc4bd
+DIST bigloo3.4b-beta10Sep10.tar.gz 13935139 RMD160 04675de140fee6575cd8fb577f1d6c46a0c64b8e SHA1 d76c36cf193a25ef3b8a7e53f0e4d2bf77dfeff3 SHA256 590e0a5e33c29e1f91ca1f6d1f32c4a3733a5d07e550d2ee5ef9cd7586a4384f
EBUILD bigloo-3.4a_p3.ebuild 4921 RMD160 9b97db1dc93ab79a5acea3cfb5aa42723167e1db SHA1 1696577813dca4fa58957d089075a2eebe1da78d SHA256 e63811286523bbed169d4bc3cab7f23d1f14816a0dc6c26cde2c7e031d8a46e8
+EBUILD bigloo-3.4b_beta20100910.ebuild 4944 RMD160 f5afc3b58f5486209eb7a8e61ef22ea455a4bc49 SHA1 2c325cbe09b29c965e3005b43f325dc092207d31 SHA256 cb063673df316c52d562835f7a95e4bd28871d99007afae6a9bd02170381ae2b
MISC metadata.xml 2212 RMD160 d8b967be253fa848dd99fe41b4e828b8cbe492e0 SHA1 6e3cd0111857e19dcf4958caddbe80f4d8aae004 SHA256 3091bfd219db6e0b8d3f1e61647f1897be9a9619c3b3ef6b8592c47a8e494b48
diff --git a/dev-scheme/bigloo/bigloo-3.4b_beta20100910.ebuild b/dev-scheme/bigloo/bigloo-3.4b_beta20100910.ebuild
new file mode 100644
index 00000000..f9e71c7a
--- /dev/null
+++ b/dev-scheme/bigloo/bigloo-3.4b_beta20100910.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit elisp-common multilib eutils flag-o-matic java-pkg-opt-2
+
+MY_P=${PN}${PV/_p/-}
+MY_P=${MY_P/_alpha*/-alpha}
+MY_P=${MY_P/_beta*/-beta}
+
+BGL_RELEASE=${PV/_*/}
+
+DESCRIPTION="Bigloo is a Scheme implementation."
+HOMEPAGE="http://www-sop.inria.fr/indes/fp/Bigloo/bigloo.html"
+SRC_URI="ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${MY_P}10Sep10.tar.gz
+ ftp://ftp-sop.inria.fr/members/Cyprien.Nicolas/mirror/${MY_P}10Sep10.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="calendar crypto debug doc emacs gstreamer java mail multimedia openpgp packrat sqlite srfi1 srfi27 ssl text threads web"
+
+# bug 254916 for >=dev-libs/boehm-gc-7.1
+DEPEND_COMMON=">=dev-libs/boehm-gc-7.1[threads?]
+ emacs? ( virtual/emacs )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl )
+ gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )"
+
+DEPEND="${DEPEND_COMMON} java? ( >=virtual/jdk-1.5 app-arch/zip )"
+RDEPEND="${DEPEND_COMMON} java? ( >=virtual/jre-1.5 )"
+
+S=${WORKDIR}/${MY_P/-[ab]*/}
+
+SITEFILE="50bigloo-gentoo.el"
+
+pkg_setup() {
+ if use gstreamer; then
+ if ! use threads; then
+ die "USE Dependency: 'gstreamer' needs 'threads'. You may enable 'threads', or disable 'gstreamer'."
+ fi
+
+ if ! use multimedia; then
+ die "USE Dependency: 'gstreamer' needs 'multimedia'."
+ fi
+ fi
+
+ if use packrat && ! use srfi1; then
+ die "USE Dependency: 'packrat' needs 'srfi1'."
+ fi
+
+ if ! use x86 && use srfi27; then
+ ewarn "srfi27 is known to only work on x86 architectures. It is higly suggested that you disable it." \
+ " It is not supported by upstream, and tests *will* fail. You've been warned."
+ fi
+
+ if ! use crypto && use openpgp; then
+ die "USE Dependency: 'openpgp' needs 'crypto'."
+ fi
+}
+
+src_prepare() {
+ # Force libbigloosqlite to be build if sqltiny is used
+ epatch "${FILESDIR}/${PN}-${BGL_RELEASE}-sqltiny_support.patch"
+
+ # bglmem is not built according to the EFLAGS
+ # (which forces LDFLAGS, see emake below)
+ ebegin "Adding EFLAGS to BMEMFLAGS"
+ sed -i 's/BMEMFLAGS[^=]\+= /&$(EFLAGS) /' bde/bmem/Makefile
+ eend $?
+
+ # Removing bundled boehm-gc
+ rm -rf gc || die
+}
+
+src_configure() {
+ filter-flags -fomit-frame-pointer
+
+ local myconf=""
+
+ # Filter Zile emacs replacement. Bug #336717
+ if use emacs; then
+ myconf="--emacs=emacs --bee=full"
+ else
+ myconf="--emacs=false --bee-=partial"
+ fi
+
+ # Sqlite backend
+ myconf="${myconf} --sqlite-backend=$(if use sqlite; then echo sqlite; else echo sqltiny; fi)"
+
+ # Need fix for bglpkg, which depends on pkglib, pkgcomp, sqlite and web.
+ # This cannot be disabled for now, working on a fix.
+ myconf="${myconf} --enable-pkgcomp --enable-pkglib --enable-web"
+
+ # Bigloo doesn't use autoconf and consequently a lot of options used by econf give errors
+ # Manuel Serrano says: "Please, dont talk to me about autoconf. I simply dont want to hear about it..."
+ ./configure \
+ $(use java && echo "--jvm=yes --java=$(java-config --java) --javac=$(java-config --javac)") \
+ --prefix="${EPREFIX}/usr" \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --lispdir="${SITELISP}/${PN}" \
+ --benchmark=yes \
+ --sharedbde=no \
+ --sharedcompiler=no \
+ --customgc=no \
+ --coflags="" \
+ --ldflags="${LDFLAGS}" \
+ --strip=no \
+ $(use debug && echo "--debug") \
+ ${myconf} \
+ $(use_enable calendar) \
+ $(use_enable crypto) \
+ $(use_enable gstreamer) \
+ $(use_enable mail) \
+ $(use_enable multimedia) \
+ $(use_enable packrat) \
+ $(use_enable openpgp) \
+ $(use_enable srfi1) \
+ $(use_enable srfi27) \
+ $(use_enable ssl) \
+ $(use_enable text) \
+ $(use_enable threads) \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake EFLAGS='-ldopt "$(LDFLAGS)"' || die "emake failed"
+
+ if use emacs; then
+ einfo "Compiling bee..."
+ emake compile-bee EFLAGS='-ldopt "$(LDFLAGS)"' || die "compiling bee failed"
+ fi
+}
+
+# default thinks that target doesn't exist
+src_test() {
+ emake -j1 test || die "emake test failed"
+}
+
+src_install() {
+ # Makefile:671:install: install-progs install-docs
+ emake DESTDIR="${D}" install-progs || die "install failed"
+
+ if use emacs; then
+ einfo "Installing bee..."
+ emake DESTDIR="${D}" install-bee || die "install-bee failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ if use doc; then
+ dohtml -r manuals/ || die "dohtml failed"
+ doinfo manuals/*.info* || die "doinfo failed"
+ fi
+
+ for man in manuals/*.man; do
+ man1=${man#manuals/}
+ newman ${man} ${man1/.man/.1} || die "newman ${man/.man/.1} failed"
+ done
+
+ dodoc ChangeLog README || die "dodoc failed"
+ newdoc LICENSE COPYING || die "newdoc failed"
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+ elog "In order to use the bee-mode, add"
+ elog " (require 'bmacs)"
+ elog "to your ~/.emacs file"
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-scheme/bigloo/files/bigloo-3.4b-sqltiny_support.patch b/dev-scheme/bigloo/files/bigloo-3.4b-sqltiny_support.patch
new file mode 100644
index 00000000..a26e3eb3
--- /dev/null
+++ b/dev-scheme/bigloo/files/bigloo-3.4b-sqltiny_support.patch
@@ -0,0 +1,71 @@
+--- configure.old 2010-08-28 20:50:06.000000000 +0200
++++ configure 2010-08-29 00:07:47.000000000 +0200
+@@ -160,6 +160,7 @@
+
+ #*--- sqlite library (left blank for autoconfiguration) ---------------*/
+ sqlitelibs=
++sqlitesrfi="sqlite"
+
+ #*--- dbus library (left blank for autoconfiguration) -----------------*/
+ dbuslibs=
+@@ -873,6 +874,10 @@
+ --hostsh=*)
+ hostsh="`echo $1 | sed 's/^[^=]*=//'`";;
+
++ # [Cyp/20100828] sqlite/sqltiny have to be managed separately
++ --sqlite-backend=sqlite|--sqlite-backend=sqltiny)
++ sqlitesrfi="`echo $1 | sed 's/^[^=]*=//'`";;
++
+ -*)
+ if [ "$1" != "-h" -a "$1" != "-help" -a "$1" != "--help" ]; then
+ echo "*** ERROR: Illegal option \"$1\""
+@@ -997,6 +1002,7 @@
+ echo " --disable-gmp (see --no-gmp)" >&2;
+ echo " --customgmp=yes|no [default yes]" >&2;
+ echo " --gmpsrc=file [default \$GMP\")" >&2;
++ echo " --sqlite-backend=sqlite|sqltiny (defaults to sqlite if available)" >&2;
+ echo "" >&2;
+ echo "Configuration settings:" >&2;
+ echo " --bigloo.h[=file]" >&2;
+@@ -1145,6 +1151,13 @@
+ exit 1
+ fi
+
++# [Cyp/20100828] Check is the sqlite backend is correct
++if [ $sqlitesrfi != "sqlite" -a $sqlitesrfi != "sqltiny" ]; then
++ echo "*** ERROR: Invalid sqlite backend."
++ echo "Correct values are: sqlite, sqltiny."
++ exit 1
++fi
++
+ #*---------------------------------------------------------------------*/
+ #* Configure bootstrap */
+ #*---------------------------------------------------------------------*/
+@@ -1804,8 +1817,10 @@
+ #*---------------------------------------------------------------------*/
+ # find out the C library for sqlite
+ if [ "$sqlite_is_enabled " = "yes " ]; then
+- if [ "$sqlitelibs " = " " ]; then
+- sqlitelibs=`$autoconf sqlite --cflags="$cflags"` || exit 1;
++ if [ "$sqlitesrfi" = "sqlite" ]; then
++ if [ "$sqlitelibs " = " " ]; then
++ sqlitelibs=`$autoconf sqlite --cflags="$cflags"` || exit 1;
++ fi
+ fi
+ fi
+
+@@ -2966,13 +2981,7 @@
+
+ # SQLITE
+ echo "SQLITELIBS=$sqlitelibs" >> $makefile_cfg
+- if [ "$sqlitelibs " = " " ]; then
+- sqlitesrfi=sqltiny;
+- echo "SQLITESRFI=sqltiny" >> $makefile_cfg
+- else
+- sqlitesrfi=sqlite;
+- echo "SQLITESRFI=sqlite" >> $makefile_cfg
+- fi
++ echo "SQLITESRFI=$sqlitesrfi" >> $makefile_cfg
+
+ echo ";; automatically generated. Don't edit" > api/sqlite/src/Misc/sqlite.init
+ cat api/sqlite/src/Misc/sqlite.init.in \