[gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alexis Ballier
Hi, Oasis [1] is becoming the de factor standard for ocaml packages. I've been bored of copy/pasting always the same code from ebuilds to ebuilds and thus decided to write an eclass simplifying everything. Attached: said eclass, a diff of a random dev-ml package I've converted to illustrate and

[gentoo-dev] [GSoC2012] Cross Container Support Project

2012-03-23 Thread Jing Huang
Hi Everyone, I am a student at Peking University in China. I am very interested in the project of Cross Container Support(http://wiki.gentoo.org/wiki/Google_Summer_of_Code/2012/Ideas#Cross_Container_Support). I have some ideas about the project. Please help me to examine the thoughts. First, I

Re: [gentoo-dev] [GSoC2012] Cross Container Support Project

2012-03-23 Thread Alexey Shvetsov
Hi! Well i have 2 arm lxc containers on amd64 machine. Its works good if qemu support most of needed cross arch instructions Jing Huang писал 2012-03-23 13:36: Hi Everyone, I am a student at Peking University in China. I am very interested in the project of Cross Container Support(). I have

Re: [gentoo-dev] [GSoC2012] Cross Container Support Project

2012-03-23 Thread Brian Harring
On Fri, Mar 23, 2012 at 01:46:17PM +0300, Alexey Shvetsov wrote: Hi! Well i have 2 arm lxc containers on amd64 machine. Its works good if qemu support most of needed cross arch instructions I'd be curious how much of that is native, vs emulated. The hybrid approach of scratchbox/obs has

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Mike Gilbert
On Fri, Mar 23, 2012 at 4:15 AM, Alexis Ballier aball...@gentoo.org wrote: DEPEND==dev-lang/ocaml-3.12[ocamlopt?] DEPEND=${RDEPEND} That looks like a typo. oasis_src_compile() { oasis_src_compile_no_doc if has doc ${IUSE} use doc; then ocaml setup.ml -doc || die

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ciaran McCreesh
On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert flop...@gentoo.org wrote: oasis_src_compile() { oasis_src_compile_no_doc if has doc ${IUSE} use doc; then ocaml setup.ml -doc || die fi } This should probably call use_if_iuse from eutils.eclass, which handles

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 23/03/12 12:02 PM, Ciaran McCreesh wrote: On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert flop...@gentoo.org wrote: oasis_src_compile() { oasis_src_compile_no_doc if has doc ${IUSE} use doc; then ocaml setup.ml -doc || die fi } This

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ciaran McCreesh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 23 Mar 2012 12:14:39 -0400 Ian Stakenvicius a...@gentoo.org wrote: I don't know if I follow this one or not. When inheriting an eclass, all entities within the eclass get merged into the ebuild. As long as there aren't any special

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 23/03/12 12:19 PM, Ciaran McCreesh wrote: On Fri, 23 Mar 2012 12:14:39 -0400 Ian Stakenvicius a...@gentoo.org wrote: I don't know if I follow this one or not. When inheriting an eclass, all entities within the eclass get merged into the

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ian Stakenvicius
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 23/03/12 12:32 PM, Ian Stakenvicius wrote: On 23/03/12 12:19 PM, Ciaran McCreesh wrote: On Fri, 23 Mar 2012 12:14:39 -0400 Ian Stakenvicius a...@gentoo.org wrote: I don't know if I follow this one or not. When inheriting an eclass, all

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ciaran McCreesh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 23 Mar 2012 12:32:05 -0400 Ian Stakenvicius a...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 23/03/12 12:19 PM, Ciaran McCreesh wrote: On Fri, 23 Mar 2012 12:14:39 -0400 Ian Stakenvicius a...@gentoo.org

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Mike Gilbert
On Fri, Mar 23, 2012 at 12:02 PM, Ciaran McCreesh ciaran.mccre...@googlemail.com wrote: On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert flop...@gentoo.org wrote: oasis_src_compile() {     oasis_src_compile_no_doc     if has doc ${IUSE} use doc; then             ocaml setup.ml -doc ||

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ciaran McCreesh
On Fri, 23 Mar 2012 12:50:51 -0400 Mike Gilbert flop...@gentoo.org wrote: use_if_iuse is called from functions in several eclasses already in the tree. See chromium, kde4-base, qt4-build, and toolchain. Are all of these usages incorrect? Do you have an alternate solution? We had this

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Mike Gilbert
On Fri, Mar 23, 2012 at 12:52 PM, Ciaran McCreesh ciaran.mccre...@googlemail.com wrote: On Fri, 23 Mar 2012 12:50:51 -0400 Mike Gilbert flop...@gentoo.org wrote: use_if_iuse is called from functions in several eclasses already in the tree. See chromium, kde4-base, qt4-build, and toolchain.

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alexandre Rostovtsev
On Fri, 2012-03-23 at 12:50 -0400, Mike Gilbert wrote: On Fri, Mar 23, 2012 at 12:02 PM, Ciaran McCreesh ciaran.mccre...@googlemail.com wrote: On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert flop...@gentoo.org wrote: oasis_src_compile() { oasis_src_compile_no_doc if has doc

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alexis Ballier
On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert flop...@gentoo.org wrote: On Fri, Mar 23, 2012 at 4:15 AM, Alexis Ballier aball...@gentoo.org wrote: DEPEND==dev-lang/ocaml-3.12[ocamlopt?] DEPEND=${RDEPEND} That looks like a typo. yes, thanks for spotting oasis_src_compile() {

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alec Warner
On Fri, Mar 23, 2012 at 10:09 AM, Alexandre Rostovtsev tetrom...@gentoo.org wrote: On Fri, 2012-03-23 at 12:50 -0400, Mike Gilbert wrote: On Fri, Mar 23, 2012 at 12:02 PM, Ciaran McCreesh ciaran.mccre...@googlemail.com wrote: On Fri, 23 Mar 2012 11:58:47 -0400 Mike Gilbert

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Ciaran McCreesh
On Fri, 23 Mar 2012 11:17:56 -0700 Alec Warner anta...@gentoo.org wrote: In general if you are going to say 'this usage is wrong' then you need some kind of tool to detect and report on it; otherwise a subset of developers will get it wrong. Don't make it easy to do the wrong thing, make it

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Sergei Trofimovich
oasis_use_enable() { echo --override $2 `use $1 echo \true\ || echo \false\` } Mike added 'usex' to 'eutils.eclass' recently, so you might like to use it: (UNTESTED) echo --override $2 $(usex $1 true false) oasis_src_configure() { ocaml setup.ml -configure \

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alec Warner
On Fri, Mar 23, 2012 at 12:37 PM, Ciaran McCreesh ciaran.mccre...@googlemail.com wrote: On Fri, 23 Mar 2012 11:17:56 -0700 Alec Warner anta...@gentoo.org wrote: In general if you are going to say 'this usage is wrong' then you need some kind of tool to detect and report on it; otherwise a

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alexis Ballier
On Fri, 23 Mar 2012 23:11:46 +0300 Sergei Trofimovich sly...@gentoo.org wrote: oasis_use_enable() { echo --override $2 `use $1 echo \true\ || echo \false\` } Mike added 'usex' to 'eutils.eclass' recently, so you might like to use it: (UNTESTED) echo --override $2 $(usex $1

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Alexandre Rostovtsev
On Fri, Mar 23, 2012 at 4:24 PM, Alexis Ballier aball...@gentoo.org wrote: On Fri, 23 Mar 2012 23:11:46 +0300 Sergei Trofimovich sly...@gentoo.org wrote: oasis_src_configure() {     ocaml setup.ml -configure \             --prefix usr \             --libdir /usr/$(get_libdir) \        

[gentoo-dev] Packages up for grabs

2012-03-23 Thread Christoph Mende
Hi, I'm currently lacking time for some packages, so I'm looking for someone to take over a few, most notably: - net-misc/curl - net-dns/c-ares (preferably both together) And while we're at it there's also some lower maintenance packages I'd like to get rid of just because I don't use them

Re: [gentoo-dev] New eclass: oasis.eclass for oasis-based ocaml packages.

2012-03-23 Thread Sergei Trofimovich
oasis_use_enable() { echo --override $2 `use $1 echo \true\ || echo \false\` } Mike added 'usex' to 'eutils.eclass' recently, so you might like to use it: (UNTESTED) echo --override $2 $(usex $1 true false) it needs to print the quotes too, so this wont work It did

Re: [gentoo-dev] Packages up for grabs

2012-03-23 Thread Anthony G. Basile
On 03/23/2012 04:54 PM, Christoph Mende wrote: Hi, I'm currently lacking time for some packages, so I'm looking for someone to take over a few, most notably: - net-misc/curl - net-dns/c-ares (preferably both together) I'm at about my limit, but if no one else wants them, I'll take care of