[87225] trunk/dports/devel/hub/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Nov 15 12:00:50 PST 2011


On Nov 14, 2011, at 05:24, phw at macports.org wrote:

> Revision: 87225
>          http://trac.macports.org/changeset/87225
> Author:   phw at macports.org
> Date:     2011-11-14 03:24:32 -0800 (Mon, 14 Nov 2011)
> Log Message:
> -----------
> Added note to Port 'hub' to create an alias for everyday use
> 
> Modified Paths:
> --------------
>    trunk/dports/devel/hub/Portfile
> 
> Modified: trunk/dports/devel/hub/Portfile
> ===================================================================
> --- trunk/dports/devel/hub/Portfile	2011-11-14 10:54:17 UTC (rev 87224)
> +++ trunk/dports/devel/hub/Portfile	2011-11-14 11:24:32 UTC (rev 87225)
> @@ -30,6 +30,14 @@
> build       {}
> destroot    {
>             xinstall ${worksrcpath} ${destroot}${prefix}/bin
> +            notes "############################################################################
> +# To use 'hub' as a true git wrapper
> +# add the following line to your .bashrc
> +#
> +# alias git=hub
> +#
> +# or use 'hub' as standalone command
> +############################################################################"

It would be better not to add all this "###" formatting. Remember that "notes" does word wrapping to the width of the terminal window; applying your own formatting like this kind of defeats that.

If you believe the way MacPorts outputs notes is not sufficiently noticeable, then it should be fixed in MacPorts base globally, not in each individual Portfile.

Also, "notes" should be declared at the top level of the Portfile, not inside a phase; that way, a user can run "port notes" to read them.

Here is a patch that makes these changes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hub-notes.diff
Type: application/octet-stream
Size: 900 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20111115/53f73f04/attachment.obj>
-------------- next part --------------



More information about the macports-dev mailing list