Hello! I just came across http://www.cakephp.org/ which is a web development framework written in PHP. See the link above for more information. I couldn't find an ebuild and so I simply wrote my own one. See the attached cake-1.1.6.ebuild and postinstall-en.txt files.
Created attachment 92633 [details] cake-1.1.6.ebuild
Created attachment 92634 [details] postinstall-en.txt
*** Bug 139660 has been marked as a duplicate of this bug. ***
Created attachment 108150 [details] CakePHP 1.1.12.4205 (stable) ebuild CakePHP ebuild. "Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC." It is simular to Rails, but for PHP.
Created attachment 108151 [details] post install text
I'm interested in maintaining the cakephp ebuild if not one else is stepping forward. Anyone?
Created attachment 110415 [details] CakePHP 1.1.13.4450 (stable) ebuild Newest stable release 2/4/07.
It is worth noting that since cakephp is a "Framework" that it lies somewhere between a library and a web app. Currently, this ebuild is very dumb (may change in the future -- feedback welcome) and just does what it takes to get it on the system. If you have many vhosts and/or apps and desire that they shared common code it may be worth using webapp-config's --soft option for the 'cake' directory for example.
1/ You shouldn't depend on mysql/postgresql in webapps. The server may be remote, so this is wrong. Plus the require_php_with_use checks already ensure that PHP has the needed functionality. 2/ Combine the checks into one so that the ebuild dies just once at worst. E.g., like this: local flags="xml session" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" require_php_with_use ${flags} I'll file a separate bug about webapp.eclass docs at http://www.gentoo.org/proj/en/webapps/
Even if the server is remote mysql/postgresql would be a dependency since cake would still require the client libraries; however, require_php_with_use is a better way of doing this. I'll update the ebuild shortly. I'll also combine the checks as Jakub has suggested. THx
Created attachment 128222 [details] files/postinstall-en.txt Cleaned up post install txt.
Created attachment 128224 [details] CakePHP 1.1.16.5421 (latest stable) ebuild This new ebuild used the latest stable tarball. It also has 2 minor mods: better handling of the use flags, and a line added to make the app/tmp directory server owned.
Created attachment 128307 [details] CakePHP 1.1.16.5421 (latest stable) ebuild I neglected to remove the mysql/postgres dependencies. They are not necessary since they will get resolved via the php dependency anyways (via its use flags).
Added to webapps overlay, please test. Enjoy! http://overlays.gentoo.org/proj/webapps/browser/experimental/www-apps/cake
*** Bug 188925 has been marked as a duplicate of this bug. ***