Re: [gentoo-dev] [RFC] new vala.eclass

2012-09-12 Thread Alexandre Rostovtsev
On Sun, 2012-09-09 at 22:09 -0400, Alexandre Rostovtsev wrote: > Revised proposal with suggestions from Nirbheek. VALA_API_VERSION has > been split into max and min to make it easier for packages to depend on > a range of vala slots. > > # Copyright 1999-2012 Gentoo Foundation > # Distributed unde

Re: [gentoo-dev] [RFC] new vala.eclass

2012-09-09 Thread Alexandre Rostovtsev
Revised proposal with suggestions from Nirbheek. VALA_API_VERSION has been split into max and min to make it easier for packages to depend on a range of vala slots. # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: v

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-27 Thread Alexandre Rostovtsev
Third update; Alexis made a convincing argument that vala_pkg_setup should be changed to vala_src_prepare. # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: vala.eclass # @MAINTAINER: # gn...@gentoo.org # @AUTHOR: #

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-27 Thread Alexis Ballier
On Mon, 27 Aug 2012 00:45:45 -0400 Alexandre Rostovtsev wrote: > On Sun, 2012-08-26 at 22:45 -0400, Alexis Ballier wrote: > > On Sun, 26 Aug 2012 19:43:32 -0400 > > Alexandre Rostovtsev wrote: > > > The variables that vala_pkg_setup sets are needed only at build > > > time. > > > > so it should

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
On Sun, 2012-08-26 at 22:45 -0400, Alexis Ballier wrote: > On Sun, 26 Aug 2012 19:43:32 -0400 > Alexandre Rostovtsev wrote: > > The variables that vala_pkg_setup sets are needed only at build time. > > so it should be vala_src_prepare / unpack instead ? > definitely not anything pkg_* imho IMHO

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexis Ballier
On Sun, 26 Aug 2012 19:43:32 -0400 Alexandre Rostovtsev wrote: > On Sun, 2012-08-26 at 15:45 -0700, Zac Medico wrote: > > Note that pkg_setup is called for binary packages too, which means > > that DEPEND may not necessarily be installed. In EAPI 4 you can > > check the MERGE_TYPE variable which

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
Second update, incorporating suggestions by Ulrich and Duncan. # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: vala.eclass # @MAINTAINER: # gn...@gentoo.org # @AUTHOR: # Alexandre Rostovtsev # @BLURB: Sets up the

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
On Sun, 2012-08-26 at 15:45 -0700, Zac Medico wrote: > Note that pkg_setup is called for binary packages too, which means that > DEPEND may not necessarily be installed. In EAPI 4 you can check the > MERGE_TYPE variable which can have a value of binary, source, orbuildonly. The variables that vala

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Zac Medico
On 08/25/2012 11:59 PM, Alexandre Rostovtsev wrote: > On Sat, 2012-08-25 at 23:45 +0200, Ulrich Mueller wrote: >>> On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: >> >>> export VALAC=$(type -P valac-${VALA_API_VERSION}) >>> export VALA=$(type -P vala-${VALA_API_VERSION}) >>> export

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
On Sun, 2012-08-26 at 02:59 -0400, Alexandre Rostovtsev wrote: > In which case, the vala commands that are pulled in via DEPEND will be > (unless I am completely wrong about how pkg_config works) available > during pkg_config. > > Commands that are not pulled in via DEPEND of course might not be >

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
On Sun, 2012-08-26 at 02:59 -0400, Alexandre Rostovtsev wrote: > path=$(type -P valac-${VALA_API_VERSION}) > [[ -n "${path}" ]] && VALAC="${path}" > > path=$(type -P vala-${VALA_API_VERSION}) > [[ -n "${path}" ]] && VALA="${path}" > > path=$(type -P vala-gen-introspe

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-26 Thread Alexandre Rostovtsev
On Sat, 2012-08-25 at 23:45 +0200, Ulrich Mueller wrote: > > On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: > > > export VALAC=$(type -P valac-${VALA_API_VERSION}) > > export VALA=$(type -P vala-${VALA_API_VERSION}) > > export VALA_GEN_INTROSPECT=$(type -P > > vala-gen-introspec

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Ulrich Mueller
> On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: > export VALAC=$(type -P valac-${VALA_API_VERSION}) > export VALA=$(type -P vala-${VALA_API_VERSION}) > export VALA_GEN_INTROSPECT=$(type -P > vala-gen-introspect-${VALA_API_VERSION}) > export VAPIGEN="$(type -P vapige

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Alexandre Rostovtsev
Updated version, incorporating suggestions by Tomáš and Diego, and fixing VAPIGEN_MAKEFILE to work with dev-lang/vala-common. # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # @ECLASS: vala.eclass # @MAINTAINER: # gn...@gento

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Diego Elio Pettenò
On 25/08/2012 10:25, Tomáš Chvátal wrote: >> > if ! [[ -d "${T}/pkgconfig" ]]; then >> > mkdir "${T}/pkgconfig" || die "mkdir failed" >> > fi > Same as above Even better use mkdir -p. -- Diego Elio Pettenò — Flameeyes flamee...@flameeyes.eu — http://blog.flameeyes

Re: [gentoo-dev] [RFC] new vala.eclass

2012-08-25 Thread Tomáš Chvátal
2012/8/25 Alexandre Rostovtsev : Hi man, *snip* > > case "${EAPI:-0}" in > 0|1|2) > die "EAPI=${EAPI} is not supported" > ;; > *) > EXPORT_FUNCTIONS pkg_setup > ;; > esac Any reson for not supporting ALL known eapis?