public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [FYI] php-lib-r1.eclass going to die
@ 2012-01-28 22:12 Matti Bickel
  0 siblings, 0 replies; only message in thread
From: Matti Bickel @ 2012-01-28 22:12 UTC (permalink / raw
  To: gentoo-dev

Hi folks,

I thought I'd throw this out, so nobody is suprised when I start to put
qawarns in the eclass: I don't think php-lib-r1.eclass has any value now
that we have EAPI4. The only thing it basically does is

a) setting RDEPEND="dev-lang/php"
and
b) provide a php_lib_r1_src_install that accepts as its parameters the
destination directory and the files to add. It then stores them
/usr/share/php/${PN}/$1.

Everything the eclass does can be done more cleanly and explictly inside
the ebuild. So if you planned to inherit php-lib-r1, please don't. Just
add the RDEPEND and use

src_install() {
	insinto "/usr/share/php/${PN}"
	doins -r <your src>/* (or wherever you stored your files)

	dodoc README
}

as an example. I've also converted most of the ebuilds in our tree to do
this.

If your ebuild relied on php-lib-r1 to provide depend.php - shame on you
:p - depend.php will share the fate of php-lib-r1. But that's another mail.

Cheers, Matti



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-28 22:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-28 22:12 [gentoo-dev] [FYI] php-lib-r1.eclass going to die Matti Bickel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox