[115714] trunk/dports/python

g5pw at macports.org g5pw at macports.org
Thu Jan 9 11:56:35 PST 2014


Revision: 115714
          https://trac.macports.org/changeset/115714
Author:   g5pw at macports.org
Date:     2014-01-09 11:56:35 -0800 (Thu, 09 Jan 2014)
Log Message:
-----------
python/py-pync:
  new port

Added Paths:
-----------
    trunk/dports/python/py-pync/
    trunk/dports/python/py-pync/Portfile
    trunk/dports/python/py-pync/files/
    trunk/dports/python/py-pync/files/pync_TerminalNotifier.py.diff
    trunk/dports/python/py-pync/files/setup.py.diff

Added: trunk/dports/python/py-pync/Portfile
===================================================================
--- trunk/dports/python/py-pync/Portfile	                        (rev 0)
+++ trunk/dports/python/py-pync/Portfile	2014-01-09 19:56:35 UTC (rev 115714)
@@ -0,0 +1,36 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4
+# $Id$
+PortSystem          1.0
+PortGroup           python 1.0
+PortGroup           github 1.0
+
+github.setup        SeTeM pync 1.3 v
+name                py-pync
+maintainers         nomaintainer
+categories-append   aqua
+description         Description
+long_description    LongDescription
+platforms           darwin
+homepage            https://github.com/setem/pync
+
+python.versions     27 33 34
+
+if {$subport ne $name} {
+    depends_build       port:py${python.version}-setuptools
+    depends_run         port:terminal-notifier
+
+    checksums           rmd160  f3e7338fa1e6e99067cff791ee116236face37e4 \
+                        sha256  d38184860259af0fbe0701cf7e397a360abd15028b21e379b7df7553c9ca9e4c
+
+    livecheck.type      none
+
+    patchfiles          pync_TerminalNotifier.py.diff setup.py.diff
+
+    post-extract {
+        delete ${worksrcpath}/pync/vendor
+    }
+
+    post-patch {
+        reinplace "s|__PREFIX__|${prefix}|" pync/TerminalNotifier.py
+    }
+}


Property changes on: trunk/dports/python/py-pync/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-pync/files/pync_TerminalNotifier.py.diff
===================================================================
--- trunk/dports/python/py-pync/files/pync_TerminalNotifier.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pync/files/pync_TerminalNotifier.py.diff	2014-01-09 19:56:35 UTC (rev 115714)
@@ -0,0 +1,11 @@
+--- pync/TerminalNotifier.py	2013-07-16 11:43:21.000000000 +0200
++++ pync/TerminalNotifier.py.new	2014-01-09 14:13:40.000000000 +0100
+@@ -19,7 +19,7 @@
+         Raises if not supported on the current platform or if terminal-notifier.app does not find.
+         """
+         self.app_path = os.path.join(os.path.dirname(__file__),
+-                                     "vendor/terminal-notifier_%s/terminal-notifier.app" % self.TERMINAL_NOTIFIER_VERSION)
++                                     "__PREFIX__/libexec/terminal-notifier.app")
+         self.bin_path = os.path.join(self.app_path, "Contents/MacOS/terminal-notifier")
+         if not self.is_available:
+             raise Exception("pync is only supported on Mac OS X 10.8, or higher.")

Added: trunk/dports/python/py-pync/files/setup.py.diff
===================================================================
--- trunk/dports/python/py-pync/files/setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pync/files/setup.py.diff	2014-01-09 19:56:35 UTC (rev 115714)
@@ -0,0 +1,13 @@
+--- setup.py	2013-07-16 11:43:21.000000000 +0200
++++ setup.py.new	2014-01-09 14:11:50.000000000 +0100
+@@ -11,10 +11,6 @@
+ long_description = '\n\n'.join(file_contents)
+ 
+ terminal_notifier_files = []
+-for root, dirs, files in os.walk('pync/vendor/'):
+-    root = '/'.join(root.split('/')[1:])
+-    for f in files:
+-        terminal_notifier_files.append(os.path.join(root, f))
+ 
+ package_data = {
+     '': ['LICENSE', 'README.md'] + terminal_notifier_files,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140109/964c64d0/attachment-0001.html>


More information about the macports-changes mailing list