Re: [gentoo-dev] Eclass review: xorg-2 virtualx

2011-03-26 Thread Tomáš Chvátal
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dne 23.3.2011 21:03, Donnie Berkholz napsal(a):
 
 Any chance we can just clean out the fonts that still use the old way 
 and delete most of this?
 

If somebody wants to do it. I have quite lot of other stuff on todo :)
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2OAbMACgkQHB6c3gNBRYerZACfVOxXgzlJAd9D5z6Lu7CHloIc
M4gAn07aaXE0R1GEF7pYiA0FsaHvnOcK
=v4u7
-END PGP SIGNATURE-



Re: [gentoo-dev] Eclass review: xorg-2 virtualx

2011-03-23 Thread Donnie Berkholz
On 00:18 Tue 22 Feb , Tomáš Chvátal wrote:
 + if grep -q -s disable-all-encodings 
 ${ECONF_SOURCE:-.}/configure; then
 + FONT_OPTIONS+=
 + --disable-all-encodings
 + else
 + FONT_OPTIONS+=
 + --disable-iso8859-2
 + --disable-iso8859-3
 + --disable-iso8859-4
 + --disable-iso8859-5
 + --disable-iso8859-6
 + --disable-iso8859-7
 + --disable-iso8859-8
 + --disable-iso8859-9
 + --disable-iso8859-10
 + --disable-iso8859-11
 + --disable-iso8859-12
 + --disable-iso8859-13
 + --disable-iso8859-14
 + --disable-iso8859-15
 + --disable-iso8859-16
 + --disable-jisx0201
 + --disable-koi8-r
 + fi

Any chance we can just clean out the fonts that still use the old way 
and delete most of this?

-- 
Thanks,
Donnie

Donnie Berkholz
Sr. Developer, Gentoo Linux
Blog: http://dberkholz.com


pgpV233MzoVf4.pgp
Description: PGP signature


Re: [gentoo-dev] Eclass review: xorg-2 virtualx

2011-02-22 Thread Andreas K. Huettel

really busy with real life, so just a quick comment: we have to make sure the 
new virtualx eclass works fine with kde4-base, since that one is using it...

but I'm sure you know that already :)

On Tuesday 22 February 2011 00:18:26 Tomáš Chvátal wrote:
 Hello lads,
 I would like you to review following patches we kept hidden from you in
 x11 overlay up till now.
 
 xorg-2:
 autotools-utils usage
   - out of tree build by default
   - killing all .la files
 added doc dependencies
   - it is same for all pkgs and easier to keep it in eclass
   (ebuilds will be updated as bumped, live versions in overlay
   are already prepared for this)
 updated font disable calls
   - with new fonts the disable call is much much easier so we
   just need to reflect that
 
 virtualx:
 Pretty much add eclass-debug info everywhere and fix formatting.
 
 migrate from export maketype to more reliable VIRTUALX_COMMAND global
 variable (can be set anytime).
 
 deprecate Xmake in favor of Xemake -j1 or VIRTUALX_COMMAND=emake -j1
 
 Change the VIRTUALX_REQUIRED and VIRTUALX_USE to be bit saner and merged
 into one variable with qa deprecation warnings and fallback in place.
 New usage described in eclassdoc pretty well.
 
 So any comments? suggestions?
 
 Cheers
 
 Tom

-- 
 
Andreas K. Huettel
dilfri...@gentoo.org
http://www.akhuettel.de/



[gentoo-dev] Eclass review: xorg-2 virtualx

2011-02-21 Thread Tomáš Chvátal
Hello lads,
I would like you to review following patches we kept hidden from you in
x11 overlay up till now.

xorg-2:
autotools-utils usage
- out of tree build by default
- killing all .la files
added doc dependencies
- it is same for all pkgs and easier to keep it in eclass
(ebuilds will be updated as bumped, live versions in overlay
are already prepared for this)
updated font disable calls
- with new fonts the disable call is much much easier so we
just need to reflect that

virtualx:
Pretty much add eclass-debug info everywhere and fix formatting.

migrate from export maketype to more reliable VIRTUALX_COMMAND global
variable (can be set anytime).

deprecate Xmake in favor of Xemake -j1 or VIRTUALX_COMMAND=emake -j1

Change the VIRTUALX_REQUIRED and VIRTUALX_USE to be bit saner and merged
into one variable with qa deprecation warnings and fallback in place.
New usage described in eclassdoc pretty well.

So any comments? suggestions?

Cheers

Tom
--- /home/scarab/gentoo/gentoo-x86/eclass/virtualx.eclass   2010-11-12 
15:43:12.0 +0100
+++ virtualx.eclass 2011-02-21 20:46:14.0 +0100
@@ -6,113 +6,132 @@
 
 # @ECLASS: virtualx.eclass
 # @MAINTAINER:
-#  x...@gentoo.org
+# x...@gentoo.org
 # @BLURB: This eclass can be used for packages that needs a working X 
environment to build.
 
 # @ECLASS-VARIABLE: VIRTUALX_REQUIRED
 # @DESCRIPTION:
-#  Is a dependency on xorg-server and xhost needed?
-#  Valid values are always, optional, and manual.
-#  tests is a synonym for optional.
-: ${VIRTUALX_REQUIRED:=optional}
+# Variable specifying the dependency on xorg-server and xhost.
+# Possible special values are always and manual, which specify
+# the dependency to be set unconditionaly or not at all.
+# Any other value is taken as useflag desired to be in control of
+# the dependency (eg. VIRTUALX_REQUIRED=kde will add the dependency
+# into kde? ( ) and add kde into IUSE.
+: ${VIRTUALX_REQUIRED:=test}
 
-# @ECLASS-VARIABLE: VIRTUALX_USE
+# @ECLASS-VARIABLE: VIRTUALX_DEPEND
 # @DESCRIPTION:
-#  If VIRTUALX_REQUIRED=optional, what USE flag should control
-#  the dependency?
-: ${VIRTUALX_USE:=test}
+# Dep string available for use outside of eclass, in case a more
+# complicated dep is needed.
+# You can specify the variable BEFORE inherit to add more dependencies.
+VIRTUALX_DEPEND=${VIRTUALX_DEPEND}
+   !prefix? ( x11-base/xorg-server[-minimal] )
+   x11-apps/xhost
+
 
-# @ECLASS-VARIABLE: VIRTUALX_DEPEND
+# @ECLASS-VARIABLE: VIRTUALX_COMMAND
 # @DESCRIPTION:
-#  Dep string available for use outside of eclass, in case a more
-#  complicated dep is needed.
-VIRTUALX_DEPEND=!prefix? ( x11-base/xorg-server )
-   x11-apps/xhost
+# Command (or eclass function call) to be run in the X11 environment
+# (within virtualmake function).
+: ${VIRTUALX_COMMAND:=emake}
+
+has ${EAPI:-0} 0 1  die virtualx eclass require EAPI=2 or newer.
 
 case ${VIRTUALX_REQUIRED} in
+   manual)
+   ;;
always)
DEPEND=${VIRTUALX_DEPEND}
RDEPEND=
;;
optional|tests)
+   # deprecated section YAY.
+   ewarn QA: VIRTUALX_REQUIRED=optional and 
VIRTUALX_REQUIRED=tests are deprecated.
+   ewarn QA: You can drop the variable definition completely from 
ebuild,
+   ewarn QA: because it is default behaviour.
+
+   if [[ -n ${VIRTUALX_USE} ]]; then
+   # so they like to specify the useflag
+   ewarn QA: VIRTUALX_USE variable is deprecated.
+   ewarn QA: Please read eclass manpage to find out how 
to use VIRTUALX_REQUIRED
+   ewarn QA: to achieve the same behaviour.
+   fi
+
+   [[ -z ${VIRTUALX_USE} ]]  VIRTUALX_USE=test
DEPEND=${VIRTUALX_USE}? ( ${VIRTUALX_DEPEND} )
RDEPEND=
IUSE=${VIRTUALX_USE}
;;
-   manual)
-   ;;
*)
-   eerror Invalid value (${VIRTUALX_REQUIRED}) for 
VIRTUALX_REQUIRED
-   eerror Valid values are:
-   eerror   always
-   eerror   optional (default if unset)
-   eerror   manual
-   die Invalid value (${VIRTUALX_REQUIRED}) for VIRTUALX_REQUIRED
+   DEPEND=${VIRTUALX_REQUIRED}? ( ${VIRTUALX_DEPEND} )
+   RDEPEND=
+   IUSE=${VIRTUALX_REQUIRED}
;;
 esac
 
+# @FUNCTION: virtualmake
+# @DESCRIPTION: 
+# Function which attach to running X session or start new Xvfb session
+# where the VIRTUALX_COMMAND variable content gets executed.
 virtualmake() {
+   debug-print-function ${FUNCNAME} $@
+
+   local i=0
local retval=0
local OLD_SANDBOX_ON=${SANDBOX_ON}
local XVFB=$(type -p Xvfb)
local XHOST=$(type -p xhost)
+   local xvfbargs=-screen 0 800x600x24
+
+   #