[macports-ports] branch master updated: hidapi-devel: new port, version 0.8.0-20160920

Ryan Schmidt ryandesign at macports.org
Tue Dec 20 07:11:46 CET 2016


> On Dec 19, 2016, at 7:41 AM, Rainer Müller <raimue at macports.org> wrote:
> 
> Rainer Müller (raimue) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/aa798fc4244895c46159cdd054769c73da3fa271
> 
> The following commit(s) were added to refs/heads/master by this push:
> 
>      new aa798fc  hidapi-devel: new port, version 0.8.0-20160920
> 
> aa798fc is described below
> 
> 
> commit aa798fc4244895c46159cdd054769c73da3fa271
> 
> Author: Rainer Müller <raimue at macports.org>
> AuthorDate: Mon Dec 19 14:40:05 2016 +0100
> 
> 
>     hidapi-devel: new port, version 0.8.0-20160920
> 
>     
> 
>     A library for interacting with HID-class devices.
> 
>     
> 
>     Adding as *-devel port as upstream releases are infrequent,
> 
>     but master contains valuable fixes for macOS.
> 
> ---
>  comms/hidapi-devel/Portfile                   | 36 +++++++++++++++++++++++++++
>  comms/hidapi-devel/files/patch-appbundle.diff | 15 +++++++++++
>  2 files changed, 51 insertions(+)
> 
> 
> diff --git a/comms/hidapi-devel/Portfile b/comms/hidapi-devel/Portfile
> 
> new file mode 100644
> 
> index 0000000..0d68423
> 
> --- /dev/null
> 
> +++ b/comms/hidapi-devel/Portfile
> 
> @@ -0,0 +1,36 @@
> 
> +# -*- 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
> 
> +
> 
> +PortSystem          1.0
> 
> +PortGroup           github 1.0
> 
> +
> 
> +github.setup        signal11 hidapi a6a622ffb680c55da0de787ff93b80280498330f
> 
> +name                hidapi-devel
> 
> +set portversion     20160920
> 
> +set version         0.8.0-${portversion}

"set" shouldn't be used with "version" or other options.

MacPorts base uses a variable called "portversion" in many places; I don't know if it's a problem to use that variable name for a different purpose in a portfile.




More information about the macports-dev mailing list