[119591] trunk/dports/python

mf2k at macports.org mf2k at macports.org
Thu May 1 15:26:54 PDT 2014


Revision: 119591
          https://trac.macports.org/changeset/119591
Author:   mf2k at macports.org
Date:     2014-05-01 15:26:54 -0700 (Thu, 01 May 2014)
Log Message:
-----------
py-tsk: New port. (#42392)

Added Paths:
-----------
    trunk/dports/python/py-tsk/
    trunk/dports/python/py-tsk/Portfile
    trunk/dports/python/py-tsk/files/
    trunk/dports/python/py-tsk/files/patch-setup_py.diff

Added: trunk/dports/python/py-tsk/Portfile
===================================================================
--- trunk/dports/python/py-tsk/Portfile	                        (rev 0)
+++ trunk/dports/python/py-tsk/Portfile	2014-05-01 22:26:54 UTC (rev 119591)
@@ -0,0 +1,45 @@
+# -*- 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           python 1.0
+
+name                py-tsk
+version             20140320
+categories-append   security
+platforms           darwin
+maintainers         nomaintainer
+license             Apache-2
+
+python.versions     24 25 26 27
+python.default_version     27
+
+description         Python binding for the SleuthKit
+long_description    ${description}
+
+homepage            https://code.google.com/p/pytsk/
+#master_sites        googlecode
+### https://code.google.com/p/pytsk/wiki/Building
+#fetch.type          hg
+#hg.url              ${homepage}
+### FIXME! there is no source tar available and no browsing of mercurial repository. only guessing tag
+##hg.tag              20140201
+master_sites        https://googledrive.com/host/0B3fBvzttpiiScUxsUm54cG02RDA/
+distname            pytsk-${version}
+extract.suffix      .tgz
+worksrcdir          pytsk
+
+checksums           rmd160  cffd655f8c1a73d6ed702863ceb279818bcf9ef2 \
+                    sha256  afbd40edaf9bbe6763b435598c9b5c16e9bd9ccb942f1d6b10d6b6d7456da13f
+
+depends_lib-append  port:sleuthkit \
+                    port:talloc
+
+patchfiles          patch-setup_py.diff
+
+build.env           TSK_HEADERS_PATH=${prefix}/include
+destroot.env        TSK_HEADERS_PATH=${prefix}/include
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     pytsk-(\[0-9.\]+)${extract.suffix}


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

Added: trunk/dports/python/py-tsk/files/patch-setup_py.diff
===================================================================
--- trunk/dports/python/py-tsk/files/patch-setup_py.diff	                        (rev 0)
+++ trunk/dports/python/py-tsk/files/patch-setup_py.diff	2014-05-01 22:26:54 UTC (rev 119591)
@@ -0,0 +1,12 @@
+--- setup.py.orig	2014-03-02 14:53:04.000000000 -0500
++++ setup.py	2014-03-02 14:54:45.000000000 -0500
+@@ -98,6 +98,9 @@
+ if len(results) == 0:
+   results = glob.glob(os.path.join('/', 'usr', 'local', 'include', 'tsk*'))
+ 
++if len(results) == 0:
++  results = glob.glob(os.path.join(os.environ['TSK_HEADERS_PATH'], 'tsk*'))
++
+ # If the headers are not found in the usual places check the parent directory.
+ if len(results) == 0:
+   results = glob.glob(os.path.join('..', 'sleuthkit*', 'tsk*'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140501/bc9ac2c3/attachment.html>


More information about the macports-changes mailing list