From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-devhelp+bounces-15-garchives=archives.gentoo.org@gentoo.org>)
	id 1JIhwp-000531-NC
	for garchives@archives.gentoo.org; Sat, 26 Jan 2008 10:07:39 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8B76FE05B0;
	Sat, 26 Jan 2008 10:07:38 +0000 (UTC)
Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.225])
	by pigeon.gentoo.org (Postfix) with ESMTP id 2986CE05B0
	for <gentoo-devhelp@lists.gentoo.org>; Sat, 26 Jan 2008 10:07:38 +0000 (UTC)
Received: by hu-out-0506.google.com with SMTP id 23so630553huc.1
        for <gentoo-devhelp@lists.gentoo.org>; Sat, 26 Jan 2008 02:07:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:sender;
        bh=bDjrri8vJh+kXyCXv/qqFEZbZ/RIkX4GQVef25aCAGY=;
        b=EtxNoGxxVQlOArVeFO0cPcA0QOG1pMdGGcOqtzCZfrkAEzNH/ulyXGOz8uiiXoMkE+3aA/lTe55MiyQmhgLpKrMvSy9VzfhvvATZJcLZ00/1W9lPjPUpP137lcprJwXkyD2G3vk/STUVDzoU2cFmmj0VKoEcUBV7KHkrCzbfHJY=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:sender;
        b=FZZ1n6z/3Ep2Yq95va0/NfxV0dwHzb0xxOuNY2RPOhAwfi2hbsUUczgLWICD0T5ox5ENNFItrEdnp38fAssRURSQGwwHrJMpPQg7E2t8rQN2WHIH+PExnYEUGkKMjbrBSUNV+jHkq010HbDFJqVwGxDjAZC6ebzi0I9J984h5J8=
Received: by 10.67.100.12 with SMTP id c12mr812939ugm.28.1201342057331;
        Sat, 26 Jan 2008 02:07:37 -0800 (PST)
Received: from ?192.168.1.33? ( [77.246.104.171])
        by mx.google.com with ESMTPS id 27sm10336397ugp.19.2008.01.26.02.07.35
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 26 Jan 2008 02:07:36 -0800 (PST)
Subject: Re: [gentoo-devhelp] sci-libs/sympy USE flags
From: Peter Volkov <pva@gentoo.org>
To: gentoo-devhelp@lists.gentoo.org
Cc: Thomas Pani <thomas.pani@gmail.com>
In-Reply-To: <47970AC6.1080908@gmail.com>
References: <47970AC6.1080908@gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6z2S8aC+HwR1lDEUP9g0"
Date: Sat, 26 Jan 2008 13:07:27 +0300
Message-Id: <1201342047.21312.135.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-devhelp@lists.gentoo.org>
List-Help: <mailto:gentoo-devhelp+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-devhelp+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-devhelp+subscribe@lists.gentoo.org>
List-Id: Gentoo Development-related help <gentoo-devhelp.gentoo.org>
X-BeenThere: gentoo-devhelp@gentoo.org
X-BeenThere: gentoo-devhelp@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.12.2 
Sender: Peter Volkov <ptr.letter@gmail.com>
X-Archives-Salt: e76a2b88-686f-42cb-8383-bf6cca2e0c57
X-Archives-Hash: 09277158c26ac96a0b1af38b778584ff


--=-6z2S8aC+HwR1lDEUP9g0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Generally I tend to name use flags based on features they enable instead
of dependencies they require as this better documents what feature this
use flag enables. But soon (I hope) we'll have better ways to document
USE flags so things could change in near future.


=D0=92 =D0=A1=D1=80=D0=B4, 23/01/2008 =D0=B2 10:37 +0100, Thomas Pani =D0=
=BF=D0=B8=D1=88=D0=B5=D1=82:
> - sympy uses libxml2 and libxslt to generate MathML code. Which USE-flag
> would be more appropriate, `xslt' or `math' (or intruduce `mathml')?
> app-office/abiword-plugins and www-apps/mediawiki both use the math use
> flag to enable math rendering, but as Andrey Grozin pointed out sympy
> provides math rendering via LaTeX, mathml, TeXmacs, so using `math'
> would be ambiguous.

mathml is good choice.

> - Should there be a USE-flag that pulls in TeXmacs? If yes, which one?

If package allows to disable/enable this feature then yes. Call it USE
flag texmacs or latex as you chose.

> - Once again for plotting. Uses pyglet ([2]), which is not yet in
> portage but comes packaged with sympy. Which USE flag? Just `opengl' or
> a new  `plot' flag?

Does potting works without pyglet? Does package works without pyglet? If
this just adds opengl support for plotting then opengl is good choice of
USE flag too.


Generally I think ebuild uses USE flags only for dependencies but it
should also use them to configure package. See:

http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/configurin=
g/index.html

"Often the configure script will try to automatically enable support for
optional components based upon installed packages. This *must not* be
allowed to happen."

So in your case you need to tweak build system somehow to allow package
be built without plot support even if dev-python/pyopengl,
dev-python/imaging and dev-python/ctypes are installed.

--=20
Peter.

--=-6z2S8aC+HwR1lDEUP9g0
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: =?UTF-8?Q?=D0=AD=D1=82=D0=B0?=
	=?UTF-8?Q?_=D1=87=D0=B0=D1=81=D1=82=D1=8C?=
	=?UTF-8?Q?_=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F?=
	=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B0?=
	=?UTF-8?Q?_=D1=86=D0=B8=D1=84=D1=80=D0=BE=D0=B2=D0=BE=D0=B9?=
	=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D1=8C=D1=8E?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQBHmwZfz6tlgEWSarMRAvUbAJoD0YFpaPdf9y7rNOzh+Q1yTnCsXwCeNSys
G+zmB8YgMHgS/QwN/s/Rud0=
=saZc
-----END PGP SIGNATURE-----

--=-6z2S8aC+HwR1lDEUP9g0--

-- 
gentoo-devhelp@lists.gentoo.org mailing list