Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35006 - adodb-4.0.4.ebuild (New Package)
Summary: adodb-4.0.4.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: PHP Bugs
URL: http://php.weblogs.com/adodb
Whiteboard:
Keywords:
: 28238 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-03 13:31 UTC by Josh Glover (RETIRED)
Modified: 2004-01-05 03:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
adodb-4.0.4.ebuild (New Package) (adodb-4.0.4.ebuild,635 bytes, text/plain)
2003-12-03 13:36 UTC, Josh Glover (RETIRED)
Details
Ebuild for adodb using the php-lib.eclass (adodb-4.04.ebuild,897 bytes, text/plain)
2003-12-08 05:04 UTC, Roy Marples (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Glover (RETIRED) gentoo-dev 2003-12-03 13:31:16 UTC
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
Comment 1 Josh Glover (RETIRED) gentoo-dev 2003-12-03 13:36:57 UTC
Created attachment 21655 [details]
adodb-4.0.4.ebuild (New Package)
Comment 2 Roy Marples (RETIRED) gentoo-dev 2003-12-08 05:04:23 UTC
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 3 Roy Marples (RETIRED) gentoo-dev 2003-12-08 05:05:11 UTC
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
>}
Comment 4 Roy Marples (RETIRED) gentoo-dev 2003-12-08 05:06:46 UTC
Bah - me needs to learn bugzilla a bit more
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 20:59:58 UTC
in tree now, very partially based off your ebuild there, but i did a lot more work on it myself.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 21:00:18 UTC
*** Bug 28238 has been marked as a duplicate of this bug. ***
Comment 7 Roy Marples (RETIRED) gentoo-dev 2004-01-05 02:44:13 UTC
Thanks :)
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-01-05 03:23:08 UTC
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....)