From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev-return-15028-arch-gentoo-dev=gentoo.org@lists.gentoo.org> Received: (qmail 32134 invoked from network); 19 Aug 2004 20:03:50 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 19 Aug 2004 20:03:50 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1Bxt8X-00075I-Nc for arch-gentoo-dev@lists.gentoo.org; Thu, 19 Aug 2004 20:03:49 +0000 Received: (qmail 9336 invoked by uid 89); 19 Aug 2004 20:03:49 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: <mailto:gentoo-dev@gentoo.org> List-Help: <mailto:gentoo-dev-help@gentoo.org> List-Unsubscribe: <mailto:gentoo-dev-unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-dev-subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 9826 invoked from network); 19 Aug 2004 20:03:47 +0000 Date: Thu, 19 Aug 2004 21:44:41 +0200 From: Matthieu Sozeau <mattam@gentoo.org> To: gentoo-dev@lists.gentoo.org Message-ID: <20040819194441.GA10297@mattam.ath.cx> Mail-Followup-To: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline Organization: Gentoo X-URL: http://dev.gentoo.org/~mattam User-Agent: Mutt/1.5.6i Subject: [gentoo-dev] RFC: findlib/ocamlfind eclass X-Archives-Salt: 2ffecfe4-f220-4dfd-9465-6b6daaef068a X-Archives-Hash: 473c32852eaa34e21c1c383305de3433 --GID0FwUMdk1T2AWN Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, i'd like to add an eclass for ocaml packages using the findlib mechanism to install themselves. It's short and useful. I'll add it if there's no objections. --=20 BOFH Excuse #369: Virus transmitted from computer to sysadmins.=20 Gentoo Developer (ml, emacs) - http://dev.gentoo.org/~mattam --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="findlib.eclass" Content-Transfer-Encoding: quoted-printable # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/eclass/mono.eclass,v 1.1 2003/02/27 16:= 50:51 foser Exp $ # # Author : Matthieu Sozeau <mattam@gentoo.org> # # ocamlfind (a.k.a. findlib) eclass #=20 ECLASS=3D"findlib" INHERITED=3D"$INHERITED $ECLASS" DEPEND=3D"dev-ml/findlib" # Prepare the image for a findlib installation. # We use the stublibs style, so no ld.conf needs to be # updated when a package installs C shared libraries. findlib_src_preinst() { # destdir is the ocaml sitelib local destdir=3D`ocamlfind printconf destdir` dodir ${destdir}=09 export OCAMLFIND_DESTDIR=3D${D}${destdir} =09 # stublibs style dodir ${destdir}/stublibs } # Install with a properly setup findlib findlib_src_install() { findlib_src_preinst make DESTDIR=3D${D} $@ install } --xHFwDpU9dbj6ez1V-- --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBJQMpLp2DOi1vGpoRAiJsAKCLiYdGazEq/+s/bhzht93UK20qOgCfXop7 AVUfZ5MpOmoxDP0nDSuEbLA= =xtZi -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN--