From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SaOGa-0002n0-2N for garchives@archives.gentoo.org; Fri, 01 Jun 2012 09:35:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D58DE0552; Fri, 1 Jun 2012 09:35:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 53E27E0552 for ; Fri, 1 Jun 2012 09:35:24 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4AD701B401A for ; Fri, 1 Jun 2012 09:35:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id DB588E5428 for ; Fri, 1 Jun 2012 09:35:21 +0000 (UTC) From: "Cyprien Nicolas" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Cyprien Nicolas" Message-ID: <1338543314.f38c669812fc77973d0ab7668a43e8323dbe71ae.fulax@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: dev-scheme/bigloo/ X-VCS-Repository: proj/lisp X-VCS-Files: dev-scheme/bigloo/bigloo-3.8c.ebuild dev-scheme/bigloo/metadata.xml X-VCS-Directories: dev-scheme/bigloo/ X-VCS-Committer: fulax X-VCS-Committer-Name: Cyprien Nicolas X-VCS-Revision: f38c669812fc77973d0ab7668a43e8323dbe71ae X-VCS-Branch: master Date: Fri, 1 Jun 2012 09:35:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 51c5144b-4c13-487b-9b03-d2ee2e526cf7 X-Archives-Hash: 9ba9f8cd6bbc7a3374d9d205bbdb989d commit: f38c669812fc77973d0ab7668a43e8323dbe71ae Author: Cyprien Nicolas (fulax) gmail co= m> AuthorDate: Fri Jun 1 09:35:14 2012 +0000 Commit: Cyprien Nicolas gmail com> CommitDate: Fri Jun 1 09:35:14 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/lisp.git;a=3D= commit;h=3Df38c6698 dev-scheme/bigloo: bump to 3.8c (Portage version: 2.2.0_alpha108/git/Linux x86_64, unsigned Manifest comm= it) --- dev-scheme/bigloo/bigloo-3.8c.ebuild | 242 ++++++++++++++++++++++++++++= ++++++ dev-scheme/bigloo/metadata.xml | 10 +- 2 files changed, 249 insertions(+), 3 deletions(-) diff --git a/dev-scheme/bigloo/bigloo-3.8c.ebuild b/dev-scheme/bigloo/big= loo-3.8c.ebuild new file mode 100644 index 0000000..b03f674 --- /dev/null +++ b/dev-scheme/bigloo/bigloo-3.8c.ebuild @@ -0,0 +1,242 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D"4" + +Months=3D( "Dec" "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "= Oct" "Nov" "Dec" ) + +inherit elisp-common multilib eutils flag-o-matic java-pkg-opt-2 + +MY_P=3D${PN}${PV/_p/-} +MY_P=3D${MY_P/_alpha*/-alpha} +MY_P=3D${MY_P/_beta*/-beta} + +# Handling of alpha and beta releases +if [[ $PV =3D *_alpha* ]] || [[ $PV =3D *_beta* ]]; then + date=3D${PV/*_alpha/} + date=3D${date/*_beta/} + year=3D${date:2:2} + month=3D${date:4:2} + if [ ${month:0:1} =3D "0" ]; then + # Remove the initial "0" as 08 and 09 are considered as octal values + month=3D${month:1:1} + fi + month=3D${Months[$month]} + day=3D${date:6:2} + MY_P=3D"${MY_P}${day}${month}${year}" +fi + +BGL_RELEASE=3D${PV/_*/} + +DESCRIPTION=3D"Bigloo is a Scheme implementation." +HOMEPAGE=3D"http://www-sop.inria.fr/indes/fp/Bigloo/bigloo.html" +SRC_URI=3D"ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${MY_P}.tar.gz + ftp://ftp.cnic.fr/gentoo-lisp-overlay/${MY_P}.tar.gz" + +LICENSE=3D"GPL-2 LGPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~ppc ~x86" +IUSE=3D"alsa avahi bglpkg calendar crypto csv debug doc emacs flac gmp g= streamer java mail mp3 multimedia openpgp packrat sqlite srfi1 srfi27 ssl= text threads web" +REQUIRED_USE=3D" + alsa? ( multimedia ) + bglpkg? ( web ) + flac? ( alsa ) + gstreamer? ( multimedia threads ) + mp3? ( alsa ) + openpgp? ( crypto ) + packrat? ( srfi1 ) + srfi27? ( x86? ( gmp ) ) +" + +# bug 254916 for >=3Ddev-libs/boehm-gc-7.1 +DEPEND=3D">=3Ddev-libs/boehm-gc-7.1[threads?] + alsa? ( media-libs/alsa-lib ) + avahi? ( net-dns/avahi ) + emacs? ( virtual/emacs ) + flac? ( media-libs/flac ) + gmp? ( dev-libs/gmp ) + gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base ) + java? ( >=3Dvirtual/jdk-1.5 app-arch/zip ) + mp3? ( media-sound/mpg123 ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( dev-libs/openssl ) +" +RDEPEND=3D"${DEPEND}" + +RESTRICT=3D"mirror" + +S=3D${WORKDIR}/${MY_P/-[ab]*/} + +SITEFILE=3D"50bigloo-gentoo.el" + +pkg_pretend() { + if use srfi27 && use amd64; then + #TODO: 'dev-scheme/bigloo srfi27' in arch/amd64/package.use.mask? + ewarn "srfi27 is known to only work on 32-bit architectures." \ + "This IUSE is ignored on amd64." + fi +} + +src_prepare() { + # Removing bundled boehm-gc + rm -rf gc || die + + # bug 354751: Fix '[a-z]' sed range for non ascii LC_COLLATE order + sed 's/a-z/[:alpha:]/' -i configure autoconf/* || die 'sed s/a-z/[:alph= a:]/ failed' + + java-pkg-opt-2_src_prepare +} + +src_configure() { + filter-flags -fomit-frame-pointer + + local myconf=3D"" + + # Filter Zile emacs replacement. Bug #336717 + if use emacs; then + myconf=3D"--bee=3Dfull --emacs=3D${EMACS} --lispdir=3D${SITELISP}/${PN= }" + else + myconf=3D"--emacs=3Dfalse" + fi + + # Add JCFLAGS to the configure script + # (api/{crypto,openpgp} jvm tests show failures) + if use java; then + sed -e "s/^\(jcflags=3D\)\(.*\)/\\1\"\\2 $(java-pkg_javac-args)\"/" \ + -e 's/jcflags=3D$jcflags/jcflags=3D"$jcflags"/'\ + -i configure + myconf=3D"${myconf} + --jvm=3Dyes" + fi + + # No pkglib/pkgcomp in IUSE, I don't see any need besides bglpkg + # One or the other could be added upon user request + if use bglpkg; then + myconf=3D"${myconf} + --enable-bglpkg --enable-pkgcomp --enable-pkglib" + else + myconf=3D"${myconf} + --disable-bglpkg --disable-pkgcomp --disable-pkglib" + fi + + # srfi27 management + if use amd64; then + myconf=3D"${myconf} + --disable-srfi27" + else + myconf=3D"${myconf} + $(use_enable srfi27)" + fi + + # Put every non quoted configure opt into myconf, for the einfo below + myconf=3D" + --prefix=3D/usr + --libdir=3D/usr/$(get_libdir) + --benchmark=3Dyes + --coflags=3D + --customgc=3Dno + --sharedbde=3Dno + --sharedcompiler=3Dno + --strip=3Dno + $(use debug && echo --debug) + ${myconf} + $(use_enable alsa) + $(use_enable avahi) + $(use_enable calendar) + $(use_enable crypto) + $(use_enable csv) + $(use_enable flac) + $(use_enable gmp) + $(use_enable gstreamer) + $(use_enable mail) + $(use_enable mp3 mpg123) + $(use_enable multimedia) + $(use_enable openpgp) + $(use_enable packrat) + --disable-phone + $(use_enable sqlite) + $(use_enable srfi1) + $(use_enable ssl) + $(use_enable text) + $(use_enable threads) + $(use_enable web) +" + + einfo "Configuring bigloo with:" \ + "--ldflags=3D\"${LDFLAGS}\" $(echo ${myconf} | sed 's/\n\t\t/ /g')" + + # 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 simpl= y dont want to hear about it..." + ./configure --ldflags=3D"${LDFLAGS}" ${myconf} || die "configure failed= " +} + +src_compile() { + emake EFLAGS=3D'-ldopt "$(LDFLAGS)"' || die "emake failed" + + if use emacs; then + einfo "Compiling bee..." + emake compile-bee EFLAGS=3D'-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=3D"${D}" install-progs || die "install failed" + + if use emacs; then + einfo "Installing bee..." + emake DESTDIR=3D"${D}" install-bee || die "install-bee failed" + einfo "Installing API-specific emacs files" + cp -v "${S}"/api/*/emacs/*.el "${D}/${SITELISP}/${PN}" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + else + # Fix EMACS*=3Dfalse in Makefile.config + sed -i \ + -e 's:^\(EMACS=3D\).*$:\1:' \ + -e 's:^\(EMACSBRAND=3D\).*$:\1:' \ + "${D}"/usr/$(get_libdir)/bigloo/${BGL_RELEASE}/Makefile.config \ + || die "sed !emacs in Makefile.config failed" + fi + + dodoc ChangeLog README || die "dodoc failed" + newdoc LICENSE COPYING || die "newdoc failed" + + pushd "${S}/manuals" &>/dev/null + if use doc; then + dohtml -r . || die "dohtml failed" + doinfo *.info* || die "doinfo failed" + fi + + for man in *.man; do + newman ${man} ${man/.man/.1} || die "newman ${man} ${man/.man/.1} fail= ed" + done + popd &>/dev/null + + # Remove created directories which remains empty + pushd "${D}/usr" &>/dev/null + rmdir -p doc/bigloo-${BGL_RELEASE} info man/man1 || die "rm empty dirs = failed" + popd &>/dev/null +} + +pkg_preinst() { + java-pkg-opt-2_pkg_preinst +} + +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/metadata.xml b/dev-scheme/bigloo/metadata.= xml index ce863ba..a878b5d 100644 --- a/dev-scheme/bigloo/metadata.xml +++ b/dev-scheme/bigloo/metadata.xml @@ -2,6 +2,10 @@ scheme + + c.nicolas+bugs@gmail.com + Upstream and Gentoo Lisp Project contributor + Bigloo is a Scheme implementation devoted to one goal: enabling Sche= me based programming style where C(++) is usually required. Bigloo atte= mpts @@ -13,7 +17,7 @@ Scheme and C# programs. - Build bglpkg binary, which can be use to acces= s scmpkg servers (requires web) + Build the bglpkg tool to access scmpkg servers= (requires web) Build the embedded library for calendar prog= ramming Build the embedded cryptographic library bigloo-csv is a library for parsing csv and csv-l= ike data @@ -30,7 +34,7 @@ Build the srfi1 library: List library Build the srfi27 library: Source of Random Bit= s (32bit-arch only, requires gmp) Adds support for SSL connections through dev= -libs/openssl - Enable thread support, it depends on dev= -libs/boehm-gc built with threads use flag + Enable thread support; requires dev-libs= /boehm-gc with threads support Library for dealing with text (e.g. BibTeX parse= r) Library for web programming (e.g. XML, CGI parser= s). Needed for dev-scheme/hop @@ -39,7 +43,7 @@ Manuel.Serrano@inria.fr Manuel Serrano - mailto:bigloo@lists-sop.inria.fr + mailto:bigloo@inria.fr http://www-sop.inria.fr/indes/fp/Bigloo/bigloo-4.html http://www-sop.inria.fr/indes/fp/Bigloo/bigloo-3.html