I have attached an ebuild for ADOdb, which is database class library which hides the differences between the different databases supported by PHP. The homepage is: http://php.weblogs.com/adodb I suggest that it be placed in dev-php/adodb. The dependencies are: virtual/php-4.0.5 Cheers, Josh
Created attachment 21655 [details] adodb-4.0.4.ebuild (New Package)
Created attachment 21855 [details] Ebuild for adodb using the php-lib.eclass Looks like someone beat me to this ebuild - should have checked here first. Oh well. Here's my ebuild anyways. It checks for SQL support in mod_php and uses the php-lib eclass for installing to the php lib dir (/usr/lib/php/adodb in my case).
Comment on attachment 21855 [details] Ebuild for adodb using the php-lib.eclass ># Copyright 2003 Roy "UberLord" Marples <uberlord@rsm.demon.co.uk> ># Distributed under the terms of the GNU General Public License v2 > >inherit php-lib > >DESCRIPTION="Active Data Objects Data Base library for PHP" >HOMEPAGE="http://php.weblogs.com/ADODB" >DOT_P=${P/./} >MY_P=${DOT_P/-/} >SRC_URI="http://phplens.com/lens/dl/${MY_P}.tgz" > >LICENSE="LGPL-2.1" >SLOT="0" >KEYWORDS="x86 ~ppc ~sparc ~alpha" >USE="" > >DEPEND="" >RDEPEND="virtual/php" > >S="${WORKDIR}/${PN}" > >pkg_setup() { > GREPSQL=`grep sql /var/db/pkg/dev-php/mod_php*/USE` > if [ "${GREPSQL}" != "" ] ; then > return 0 > else > eerror "Missing SQL support in mod_php !" > die "aborting..." > fi >} > >src_install() { > # install php files > einfo "Building list of files to install" > php-lib_src_install . `find . -name '*.php' -type f -print` > > # install documentation > dodoc *.txt > dohtml *.htm >}
Bah - me needs to learn bugzilla a bit more
in tree now, very partially based off your ebuild there, but i did a lot more work on it myself.
*** Bug 28238 has been marked as a duplicate of this bug. ***
Thanks :)
Robin small bug in the ebuild - you've got a USE="" statement - should this be IUSE=""? Thanks for adding it though ;-) (and the mod on dante-init, and web-apps etc....)