[gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Dominik Kapusta
Hello guys!

We, the Qt team, would like to include a new eclass in the tree.

The qt4-r2 eclass is meant to help with ebuilds for Qt-based (qmake-based, to 
be precise) applications.

The eclass is attached, and here's a short comparison between qt4-r2 and qt4 
(currently in tree) eclasses:

Removed in qt4-r2:
* obsolete QT4_BUILD_WITH_USE_CHECK and
QT4_OPTIONAL_BUILD_WITH_USE_CHECK hacks.

Improved in qt4-r2:
* eqmake4 function now behaves similarly to qmake itself, i.e.:
- doesn't assume ${PN}.pro, but searches for the project file if not
specified, just like qmake does
- in some cases is able to figure out the correct project file if there
are several of them in one directory (rare case, but technically
possible)

New in qt4-r2:
* automatic generation of linguas_* IUSE, based on LANGS and LANGSLONG 
variables,
* automatic installation of documentation, based on DOCS and DOCSDIR 
variables,
* exported src_configure(), src_compile() and src_install() functions

The qt4-r2 eclass requires EAPI-2.

We have been developing, testing and constantly improving qt4-r2 in qting-edge 
overlay for around a year already. It's working for us and we find it very 
handy compared to the old qt4.eclass.

After pushing qt4-r2 to the tree, we're going to port Qt 4 apps' ebuilds to 
qt4-r2 and deprecate qt4.eclass.


Thanks,
Dominik
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# @ECLASS: qt4-r2.eclass
# @MAINTAINER:
# Ben de Groot yng...@gentoo.org,
# Markos Chandras hwoar...@gentoo.org,
# Davide Pesavento davidep...@gmail.com,
# Dominik Kapusta a...@gentoo.org
# @BLURB: Experimental eclass for Qt4 packages
# @DESCRIPTION:
# This eclass contains various functions that may be useful when
# dealing with packages using Qt4 libraries. Requires EAPI=2.

inherit base eutils multilib toolchain-funcs

export XDG_CONFIG_HOME=${T}

for x in ${LANGSLONG}; do
IUSE=${IUSE} linguas_${x%_*}
done

for x in ${LANGS}; do
IUSE=${IUSE} linguas_${x}
done

qt4-r2_pkg_setup() {
case ${EAPI} in
2) ;;
*)
eerror
eerror The ${ECLASS} eclass requires EAPI=2, but this 
ebuild does not
eerror have EAPI=2 set. The ebuild author or editor 
failed. This ebuild needs
eerror to be fixed. Using ${ECLASS} eclass without 
EAPI=2 will fail.
eerror
die ${ECLASS} eclass requires EAPI=2
;;
esac
}

qt4-r2_src_unpack() {
base_src_unpack

# Fallback to ${WORKDIR}/${MY_P} when ${WORKDIR}/${P} doesn't exist.
# Feel free to re-implement this
if [[ ${S} == ${WORKDIR}/${P}  ! -d ${S}  -d ${WORKDIR}/${MY_P} 
]]; then
ewarn Falling back to '${WORKDIR}/${MY_P}'
S=${WORKDIR}/${MY_P}
fi
}

# @ECLASS-VARIABLE: PATCHES
# @DESCRIPTION:
# In case you have patches to apply, specify them in PATCHES variable. Make sure
# to specify the full path. This variable is used in src_prepare phase.
# example:
# PATCHES=( ${FILESDIR}/mypatch.patch
#   ${FILESDIR}/mypatch2.patch )
#
# @ECLASS-VARIABLE: LANGS
# @DESCRIPTION:
# In case your Qt4 application provides various translations, use this variable
# to specify them in order to populate linguas_* IUSE automatically. Make sure
# that you set this variable BEFORE inheriting qt4-r2 eclass.
# example: LANGS=en el de
#
# @ECLASS-VARIABLE: LANGSLONG
# @DESCRIPTION:
# Same as above, but this variable is for LINGUAS that must be in long format.
# Remember to set this variable BEFORE inheriting qt4-r2 eclass.
# Look at ${PORTDIR}/profiles/desc/linguas.desc for details.
#
# @ECLASS-VARIABLE: DOCS
# @DESCRIPTION:
# Use this variable if you want to install any documentation.
# example: DOCS=README AUTHORS
#
# @ECLASS-VARIABLE: DOCSDIR
# @DESCRIPTION:
# Directory containing documentation. If not specified, ${S} will be used
# instead.
#
# @FUNCTION: qt4-r2_src_prepare
# @DESCRIPTION:
# Default src_prepare function for packages that depend on qt4. If you have to
# override src_prepare in your ebuild, you should call qt4-r2_src_prepare in it,
# otherwise autopatcher will not work!
qt4-r2_src_prepare() {
debug-print-function $FUNCNAME $@

base_src_prepare
}

# @FUNCTION: qt4-r2_src_configure
# @DESCRIPTION:
# Default src_configure function for packages that depend on qt4. If you have to
# override src_configure in your ebuild, call qt4-r2_src_configure in it.
qt4-r2_src_configure() {
debug-print-function $FUNCNAME $@

local project_file=$(_find_project_file)

if [[ -n ${project_file} ]]; then
eqmake4 ${project_file}
else
base_src_configure
fi
}

# @FUNCTION: qt4-r2_src_compile
# @DESCRIPTION:
# Default src_compile function for packages that depends on qt4. If 

[gentoo-dev] my retirement

2009-11-29 Thread Christian Zoffoli
Hi,
   in the last months my real life eated much of my time, I've tried to
fix many things but, actually, I've not much time to work on gentoo
ebuilds ...so it's time to retire.

You can send an email to czoff...@xmerlin.org if you need to contact me.
All my future work on gentoo will be available for download at this url
http://www.xmerlin.org/gentoo/


I hope to help the project in the future.


Best regards,
Christian





Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Dominik Kapusta
On Sunday 29 November 2009 15:54:30 Thomas Anderson wrote:
 On Sun, Nov 29, 2009 at 01:46:59PM +0200, Dominik Kapusta wrote:
  Hello guys!
 
  We, the Qt team, would like to include a new eclass in the tree.
 
  The qt4-r2 eclass is meant to help with ebuilds for Qt-based
  (qmake-based, to be precise) applications.
 
 Haven't look at the content yet. But the name is going to make things
  extremely confusing. I can see people using qt4-r2 just because it has -r2
  (so it is newer than qt4), even if they should use qt4. If you really need
  to introduce a new eclass, you should use a name that accurately reflects
  what it does.
 
 Cheers,
 Thomas
 

The name is actually the simplest possible, and yes, our goal is to switch to 
qt4-r2 in the end (which I mentioned at the end of my first mail). So in 
general, once qt4-r2 is in, no one should use qt4.eclass.

We had several name options, e.g. qt4-tng but qt4-r2 seemed the most 
straightforward. plus -r2 adds the Gentoo flavor, hence is better than e.g. 
qt4-v2 :)

That said, we want qt4-r2 to be a new eclass for Qt-based ebuilds. And we 
can't just make changes to qt4.eclass since there are too many ebuilds using 
it and we would surely break the tree.

Cheers,
Dominik


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Markos Chandras
On Sunday 29 November 2009 16:29:51 Dominik Kapusta wrote:
 On Sunday 29 November 2009 15:54:30 Thomas Anderson wrote:
  On Sun, Nov 29, 2009 at 01:46:59PM +0200, Dominik Kapusta wrote:
   Hello guys!
  
   We, the Qt team, would like to include a new eclass in the tree.
  
   The qt4-r2 eclass is meant to help with ebuilds for Qt-based
   (qmake-based, to be precise) applications.
 
  Haven't look at the content yet. But the name is going to make things
   extremely confusing. I can see people using qt4-r2 just because it has
  -r2 (so it is newer than qt4), even if they should use qt4. If you really
  need to introduce a new eclass, you should use a name that accurately
  reflects what it does.
 
  Cheers,
  Thomas
 
 The name is actually the simplest possible, and yes, our goal is to switch
  to qt4-r2 in the end (which I mentioned at the end of my first mail). So
  in general, once qt4-r2 is in, no one should use qt4.eclass.
 
 We had several name options, e.g. qt4-tng but qt4-r2 seemed the most
 straightforward. plus -r2 adds the Gentoo flavor, hence is better than e.g.
 qt4-v2 :)
 
 That said, we want qt4-r2 to be a new eclass for Qt-based ebuilds. And we
 can't just make changes to qt4.eclass since there are too many ebuilds
  using it and we would surely break the tree.
 
 Cheers,
 Dominik
 
Scarabeus ( Tomas )  proposed this patch [1]. I think it is ok to apply it 

[1]: http://dev.gentoo.org/~scarabeus/qt4-r2.eclass.patch
-- 
Markos Chandras (hwoarang)
Gentoo Linux Developer [KDE/Qt/Sound/Sunrise/Kernel/Bug-wrangler]
Web: http://hwoarang.silverarrow.org


signature.asc
Description: This is a digitally signed message part.


[gentoo-dev] QA last rites for sys-apps/hwinfo

2009-11-29 Thread Diego E . Pettenò

# Diego E. Pettenò flamee...@gentoo.org (29 Nov 2009)
#  on behalf of QA team
#
# Fails to build with recent kernel headers (bug #236449,
# September 2008); ignores LDFLAGS (bug #231934); has
# parallel make issues (bug #264671) and is pending version
# bump since at least April 2009 (bug #266745).
#
# Removal on 2010-01-28
sys-apps/hwinfo



Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Ben de Groot
2009/11/29 Thomas Anderson tander...@gentoo.org:
 I can see people using qt4-r2 just because it has -r2 (so it is newer
 than qt4)

That is exactly the intended behaviour. We would break the tree if we would
simply add the new functionality to the existing qt4.eclass. And in absence
of an eclass versioning mechanism, this is what we came up with. As soon
as existing ebuilds in the tree are ported over to qt4-r2, the old
qt4.eclass will
be removed.

Cheers,
-- 
Ben de Groot
Gentoo Linux developer (qt, media, lxde, desktop-misc)
__



[gentoo-dev] Re: QA last rites for sys-apps/hwinfo

2009-11-29 Thread Ryan Hill
On Sun, 29 Nov 2009 15:56:45 +0100
Diego E. Pettenò flamee...@gmail.com wrote:

 
 # Diego E. Pettenò flamee...@gentoo.org (29 Nov 2009)
 #  on behalf of QA team
 #
 # Fails to build with recent kernel headers (bug #236449,
 # September 2008); ignores LDFLAGS (bug #231934); has
 # parallel make issues (bug #264671) and is pending version
 # bump since at least April 2009 (bug #266745).
 #
 # Removal on 2010-01-28
 sys-apps/hwinfo

The only bug worth removing this over (the first) is fixed by the version
bump, if anyone feels like keeping it.


-- 
fonts, Character is what you are in the dark.
gcc-porting,
wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662


signature.asc
Description: PGP signature


Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Ben de Groot
2009/11/29 Dawid Węgliński c...@gentoo.org:
 On Sunday 29 November 2009 16:59:10 Ben de Groot wrote:
 As soon as existing ebuilds in the tree are ported over to qt4-r2, the old
 qt4.eclass will be removed.

 As far as i remember we don't remove eclasses. Probably you meant deprecated,
 but not removed?

I hate leaving old cruft around, so I definitely meant removed. If
that is against policy,
can you refer me to a document that specifies said policy?

Cheers,
-- 
Ben de Groot
Gentoo Linux developer (qt, media, lxde, desktop-misc)
__



Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Dawid Węgliński
On Monday 30 November 2009 00:19:49 Ben de Groot wrote:
 2009/11/29 Dawid Węgliński c...@gentoo.org:
  On Sunday 29 November 2009 16:59:10 Ben de Groot wrote:
  As soon as existing ebuilds in the tree are ported over to qt4-r2, the
  old qt4.eclass will be removed.
 
  As far as i remember we don't remove eclasses. Probably you meant
  deprecated, but not removed?
 
 I hate leaving old cruft around, so I definitely meant removed. If
 that is against policy,
 can you refer me to a document that specifies said policy?
 
 Cheers,
 

Sorry, i was not up to date with this.

http://devmanual.gentoo.org/eclass-writing/index.html

-- 
Cheers
Dawid Węgliński



Re: [gentoo-dev] RFC: qt4-r2.eclass - new eclass for Qt-based apps

2009-11-29 Thread Tomáš Chvátal
Dne neděle 29 Listopad 2009 23:11:23 Dawid Węgliński napsal(a):
 On Sunday 29 November 2009 16:59:10 Ben de Groot wrote:
  As soon as existing ebuilds in the tree are ported over to qt4-r2, the
  old qt4.eclass will
  be removed.
 
 As far as i remember we don't remove eclasses. Probably you meant
  deprecated, but not removed?
 
New eclasses can be removed. But yeah for now it is deprecating.


signature.asc
Description: This is a digitally signed message part.


[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2009-11-29 23h59 UTC

2009-11-29 Thread Robin H. Johnson
The attached list notes all of the packages that were added or removed
from the tree, for the week ending 2009-11-29 23h59 UTC.

Removals:
app-emulation/kvm   2009-11-23 00:03:18 cardoe
www-plugins/mozilla-weave   2009-11-25 20:53:23 volkmar
net-firewall/knetfilter 2009-11-26 20:24:52 ssuominen
x11-libs/liblbxutil 2009-11-28 14:48:11 remi
sys-kernel/sh-sources   2009-11-28 17:38:28 armin76
profiles/default-linux/alpha2009-11-28 19:10:40 ssuominen
profiles/default-linux/amd642009-11-28 19:10:40 ssuominen
profiles/default-linux/arm  2009-11-28 19:10:40 ssuominen
profiles/default-linux/ia64 2009-11-28 19:10:40 ssuominen
profiles/default-linux/sparc2009-11-28 19:10:41 ssuominen
profiles/default-linux/x86  2009-11-28 19:10:43 ssuominen
profiles/default-bsd2009-11-28 19:55:04 ssuominen

Additions:
sci-electronics/geda-xgsch2pcb  2009-11-23 06:00:47 calchan
games-rpg/eschalon-book-1-demo  2009-11-23 17:21:06 mr_bones_
perl-core/Attribute-Handlers2009-11-23 18:57:48 tove
virtual/perl-Attribute-Handlers 2009-11-23 18:58:08 tove
games-util/xgamer   2009-11-23 22:35:57 mr_bones_
media-libs/volpack  2009-11-23 23:46:18 bicatali
media-gfx/graphicsmagick2009-11-24 00:20:48 bicatali
media-libs/quarter  2009-11-24 17:21:02 ayoy
net-im/minbif   2009-11-24 19:22:35 cedk
sci-biology/abyss   2009-11-25 03:39:14 weaver
sys-block/tgt   2009-11-25 16:33:11 alexxy
dev-ml/ocaml-autoconf   2009-11-25 17:02:43 aballier
www-plugins/weave   2009-11-25 20:35:36 volkmar
media-sound/squeezeboxserver2009-11-25 22:52:26 lavajoe
www-apache/mod_httpbl   2009-11-26 10:37:09 flameeyes
dev-haskell/hinotify2009-11-26 21:24:10 kolmodin
dev-haskell/x11-xft 2009-11-26 21:34:23 kolmodin
app-crypt/xor-analyze   2009-11-27 08:55:35 vapier
dev-util/git-sh 2009-11-28 10:13:32 ayoy
dev-ruby/hashie 2009-11-28 10:52:21 a3li
net-zope/zope-error 2009-11-28 22:12:01 arfrever
net-zope/zope-app-publication   2009-11-28 22:28:50 arfrever
net-zope/zope-browserresource   2009-11-29 00:12:23 arfrever
net-zope/zope-ptresource2009-11-29 00:28:31 arfrever

--
Robin Hugh Johnson
Gentoo Linux Developer
E-Mail : robb...@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Removed Packages:
app-emulation/kvm,removed,cardoe,2009-11-23 00:03:18
www-plugins/mozilla-weave,removed,volkmar,2009-11-25 20:53:23
net-firewall/knetfilter,removed,ssuominen,2009-11-26 20:24:52
x11-libs/liblbxutil,removed,remi,2009-11-28 14:48:11
sys-kernel/sh-sources,removed,armin76,2009-11-28 17:38:28
profiles/default-linux/alpha,removed,ssuominen,2009-11-28 19:10:40
profiles/default-linux/amd64,removed,ssuominen,2009-11-28 19:10:40
profiles/default-linux/arm,removed,ssuominen,2009-11-28 19:10:40
profiles/default-linux/ia64,removed,ssuominen,2009-11-28 19:10:40
profiles/default-linux/sparc,removed,ssuominen,2009-11-28 19:10:41
profiles/default-linux/x86,removed,ssuominen,2009-11-28 19:10:43
profiles/default-bsd,removed,ssuominen,2009-11-28 19:55:04
Added Packages:
sci-electronics/geda-xgsch2pcb,added,calchan,2009-11-23 06:00:47
games-rpg/eschalon-book-1-demo,added,mr_bones_,2009-11-23 17:21:06
perl-core/Attribute-Handlers,added,tove,2009-11-23 18:57:48
virtual/perl-Attribute-Handlers,added,tove,2009-11-23 18:58:08
games-util/xgamer,added,mr_bones_,2009-11-23 22:35:57
media-libs/volpack,added,bicatali,2009-11-23 23:46:18
media-gfx/graphicsmagick,added,bicatali,2009-11-24 00:20:48
media-libs/quarter,added,ayoy,2009-11-24 17:21:02
net-im/minbif,added,cedk,2009-11-24 19:22:35
sci-biology/abyss,added,weaver,2009-11-25 03:39:14
sys-block/tgt,added,alexxy,2009-11-25 16:33:11
dev-ml/ocaml-autoconf,added,aballier,2009-11-25 17:02:43
www-plugins/weave,added,volkmar,2009-11-25 20:35:36
media-sound/squeezeboxserver,added,lavajoe,2009-11-25 22:52:26
www-apache/mod_httpbl,added,flameeyes,2009-11-26 10:37:09
dev-haskell/hinotify,added,kolmodin,2009-11-26 21:24:10
dev-haskell/x11-xft,added,kolmodin,2009-11-26 21:34:23
app-crypt/xor-analyze,added,vapier,2009-11-27 08:55:35
dev-util/git-sh,added,ayoy,2009-11-28 10:13:32
dev-ruby/hashie,added,a3li,2009-11-28 10:52:21
net-zope/zope-error,added,arfrever,2009-11-28 22:12:01
net-zope/zope-app-publication,added,arfrever,2009-11-28 22:28:50
net-zope/zope-browserresource,added,arfrever,2009-11-29 00:12:23
net-zope/zope-ptresource,added,arfrever,2009-11-29 00:28:31

Done.

[gentoo-dev] Deprecated eclasses

2009-11-29 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The following eclasses are not used anywhere in the tree, and as such
have been marked as deprecated, with all functionality not related to
uninstall removed (scheduled for removal on 2011/11/30, if not otherwise
noted):

aolserver.eclass
check-kernel.eclass
db4-fix.eclass
ebook.eclass
embassy-2.10.eclass
embassy-2.9.eclass
games-etmod.eclass
games-ut2k4mod.eclass
gnustep.eclass (remove on 2009/12/08)
gnustep-funcs.eclass (remove on 2009/12/08)
gnustep-old.eclass (remove on 2009/12/08)
gst-plugins.eclass
gtk-sharp-component.eclass
iiimf.eclass
java.eclass
java-gnome.eclass
java-utils.eclass
kde-dist.eclass (remove on 2011/11/01)
kde-source.eclass (remove on 2011/06/04)
kernel.eclass
mailer.eclass
matrox.eclass
mozconfig.eclass
mozilla.eclass
pcmcia.eclass
php4_4-sapi.eclass
php5_0-sapi.eclass (remove on 2009/12/24)
php5_1-sapi.eclass
tetex-2.eclass (remove on 2011/05/30)
unipatch-001.eclass
x11.eclass
xfce4.eclass (remove on 2011/09/30)
xfce42.eclass (remove on 2011/09/30)
xfce44.eclass (remove on 2011/09/30)
xmms-plugin.eclass

The following eclasses have been marked as deprecated for more than 2
years, and as such have been removed from the tree:

64-bit.eclass (deprecated in 2005)
commonbox.eclass (deprecated in 2006)
debug.eclass (deprecated in 2007)
gcc.eclass (deprecated in 2005)
gtk-engines.eclass (deprecated in 2005)
gtk-engines2.eclass (deprecated in 2005)
inherit.eclass (deprecated in 2002)
jakarta-commons.eclass (deprecated in 2005)
java-pkg.eclass (deprecated in 2006)
java-wsdp.eclass (deprecated in 2007)
kde-base.eclass (deprecated in 2003)
kde-i18n.eclass (deprecated in 2003)
kernel-mod.eclass (deprecated in 2006)
koffice-i18n.eclass (deprecated in 2004)
kmod.eclass (deprecated in 2005)
motif.eclass (deprecated in 2005)
mozilla.eclass (deprecated in 2004)
myth.eclass (deprecated in 2005)
nxserver.eclass (deprecated in 2007)
nxserver-1.3.2.eclass (deprecated in 2007)
nxserver-1.4.eclass (deprecated in 2007)
nxserver_1.5.eclass (deprecated in 2007)
perl-post.eclass (deprecated in 2003)
php.eclass (deprecated in 2006)
php-2.eclass (deprecated in 2006)
php5-sapi.eclass (deprecated in 2005)
php5-sapi-r1.eclass (deprecated in 2005)
php5-sapi-r2.eclass (deprecated in 2007)
php5-sapi-r3.eclass (deprecated in 2007)
php-ext.eclass (deprecated in 2007)
php-ext-base.eclass (deprecated in 2007)
php-ext-pecl.eclass (deprecated in 2007)
php-ext-source.eclass (deprecated in 2007)
php-lib.eclass (deprecated in 2007)
php-pear.eclass (deprecated in 2007)
php-sapi.eclass (deprecated in 2007)
webapp-apache.eclass (deprecated in 2004)
wxlib.eclass (deprecated in 2007)
xfree.eclass (deprecated in 2004)

No eclasses in either of these lists are being used in the tree; please
remove any usage of them from overlays posthaste.

- --
Jonathan Callen
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.13 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksTSZEACgkQOypDUo0oQOqu8QCgwVxTOBZTHZDSCOoH8j//OrES
QOkAoNTGBP5qmo1MV6BuXrSzj85PBDzl
=Nwia
-END PGP SIGNATURE-