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 1SRj5o-0006RV-Gq for garchives@archives.gentoo.org; Tue, 08 May 2012 12:00:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73D14E078D; Tue, 8 May 2012 12:00:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 31F1DE078D for ; Tue, 8 May 2012 12:00:17 +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 263891B401E for ; Tue, 8 May 2012 12:00:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D0869E542C for ; Tue, 8 May 2012 12:00:14 +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: <1336474557.087d39baefb724cbc39e9d56a94dc19ef77122d4.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.8a_p3.ebuild dev-scheme/bigloo/bigloo-3.8b.ebuild X-VCS-Directories: dev-scheme/bigloo/ X-VCS-Committer: fulax X-VCS-Committer-Name: Cyprien Nicolas X-VCS-Revision: 087d39baefb724cbc39e9d56a94dc19ef77122d4 X-VCS-Branch: master Date: Tue, 8 May 2012 12:00:14 +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: e95c6438-6975-4b8b-ba4c-52c4c027d3fb X-Archives-Hash: 4303c2dfc100f5eb6ce3a6d1cc150684 commit: 087d39baefb724cbc39e9d56a94dc19ef77122d4 Author: Cyprien Nicolas (fulax) gmail co= m> AuthorDate: Tue May 8 10:55:57 2012 +0000 Commit: Cyprien Nicolas gmail com> CommitDate: Tue May 8 10:55:57 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/lisp.git;a=3D= commit;h=3D087d39ba dev-scheme/bigloo: bump to 3.8a_p3 and 3.8b (Portage version: 2.2.0_alpha101/git/Linux i686, signed Manifest commit w= ith key 0xBE63A96F) --- dev-scheme/bigloo/bigloo-3.8a_p3.ebuild | 243 +++++++++++++++++++++++++= ++++++ dev-scheme/bigloo/bigloo-3.8b.ebuild | 243 +++++++++++++++++++++++++= ++++++ 2 files changed, 486 insertions(+), 0 deletions(-) diff --git a/dev-scheme/bigloo/bigloo-3.8a_p3.ebuild b/dev-scheme/bigloo/= bigloo-3.8a_p3.ebuild new file mode 100644 index 0000000..45fed3e --- /dev/null +++ b/dev-scheme/bigloo/bigloo-3.8a_p3.ebuild @@ -0,0 +1,243 @@ +# 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/members/Cyprien.Nicolas/mirror/${MY_P= }.tar.gz" +SRC_URI=3D"ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${MY_P}.tar.gz" + +LICENSE=3D"GPL-2 LGPL-2" +SLOT=3D"0" +#KEYWORDS=3D"" +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/-*/} + +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/bigloo-3.8b.ebuild b/dev-scheme/bigloo/big= loo-3.8b.ebuild new file mode 100644 index 0000000..1dc76de --- /dev/null +++ b/dev-scheme/bigloo/bigloo-3.8b.ebuild @@ -0,0 +1,243 @@ +# 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/members/Cyprien.Nicolas/mirror/${MY_P= }.tar.gz" +SRC_URI=3D"ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${MY_P}.tar.gz" + +LICENSE=3D"GPL-2 LGPL-2" +SLOT=3D"0" +#KEYWORDS=3D"" +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 +}