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 <gentoo-lisp+bounces-126-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NVTts-0001Lv-0F
	for garchives@archives.gentoo.org; Thu, 14 Jan 2010 17:54:28 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id DEDFAE0AF3;
	Thu, 14 Jan 2010 17:54:18 +0000 (UTC)
Received: from mail-fx0-f228.google.com (mail-fx0-f228.google.com [209.85.220.228])
	by pigeon.gentoo.org (Postfix) with ESMTP id 7BC54E0AF3
	for <gentoo-lisp@lists.gentoo.org>; Thu, 14 Jan 2010 17:54:18 +0000 (UTC)
Received: by fxm28 with SMTP id 28so16449475fxm.26
        for <gentoo-lisp@lists.gentoo.org>; Thu, 14 Jan 2010 09:54:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:subject:x-enigmail-version:content-type;
        bh=piq7Loo5NJLaKinHAfwrVYmxyUknes+FYdq4b4H0bBU=;
        b=S3z/z3stGSXnV0D3l+rJlevIGBc03m5i74MQXdL/HMPmGWkAdv0BT8mR+uDap9R07j
         SHUOR5KC/ZMehuMedtvcL5KEGtPyNLgHsaBja8y+fEyQDJAzEOEc6UOveDhF/m4F3yj3
         MchYtI0xWDjPuXr2tm6HXEW7VNNyKIhiyi/6I=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject
         :x-enigmail-version:content-type;
        b=XGYj5bOKERAKYCajhnKL9a8ig48iO+7nmIZoDgeJ5Hv1+Y66EWMoV1MObhgX4y8G5K
         DpycyIh8pdkPjWGD6PmN0a7NSjGBSkC9q69BOfI9LJ5ApGcP6Gh/9Dk3RP10OSOafR4h
         x8Yd386n43vbjz+/CwtnQFNy9TdgcALGHENJk=
Received: by 10.223.92.147 with SMTP id r19mr1427259fam.19.1263491656583;
        Thu, 14 Jan 2010 09:54:16 -0800 (PST)
Received: from ?138.96.122.7? (sita-exp.inria.fr [138.96.122.7])
        by mx.google.com with ESMTPS id 22sm1198230fkr.57.2010.01.14.09.54.15
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 14 Jan 2010 09:54:16 -0800 (PST)
Message-ID: <4B4F5A47.6040508@gmail.com>
Date: Thu, 14 Jan 2010 18:54:15 +0100
From: Cyprien Nicolas <c.nicolas@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20100113 Thunderbird/3.0
Precedence: bulk
List-Post: <mailto:gentoo-lisp@lists.gentoo.org>
List-Help: <mailto:gentoo-lisp+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-lisp+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-lisp+subscribe@lists.gentoo.org>
List-Id: Gentoo Lisp mail <gentoo-lisp.gentoo.org>
X-BeenThere: gentoo-lisp@lists.gentoo.org
MIME-Version: 1.0
To: Gentoo-Lisp Mailing List <gentoo-lisp@lists.gentoo.org>
Subject: [gentoo-lisp] Ebuilds for bigloo3.3a_p4 and hop-2.0.0
X-Enigmail-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------080908030204010108020402"
X-Archives-Salt: f46104ab-25c3-418a-bdf0-b720c82b0380
X-Archives-Hash: 897ccd1bfd21a71f765f574ba5604bef

This is a multi-part message in MIME format.
--------------080908030204010108020402
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello lispers,

I'm attaching to this mail two ebuild for the last releases of Bigloo
and Hop, I have mainly adapted the existing ebuilds.

Some notes, about the bigloo.ebuild:

I have to had the threads flag, for dependencies, hop[threads] needs
bigloo[threads], which needs boehm-gc[threads]. That makes the hop
ebuild with three dependencies on hop, I don't know how to make it
clearer, or better.

Then, I had to manually had -fno-omit-frame-pointer to Bigloo's CFLAGS,
for several reasons:
First, for compile-bee, part of the code may be compiled with -pg flag
(for gprof profiling), this option is incompatible with
-fomit-frame-pointer.
Next, at runtime, Bigloo uses the CFLAGS he got at compile time when
calling GCC on the produced C file. so bigloo -p will call gcc -pg (if
enabled), then raise a gcc error.


This ebuild has been ran on both x86 hardened and x86_64 hardened
systems, without any issue except the -pg thing I have bypassed.


Any comment are welcome


Regards,

,Cyprien


--------------080908030204010108020402
Content-Type: text/plain;
 name="bigloo-3.3a_p4.ebuild"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="bigloo-3.3a_p4.ebuild"

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit elisp-common multilib eutils

MY_P=${PN}${PV/_p/-}
MY_P=${MY_P/_alpha/-alpha}
MY_P=${MY_P/_beta/-beta}

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}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"

# bug 254916 for >=dev-libs/boehm-gc-7.1
DEPEND=">=dev-libs/boehm-gc-7.1
		emacs? ( virtual/emacs )
		java? ( virtual/jdk app-arch/zip )
		ssl? ( dev-libs/openssl )
		threads? ( dev-libs/boehm-gc[threads] )"

RDEPEND="dev-libs/boehm-gc"

S=${WORKDIR}/${MY_P}

SITEFILE="50bigloo-gentoo.el"

IUSE="emacs java ssl threads"

# -fomit-frame-pointer is not compatible with -pg, gcc raises an error
CFLAGS="${CFLAGS} -fno-omit-frame-pointer"

src_compile() {
	# 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=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--libdir=/usr/$(get_libdir) \
		--docdir=/usr/share/doc/${PF} \
		--lispdir=${SITELISP}/bigloo \
		--benchmark=yes \
		--sharedbde=no \
		--sharedcompiler=no \
		--customgc=no \
		--coflags="" \
		--bee=$(if use emacs; then echo full; else echo partial; fi) \
		$(use threads && echo "--enable-pthread --enable-fthread" \
					  || echo "--disable-pthread --disable-fthread") \
		$(use_enable ssl) \
		|| die "configure failed"

	emake || die "emake failed"

	if use emacs; then
		einfo "Compiling bee..."
		emake -j1 compile-bee || die "compiling bee failed"
	fi
}

# default thinks that target doesn't exist
src_test() {
	vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
	emake test || die
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"

	if use emacs; then
		emake DESTDIR="${D}" install-bee || die "install-bee failed"
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
	fi
}

pkg_postinst() {
	use emacs && elisp-site-regen
	if use emacs; then
		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
}

--------------080908030204010108020402
Content-Type: text/plain;
 name="hop-2.0.0.ebuild"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="hop-2.0.0.ebuild"

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit multilib eutils

MY_P=${P/_/-}

DESCRIPTION="Hop is a higher-order language for programming interactive web applications."
HOMEPAGE="http://hop.inria.fr/"
SRC_URI="ftp://ftp-sop.inria.fr/indes/fp/Hop/${MY_P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"

DEPEND=">=dev-scheme/bigloo-3.3a
		ssl? ( dev-scheme/bigloo[ssl] )
		threads? ( dev-scheme/bigloo[threads] )"
RDEPEND=""

IUSE="ssl threads"

S=${WORKDIR}/${MY_P}

pkg_setup() {
	enewgroup hop
	enewuser hop -1 -1 /var/www hop
}

src_compile() {
	# Hop 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 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/$(get_libdir) --etcdir=/etc/hop $(use_enable ssl) $(use_enable threads) || die "configure failed"

	emake || die "emake failed"
}

src_install () {
	emake DESTDIR="${D}" install || die "install failed"
}

--------------080908030204010108020402--