[91253] trunk/dports/sysutils

Ryan Schmidt ryandesign at macports.org
Tue Mar 27 18:45:39 PDT 2012


On Mar 27, 2012, at 09:10, and.damore at macports.org wrote:

> Revision: 91253
>          https://trac.macports.org/changeset/91253
> Author:   and.damore at macports.org
> Date:     2012-03-27 07:10:04 -0700 (Tue, 27 Mar 2012)
> Log Message:
> -----------
> new port: tmux-pasteboard, provides bridge to system pasteboard (pbcopy, pbpaste) when using tmux
> 
> Added Paths:
> -----------
>    trunk/dports/sysutils/tmux-pasteboard/
>    trunk/dports/sysutils/tmux-pasteboard/Portfile
> 
> Added: trunk/dports/sysutils/tmux-pasteboard/Portfile
> ===================================================================
> --- trunk/dports/sysutils/tmux-pasteboard/Portfile	                        (rev 0)
> +++ trunk/dports/sysutils/tmux-pasteboard/Portfile	2012-03-27 14:10:04 UTC (rev 91253)
> @@ -0,0 +1,34 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
> +# $Id$
> +
> +PortSystem          1.0
> +PortGroup   github  1.0
> +
> +github.setup        ChrisJohnsen tmux-MacOSX-pasteboard v1.0

This makes the advertised port version "v1.0":

$ port info tmux-pasteboard | head -n 1
tmux-pasteboard @v1.0 (sysutils)

We want the advertised version to just be the number.

The github portgroup accommodates tag prefixes as the 4th parameter of github.setup. You want:

github.setup        ChrisJohnsen tmux-MacOSX-pasteboard 1.0 v


> +use_configure       no
> +
> +build.env           CC="${configure.cc}" \
> +                    CFLAGS="-I${prefix}/include" \
> +                    LDFLAGS="-L${prefix}/lib"

You probably need to be using [get_canonical_archflags] too, and could perhaps add a universal variant.





More information about the macports-dev mailing list