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 1Raxoz-0006vI-Oe for garchives@archives.gentoo.org; Wed, 14 Dec 2011 23:01:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90F9721C38A; Wed, 14 Dec 2011 23:01:07 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 6466F21C38A for ; Wed, 14 Dec 2011 23:01:07 +0000 (UTC) Received: by vbal1 with SMTP id l1so33841vba.40 for ; Wed, 14 Dec 2011 15:01:06 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org MIME-Version: 1.0 Received: by 10.52.182.103 with SMTP id ed7mr809960vdc.54.1323903666682; Wed, 14 Dec 2011 15:01:06 -0800 (PST) Sender: matthew.summers@liquidustech.com Received: by 10.52.17.139 with HTTP; Wed, 14 Dec 2011 15:01:06 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Dec 2011 17:01:06 -0600 X-Google-Sender-Auth: zxgPNEGgNvGPaZi6xjFb1PDX0K0 Message-ID: Subject: Re: [gentoo-python] Trying to write an ebuild From: Matthew Summers To: Michael Cordingley Cc: gentoo-python@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 90582959-667d-457e-9370-6deff2fb0096 X-Archives-Hash: 33e4f4e3f1a69f556e04eef6fe61e8b6 On Wed, Dec 14, 2011 at 2:55 PM, Michael Cordingley wrote: > Hi there, > > I'm trying to create an ebuild for a package that isn't yet in > Portage. =C2=A0QuantLib-0.9.6 is currently in, but no bindings for it in > any other languages are yet there, so I thought I'd try to write up an > ebuild for the python bindings. =C2=A0So far, the ebuild works, right up = to > the compile stage. =C2=A0It fails there, and I can't figure out why. > > The output of the ebuild command can be found here: http://pastebin.com/a= 4Cx2AYi > The current version of the ebuild is here: http://pastebin.com/PB0f1uSf > > The package that it downloads is a package of SWIG bindings for > several different languages. =C2=A0Doing the normal ./configure && make &= & > make install would try to build and install all of the bindings. =C2=A0I'= m > trying to do ./configure && make -C Python && make install to build > only the python bindings. =C2=A0The idea is one package per set of > bindings. =C2=A0Any help would be much appreciated. =C2=A0Thanks! > Hi there, Might I suggest taking a look at another ebuild that builds swig bindings for an example? Please take a look at dev-libs/xapian-bindings, it sounds quite similar to what you may need. As far as one package per binding, I think that its better handled from within a single package, controlled by use flags to enable the various desired bindings. Mainly this will ease maintenance of the package down the line. The ebuild dev-libs/xapian-bindings-1.2.8.ebuild in particular is a great example. HTH, Matthew --=20 Matthew W. Summers Gentoo Foundation Inc.