Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread Ulrich Mueller
 On Tue, 27 Nov 2012, justin  wrote:

 next patch for intel-sdp.eclass

 Problem:
 Documentation and examples are installed on every system. Also japanese
 man pages are installed.

 Solution:
 Use USE.

 + [[ ${LINGUAS} == *ja_JP* ]]  \
 + doman -i18n=ja_JP ${INTEL_SDP_DIR}/man/ja_JP/man1/*

Since LINGUAS is USE-expanded, shouldn't you rather test for
use linguas_ja?

Ulrich



Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread Diego Elio Pettenò
On 27/11/2012 04:32, justin wrote:
 Documentation and examples are installed on every system. Also japanese
 man pages are installed.

Does the documentation take time to build, or is it an external
download? If no, don't use a doc USE flag.

Do the example require to be built? If no, don't use an examples USE flag.

Japanese man pages are installed by a number of packages, and so are
Italian and others — you could make them optional with linguas_ja, but
my suggestion would rather be to keep them and tell people who want to
have a minimal install to either use localepurge or installmask.

-- 
Diego Elio Pettenò — Flameeyes
flamee...@flameeyes.eu — http://blog.flameeyes.eu/



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread justin
On 11/27/12 4:18 PM, Ulrich Mueller wrote:
 On Tue, 27 Nov 2012, justin  wrote:
 
 next patch for intel-sdp.eclass
 
 Problem:
 Documentation and examples are installed on every system. Also japanese
 man pages are installed.
 
 Solution:
 Use USE.
 
 +[[ ${LINGUAS} == *ja_JP* ]]  \
 +doman -i18n=ja_JP ${INTEL_SDP_DIR}/man/ja_JP/man1/*
 
 Since LINGUAS is USE-expanded, shouldn't you rather test for
 use linguas_ja?
 
 Ulrich
 

You are right, I will check for that.

Thanks for the comment,
Justin



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread justin
On 11/27/12 4:38 PM, Diego Elio Pettenò wrote:
 On 27/11/2012 04:32, justin wrote:
 Documentation and examples are installed on every system. Also japanese
 man pages are installed.
 
 Does the documentation take time to build, or is it an external
 download? If no, don't use a doc USE flag.
 
 Do the example require to be built? If no, don't use an examples USE flag.

Everything is bundled and doesn't need to be built.
I know your are against USE for installation only purposes, so my
question is why?
The reason I introduced the USE here and in general to use it in similar
locations is that those packages install tons of documentation and
examples, which I personally don't like to waste my diskspace with. What
is wrong to give the user this install only option?

justin

 
 Japanese man pages are installed by a number of packages, and so are
 Italian and others — you could make them optional with linguas_ja, but
 my suggestion would rather be to keep them and tell people who want to
 have a minimal install to either use localepurge or installmask.
 





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread Diego Elio Pettenò
On 27/11/2012 08:01, justin wrote:
 The reason I introduced the USE here and in general to use it in similar
 locations is that those packages install tons of documentation and
 examples, which I personally don't like to waste my diskspace with. What
 is wrong to give the user this install only option?

You could go with minimal in that case. How big said documentation
would be? Over 100M? Because boost's libraries are 100M without debug
information.

In general I prefer having everything available by default if it doesn't
require impossible amount of space, add dependency, or take time to build.

We have INSTALL_MASK and FEATURES=nodoc if you don't want the
documentation, after all.

-- 
Diego Elio Pettenò — Flameeyes
flamee...@flameeyes.eu — http://blog.flameeyes.eu/



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread justin
On 11/27/12 5:49 PM, Diego Elio Pettenò wrote:
 On 27/11/2012 08:01, justin wrote:
 The reason I introduced the USE here and in general to use it in similar
 locations is that those packages install tons of documentation and
 examples, which I personally don't like to waste my diskspace with. What
 is wrong to give the user this install only option?
 
 You could go with minimal in that case. How big said documentation
 would be? Over 100M? Because boost's libraries are 100M without debug
 information.
 
 In general I prefer having everything available by default if it doesn't
 require impossible amount of space, add dependency, or take time to build.
 
 We have INSTALL_MASK and FEATURES=nodoc if you don't want the
 documentation, after all.
 

Probably you are right. It's around 25% (60-80MB) which we would save.
As long we make sure things are in places where noman, nodoc and friends
work, it should be fine.

justin



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread Mike Frysinger
On Tuesday 27 November 2012 11:49:52 Diego Elio Pettenò wrote:
 On 27/11/2012 08:01, justin wrote:
  The reason I introduced the USE here and in general to use it in similar
  locations is that those packages install tons of documentation and
  examples, which I personally don't like to waste my diskspace with. What
  is wrong to give the user this install only option?
 
 You could go with minimal in that case. How big said documentation
 would be? Over 100M? Because boost's libraries are 100M without debug
 information.
 
 In general I prefer having everything available by default if it doesn't
 require impossible amount of space, add dependency, or take time to build.
 
 We have INSTALL_MASK and FEATURES=nodoc if you don't want the
 documentation, after all.

documentation is not the same thing as examples.  if the examples are large 
(or even if they aren't), then USE=examples is an acceptable approach to 
filtering.
-mike


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


Re: [gentoo-dev] RFC: intel-sdp.eclass add USE=examples doc

2012-11-27 Thread justin
On 28/11/12 00:06, Mike Frysinger wrote:
 On Tuesday 27 November 2012 11:49:52 Diego Elio Pettenò wrote:
 On 27/11/2012 08:01, justin wrote:
 The reason I introduced the USE here and in general to use it in similar
 locations is that those packages install tons of documentation and
 examples, which I personally don't like to waste my diskspace with. What
 is wrong to give the user this install only option?

 You could go with minimal in that case. How big said documentation
 would be? Over 100M? Because boost's libraries are 100M without debug
 information.

 In general I prefer having everything available by default if it doesn't
 require impossible amount of space, add dependency, or take time to build.

 We have INSTALL_MASK and FEATURES=nodoc if you don't want the
 documentation, after all.
 
 documentation is not the same thing as examples.  if the examples are large 
 (or even if they aren't), then USE=examples is an acceptable approach to 
 filtering.
 -mike
 

That's exactly my opinion, therefore doc was dropped and examples is
still living.

justin



signature.asc
Description: OpenPGP digital signature