Gentoo Archives: gentoo-devhelp

From: Peter Volkov <pva@g.o>
To: gentoo-devhelp@l.g.o
Cc: Thomas Pani <thomas.pani@×××××.com>
Subject: Re: [gentoo-devhelp] sci-libs/sympy USE flags
Date: Sat, 26 Jan 2008 10:07:39
Message-Id: 1201342047.21312.135.camel@localhost
In Reply to: [gentoo-devhelp] sci-libs/sympy USE flags by Thomas Pani
1 Generally I tend to name use flags based on features they enable instead
2 of dependencies they require as this better documents what feature this
3 use flag enables. But soon (I hope) we'll have better ways to document
4 USE flags so things could change in near future.
5
6
7 В Срд, 23/01/2008 в 10:37 +0100, Thomas Pani пишет:
8 > - sympy uses libxml2 and libxslt to generate MathML code. Which USE-flag
9 > would be more appropriate, `xslt' or `math' (or intruduce `mathml')?
10 > app-office/abiword-plugins and www-apps/mediawiki both use the math use
11 > flag to enable math rendering, but as Andrey Grozin pointed out sympy
12 > provides math rendering via LaTeX, mathml, TeXmacs, so using `math'
13 > would be ambiguous.
14
15 mathml is good choice.
16
17 > - Should there be a USE-flag that pulls in TeXmacs? If yes, which one?
18
19 If package allows to disable/enable this feature then yes. Call it USE
20 flag texmacs or latex as you chose.
21
22 > - Once again for plotting. Uses pyglet ([2]), which is not yet in
23 > portage but comes packaged with sympy. Which USE flag? Just `opengl' or
24 > a new `plot' flag?
25
26 Does potting works without pyglet? Does package works without pyglet? If
27 this just adds opengl support for plotting then opengl is good choice of
28 USE flag too.
29
30
31 Generally I think ebuild uses USE flags only for dependencies but it
32 should also use them to configure package. See:
33
34 http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/configuring/index.html
35
36 "Often the configure script will try to automatically enable support for
37 optional components based upon installed packages. This *must not* be
38 allowed to happen."
39
40 So in your case you need to tweak build system somehow to allow package
41 be built without plot support even if dev-python/pyopengl,
42 dev-python/imaging and dev-python/ctypes are installed.
43
44 --
45 Peter.

Attachments

File name MIME type
signature.asc application/pgp-signature