Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221299 - dev-php/CakePHP maintainer request
Summary: dev-php/CakePHP maintainer request
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.cakephp.org/
Whiteboard: sunrise suggested
Keywords: EBUILD
: 216388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-11 09:48 UTC by Caleb Cushing
Modified: 2017-07-06 16:56 UTC (History)
3 users (show)

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


Attachments
patch for CakePHP-1.2.0.7296_rc2.ebuild (CakePHP.patch,645 bytes, patch)
2009-01-05 13:51 UTC, Daniel Mettler
Details | Diff
CakePHP-1.2.0.7962.ebuild (CakePHP-1.2.0.7962.ebuild,1.49 KB, text/plain)
2009-01-05 13:54 UTC, Daniel Mettler
Details
Patches CakePHP-1.2.0.7296_rc2.ebuild to CakePHP-1.2.0.7962.ebuild (CakePHP-1.2.0.7296_rc2.ebuild.patch,2.62 KB, patch)
2009-01-05 23:53 UTC, Daniel Mettler
Details | Diff
Ebuild for CakePHP-1.2.0.7962 (CakePHP-1.2.0.7962.ebuild,2.02 KB, text/plain)
2009-01-05 23:56 UTC, Daniel Mettler
Details
New ebuild (version bump): CakePHP-1.2.1.8004.ebuild (CakePHP-1.2.1.8004.ebuild,2.03 KB, text/plain)
2009-01-26 02:11 UTC, Daniel Mettler
Details
New ebuild (version bump): CakePHP-1.2.2.8120.ebuild (CakePHP-1.2.2.8120.ebuild,2.03 KB, text/plain)
2009-04-05 00:34 UTC, Daniel Mettler
Details
New ebuild (version bump): CakePHP-1.2.3.8166.ebuild (CakePHP-1.2.3.8166.ebuild,2.03 KB, text/plain)
2009-05-12 04:03 UTC, Daniel Mettler
Details
New ebuild (version bump): CakePHP-1.2.4.8284.ebuild (CakePHP-1.2.4.8284.ebuild,2.14 KB, text/plain)
2009-08-14 01:41 UTC, Daniel Mettler
Details
New ebuild (version bump): CakePHP-1.2.3.8166.ebuild (CakePHP-1.2.4.8284.ebuild,2.04 KB, text/plain)
2009-08-14 01:44 UTC, Daniel Mettler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2008-05-11 09:48:26 UTC
CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC  and ORM  within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

Reproducible: Always
Comment 1 Matthias Sch. 2008-07-29 21:40:21 UTC
i added a ebuild to php-experimental overlay: dev-php/CakePHP
http://overlays.gentoo.org/svn/proj/php/experimental/dev-php/CakePHP/
please test
Comment 2 Daniel Mettler 2009-01-05 13:51:43 UTC
Created attachment 177468 [details, diff]
patch for CakePHP-1.2.0.7296_rc2.ebuild
Comment 3 Daniel Mettler 2009-01-05 13:54:16 UTC
Created attachment 177469 [details]
CakePHP-1.2.0.7962.ebuild
Comment 4 Daniel Mettler 2009-01-05 14:03:16 UTC
Note: If you want to use CakePHP-1.2.0.7962.ebuild you also need to execute 'ebuild CakePHP-1.2.0.7962.ebuild digest' and add 'dev-php/CakePHP ~amd64' (or ~x86) to /etc/portage/package.keywords
Comment 5 Noah Sheppard 2009-01-05 18:19:27 UTC
First, thank you Daniel for creating an ebuild for this software.  I just tried it and encountered the following problem:

 * Checking for required PHP feature(s) ...
>>> Unpacking source...
>>> Unpacking 1.2.0.7962.tar.gz to /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work
/exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/temp/environment: line 2884: cd: /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work/CakePHP-1.2.0.7962: No such file or directory
 * Removing unnecessary 'empty' files ...                                  [ ok ]
 * Cleaning up some files ...
mv: cannot stat `cake/VERSION.txt': No such file or directory              [ ok ]
>>> Source unpacked.
>>> Compiling source in /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php/CakePHP-1.2.0.7962

>>> Install CakePHP-1.2.0.7962 into /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/image/ category dev-php
dodoc: cake_1.2.0.7962/docs/* does not exist
install: cannot stat `cake_1.2.0.7962/.htaccess': No such file or directory
install: cannot stat `cake_1.2.0.7962/*': No such file or directory
 * ebuild fault: file '/usr/share/webapps/CakePHP/1.2.0.7962/htdocs/app/tmp/' not found
 * Please report this as a bug at http://bugs.gentoo.org/
 * 
 * ERROR: dev-php/CakePHP-1.2.0.7962 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2857:  Called webapp_serverowned 'src_install'
 *             environment, line 3655:  Called _webapp_serverowned 'src_install'
 *             environment, line  286:  Called webapp_checkfileexists '/usr/share/webapps/CakePHP/1.2.0.7962/htdocs/app/tmp/' '/usr/share/webapps/CakePHP/1.2.0.7962/htdocs/app/tmp/'
 *             environment, line 3413:  Called die
 * The specific snippet of code:
 *           die "$msg";
 *  The die message:
 *   ebuild fault: file '/usr/share/webapps/CakePHP/1.2.0.7962/htdocs/app/tmp/' not found
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/exclude/port-log/dev-php:CakePHP-1.2.0.7962:20090105-180824.log'.
 * The ebuild environment file is located at '/exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * 

Changing line 7 to MY_P="${PV/_/-}" allows the emerge to complete, although it still complains the following:

>>> Unpacking 1.2.0.7962.tar.gz to /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work
/exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/temp/environment: line 2884: cd: /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work/CakePHP-1.2.0.7962: No such file or directory
 * Removing unnecessary 'empty' files ...                                  [ ok ]
 * Cleaning up some files ...
mv: cannot stat `cake/VERSION.txt': No such file or directory              [ ok ]
>>> Source unpacked.
>>> Compiling source in /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php/CakePHP-1.2.0.7962

>>> Install CakePHP-1.2.0.7962 into /exclude/port-tmp/portage/dev-php/CakePHP-1.2.0.7962/image/ category dev-php
dodoc: 1.2.0.7962/docs/* does not exist

I can attach a patch for the change on line 7, if desired. I haven't been around here long enough to know whether patches are desired for changes as trivial as that one liner.

Thanks again,
Noah
Comment 6 Daniel Mettler 2009-01-05 23:53:30 UTC
Created attachment 177523 [details, diff]
Patches CakePHP-1.2.0.7296_rc2.ebuild to CakePHP-1.2.0.7962.ebuild
Comment 7 Daniel Mettler 2009-01-05 23:56:06 UTC
Created attachment 177525 [details]
Ebuild for CakePHP-1.2.0.7962

tested on my ~amd64 box
Comment 8 Daniel Mettler 2009-01-06 00:04:34 UTC
Sorry guys, this was "blind hacking" without any testing! My bad! Thanks for the hint, Noah!

Uploaded a new patch and a new ebuild that installs nicely on my box. Please test.

At a later stage it might be interesting to add some use flags in order to reflect the three different installation methods (Development, Production, Advanced) mentioned on http://book.cakephp.org/view/32/Installation
Comment 9 Daniel Mettler 2009-01-26 02:11:04 UTC
Created attachment 179741 [details]
New ebuild (version bump): CakePHP-1.2.1.8004.ebuild

Please note that adjusting the name of the ebuild isn't sufficient. Unfortunately, downloading the CakePHP release archive requires a download ID that changes with every release. So with every new ebuild, this download ID has to be adjusted as well (DLID variable in the ebuild). Further, the directory structure within the archives seems to change from version to version, requiring (minor) adjustments in the ebuild.
We might consider switching to Portage's SVN fetching mechanism later, hopefully avoiding some of these issues.

Users/testers don't need to worry about this though. Just don't forget executing "ebuild CakePHP-1.2.1.8004.ebuild digest" before doing a "emerge -auDNv CakePHP". Also, make sure the "vhost" use flag is enabled for CakePHP in order to avoid unintentional overwriting of the DocumentRoot.

Installing CakePHP on a virtualhost using webapp-config (set -h and -d appropriately; the best would be setting up a new empty virtualhost for CakePHP):
webapp-config -I -h localhost -d cakephp CakePHP 1.2.1.8004

Updating CakePHP from a previous version (set -h and -d appropriately):
webapp-config -U -h localhost -d cakephp CakePHP 1.2.1.8004

Removing CakePHP (set -h and -d appropriately):
webapp-config -C -h localhost -d cakephp CakePHP

Installs/updates nicely on my box, but YMMV. So please test, thx.
Comment 10 Noah Sheppard 2009-02-05 19:09:46 UTC
Daniel,

Sorry, I didn't notice your updated ebuild until just today.  I've tested it and it works great.

Thanks,
Noah
Comment 11 Daniel Mettler 2009-04-05 00:34:11 UTC
Created attachment 187343 [details]
New ebuild (version bump): CakePHP-1.2.2.8120.ebuild
Comment 12 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-04-17 02:44:08 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 13 Daniel Mettler 2009-05-12 04:03:41 UTC
Created attachment 190988 [details]
New ebuild (version bump): CakePHP-1.2.3.8166.ebuild
Comment 14 Daniel Mettler 2009-08-14 01:41:49 UTC
Created attachment 201191 [details]
New ebuild (version bump): CakePHP-1.2.4.8284.ebuild

includes minor adjustments to reflect the changed download URI
Comment 15 Daniel Mettler 2009-08-14 01:44:57 UTC
Created attachment 201192 [details]
New ebuild (version bump): CakePHP-1.2.3.8166.ebuild 

deleted left-over comment
Comment 16 Chris Brown 2012-05-15 13:59:38 UTC
any updated, the ebuild is 2 years old, CakePHP is still in development
Comment 17 Brian Evans Gentoo Infrastructure gentoo-dev 2017-07-06 16:56:25 UTC
*** Bug 216388 has been marked as a duplicate of this bug. ***