I'm tired of maintaining essentially the same code in 20-odd ebuilds,
so I am wanting to condense the common bits into a single eclass.
Most of you probably don't care, but it may be of interest to those few
who maintain gkrellm plugin ebuilds.
I have attached my first draft of the eclass. As you can see, there
are 3 main important benefits to using this eclass:
1 - Sets up the basic dependencies shared by all gkrellm plugins
2 - New pkg_setup check to ensure gkrellm was built with USE="X" (see
bug 167227 for more info on why this is necessary for 99.9% of plugins)
3 - The plugin install location is now centralized, and available via
the gkrellm-plugin_dir function, instead of each ebuild hard-coding
'/usr/$(get_libdir)/gkrellm2/plugins'
As an added benefit, the most common variant of src_install was
centralized here too.
If there are no major objections, I will add this eclass shortly, at
which point anyone is free (and encouraged!) to use it for their gkrellm
plugin ebuilds. I will begin converting all my ebuilds shortly
thereafter.
--
Jim Ramsay
Gentoo/Linux Developer (rox,gkrellm)
so I am wanting to condense the common bits into a single eclass.
Most of you probably don't care, but it may be of interest to those few
who maintain gkrellm plugin ebuilds.
I have attached my first draft of the eclass. As you can see, there
are 3 main important benefits to using this eclass:
1 - Sets up the basic dependencies shared by all gkrellm plugins
2 - New pkg_setup check to ensure gkrellm was built with USE="X" (see
bug 167227 for more info on why this is necessary for 99.9% of plugins)
3 - The plugin install location is now centralized, and available via
the gkrellm-plugin_dir function, instead of each ebuild hard-coding
'/usr/$(get_libdir)/gkrellm2/plugins'
As an added benefit, the most common variant of src_install was
centralized here too.
If there are no major objections, I will add this eclass shortly, at
which point anyone is free (and encouraged!) to use it for their gkrellm
plugin ebuilds. I will begin converting all my ebuilds shortly
thereafter.
--
Jim Ramsay
Gentoo/Linux Developer (rox,gkrellm)