[77907] trunk/dports/editors

Ryan Schmidt ryandesign at macports.org
Sun Apr 17 02:01:37 PDT 2011


On Apr 17, 2011, at 02:48, saispo at macports.org wrote:

> Revision: 77907
>          http://trac.macports.org/changeset/77907
> Author:   saispo at macports.org
> Date:     2011-04-17 00:48:17 -0700 (Sun, 17 Apr 2011)
> Log Message:
> -----------
> Add emacs-snapshot ports to editors
> 
> Added Paths:
> -----------
>    trunk/dports/editors/emacs-snapshot/
>    trunk/dports/editors/emacs-snapshot/Portfile
> 
> Added: trunk/dports/editors/emacs-snapshot/Portfile
> ===================================================================
> --- trunk/dports/editors/emacs-snapshot/Portfile	                        (rev 0)
> +++ trunk/dports/editors/emacs-snapshot/Portfile	2011-04-17 07:48:17 UTC (rev 77907)
> @@ -0,0 +1,103 @@
> +$Id$
> +
> +PortSystem 1.0
> +PortGroup  muniversal 1.0
> +
> +name            emacs-snapshot
> +version         20110408
> +revision        1

For future reference (don't change it now), the first revision of any given version of a port should be 0 not 1.


> +categories      editors
> +maintainers     dports openmaintainer

Dan Ports is maintaining this? Or are you?


[snip]

> +livecheck.type  regex
> +livecheck.url   http://emacs.naquadah.org/unstable/?C=M&O=D

"?C=M&O=D" is an idiom we used back when livecheck only returned the first match; many versions of MacPorts ago this was changed so it would find all versions and return the newest one, so this is no longer necessary.


[snip]

> +variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} {
> +    configure.args-delete   --with-x-toolkit=lucid
> +    configure.args-delete   --without-gconf
> +    configure.args-delete   --without-rsvg
> +    configure.args-append   --with-x-toolkit=gtk
> +    configure.args-append   --with-gconf
> +    configure.args-append   --with-rsvg
> +    depends_lib-append      port:gtk2 \
> +                            port:glib2 \
> +                            port:gconf \
> +                            port:librsvg
> +}

You probably don't need to add the glib2 dependency, since it's already a dependency of gtk2 (via pango). If you still want to have the glib2 dependency, please write it in a way that glib2-devel could also satisfy it. See the other existing ports that depend on glib2 for the syntax for this.




More information about the macports-dev mailing list