[macports-ports] branch master updated: py-watchdog: fix for snowleopard error

Ryan Schmidt ryandesign at macports.org
Sun Dec 31 06:54:31 UTC 2017


On Dec 21, 2017, at 12:29, Peter Danecek wrote:

> petrrr pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/7fc0538dc25623a655f81f6fd465e83579056b8d
> 
> The following commit(s) were added to refs/heads/master by this push:
> 
>      new 7fc0538  py-watchdog: fix for snowleopard error
> 
> 7fc0538 is described below
> 
> 
> commit 7fc0538dc25623a655f81f6fd465e83579056b8d
> 
> Author: Peter Danecek
> AuthorDate: Thu Dec 21 19:26:15 2017 +0100
> 
> 
>     py-watchdog: fix for snowleopard error
> 
>     
> 
>     Removes unsupported flag if OS is Snowleopard or older.
> 
>     Closes: #51847.

Remember to use the full URL of Trac tickets in GitHub commit messages.


> --- a/python/py-watchdog/Portfile
> +++ b/python/py-watchdog/Portfile
> @@ -31,6 +31,10 @@ if {${name} ne ${subport}} {
>                              port:py${python.version}-pathtools \
>                              port:py${python.version}-yaml
>  
> +    if {${os.major} <= 10} {
> +        patchfiles  patch.osx-10.6.setup.py
> +    }

Sounds like the test should have been based on configure.compiler, not os.major. It's probably sufficient to say: if the compiler is not a version of clang, use the patch.

if {![string match "*clang*" ${configure.compiler}]} { ... }




More information about the macports-dev mailing list