Index: head/sysutils/py-pytsk/Makefile =================================================================== --- head/sysutils/py-pytsk/Makefile (revision 455363) +++ head/sysutils/py-pytsk/Makefile (revision 455364) @@ -1,31 +1,30 @@ # Created by: Antoine Brodin # $FreeBSD$ PORTNAME= pytsk -PORTVERSION= 20170802 -PORTREVISION= 1 +PORTVERSION= 20171108 CATEGORIES= sysutils security devel python MASTER_SITES= CHEESESHOP \ https://github.com/py4n6/pytsk/releases/download/${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}3-${PORTVERSION} MAINTAINER= antoine@FreeBSD.org COMMENT= Python bindings for the Sleuthkit LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libtalloc.so:devel/talloc \ libtsk.so:sysutils/sleuthkit USES= python USE_PYTHON= distutils autoplist post-extract: ${RM} ${WRKSRC}/pytsk3.c post-patch: ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py .include Index: head/sysutils/py-pytsk/distinfo =================================================================== --- head/sysutils/py-pytsk/distinfo (revision 455363) +++ head/sysutils/py-pytsk/distinfo (revision 455364) @@ -1,3 +1,3 @@ -TIMESTAMP = 1501704664 -SHA256 (pytsk3-20170802.tar.gz) = 32259447c997104865ee5e09fb106fc1451019d57a6d4ffa82cbbce45a7b5495 -SIZE (pytsk3-20170802.tar.gz) = 2934331 +TIMESTAMP = 1510130409 +SHA256 (pytsk3-20171108.tar.gz) = 0aa4c5eb2677a21fa0a2bb86bfcf4927526f226b99e045d2db4e30119e80696a +SIZE (pytsk3-20171108.tar.gz) = 2953931 Index: head/sysutils/py-pytsk/files/patch-setup.py =================================================================== --- head/sysutils/py-pytsk/files/patch-setup.py (revision 455363) +++ head/sysutils/py-pytsk/files/patch-setup.py (revision 455364) @@ -1,43 +1,43 @@ # Unbundle sleuthkit and talloc ---- setup.py.orig 2017-08-01 06:49:05 UTC +--- setup.py.orig 2017-11-06 20:59:12 UTC +++ setup.py @@ -178,9 +178,9 @@ class BuildExtCommand(build_ext): def run(self): compiler = new_compiler(compiler=self.compiler) # pylint: disable=attribute-defined-outside-init - self.define = self.configure_source_tree(compiler) + self.define = [("HAVE_TSK_LIBTSK_H", "")] - libtsk_path = os.path.join("sleuthkit", "tsk") + libtsk_path = os.path.join("%%LOCALBASE%%", "include", "tsk") if not os.access("pytsk3.c", os.R_OK): # Generate the Python binding code (pytsk3.c). -@@ -390,7 +390,7 @@ class ProjectBuilder(object): +@@ -330,7 +330,7 @@ class ProjectBuilder(object): self._argv = argv # The path to the sleuthkit/tsk directory. - self._libtsk_path = os.path.join("sleuthkit", "tsk") + self._libtsk_path = os.path.join("%%LOCALBASE%%", "include", "tsk") # Paths under the sleuthkit/tsk directory which contain files we need # to compile. -@@ -400,13 +400,13 @@ class ProjectBuilder(object): +@@ -340,13 +340,13 @@ class ProjectBuilder(object): # The args for the extension builder. self.extension_args = { "define_macros": [], - "include_dirs": ["talloc", self._libtsk_path, "sleuthkit", "."], - "library_dirs": [], - "libraries": []} + "include_dirs": [".", os.path.join("%%LOCALBASE%%", "include")], + "library_dirs": [os.path.join("%%LOCALBASE%%","lib")], + "libraries": ["tsk", "talloc"]} # The sources to build. self._source_files = [ - "class.c", "error.c", "tsk3.c", "pytsk3.c", "talloc/talloc.c"] + "class.c", "error.c", "tsk3.c", "pytsk3.c"] # Path to the top of the unpacked sleuthkit sources. self._sleuthkit_path = "sleuthkit"