Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24203 closed enhancement (fixed)

php5-xhprof including supplied PHP classes

Reported by: rodney.rehm@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: php5-xhprof

Description

While playing around with this PECL I noticed some crucial parts missing. The PECL comes bundled with some PHP files, that actually make up the UI.

I'm not quite sure if I put the things in the right places, though. Since xhprof has an optional graph based on graphviz, I added a variant that will also patch the respective file with the path to the dot binary. I don't know what this will do to installations not residing in /opt/local, though.

Attachments (2)

Portfile.diff (1.0 KB) - added by rodney.rehm@… 14 years ago.
changes made to original Portfile
callgraph_utils.php.diff (392 bytes) - added by rodney.rehm@… 14 years ago.
patch applied for variant graphviz

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by rodney.rehm@…

Attachment: Portfile.diff added

changes made to original Portfile

Changed 14 years ago by rodney.rehm@…

Attachment: callgraph_utils.php.diff added

patch applied for variant graphviz

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Thanks, committed in r65275 with these changes:

  • "depends_lib-delete" in the graphviz variant should have been "depends_lib-append"
  • "port:graphviz" in the graphviz variant should be "path:bin/dot:graphviz" so that graphviz-devel could also satisfy the dependency
  • I used "patchfiles-append" instead of just "patchfiles" in the graphviz variant so that, although there aren't any now, if any patchfiles are later added to the port globally, the graphviz variant won't then override them
  • I changed the patchfile name to begin with "patch-"
  • Fixed the patch so it will work regardless of the user's ${prefix}
  • In the post-destroot, you have to do things inside ${destroot}, not directly in ${prefix}, otherwise the items don't get registered to the port, as you can confirm by running "port contents"
  • In the post-destroot, I switched to "xinstall -d" for making the directory, since I prefer to use xinstall in the destroot phase, and switched from "file copy" to just "copy" since that's shorter and synonymous
  • I moved the post-destroot and graphviz variant above the livecheck line; I like to keep the livecheck as the last thing in a portfile

comment:3 in reply to:  2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

  • "depends_lib-delete" in the graphviz variant should have been "depends_lib-append"

Correction: at the last minute I changed it to "depends_run-append" since it doesn't really check for graphviz at build time, I think, but only uses it at runtime.

comment:4 Changed 14 years ago by rodney.rehm@…

Sweet mother?! Thanks for the quick fix and that heavy rewriting :)

If there was an apache2 variant, that would trigger some nice vHost handling (specifically like gentoo does the job), we could also supply ports like this (and phpmyadmin and ...) with an apache2-vhost variant, which would make the ever-the-same-setup-of-stupid-little-vhosts obsolete. has anyone ever thought about this, or do you guys just throw everything into the default host?

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Feel free to discuss that on the mailing list; it probably doesn't belong in this ticket.

Note: See TracTickets for help on using tickets.