From owner-svn-ports-head@freebsd.org Sun May 1 17:23:12 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 974BAB2917D; Sun, 1 May 2016 17:23:12 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 720D011AD; Sun, 1 May 2016 17:23:12 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u41HNBx4035902; Sun, 1 May 2016 17:23:11 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u41HNBC1035898; Sun, 1 May 2016 17:23:11 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201605011723.u41HNBC1035898@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Sun, 1 May 2016 17:23:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414413 - in head/sysutils/py-pytsk: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2016 17:23:12 -0000 Author: antoine Date: Sun May 1 17:23:11 2016 New Revision: 414413 URL: https://svnweb.freebsd.org/changeset/ports/414413 Log: Update to 20160325 Added: head/sysutils/py-pytsk/files/ head/sysutils/py-pytsk/files/patch-setup.py (contents, props changed) Modified: head/sysutils/py-pytsk/Makefile head/sysutils/py-pytsk/distinfo Modified: head/sysutils/py-pytsk/Makefile ============================================================================== --- head/sysutils/py-pytsk/Makefile Sun May 1 15:33:57 2016 (r414412) +++ head/sysutils/py-pytsk/Makefile Sun May 1 17:23:11 2016 (r414413) @@ -2,26 +2,28 @@ # $FreeBSD$ PORTNAME= pytsk -PORTVERSION= 20160111 +PORTVERSION= 20160325 CATEGORIES= sysutils security devel python -MASTER_SITES= https://github.com/py4n6/pytsk/releases/download/${PORTVERSION}${EXTRACT_SUFX}/ \ +MASTER_SITES= https://github.com/py4n6/pytsk/releases/download/${PORTVERSION}/ \ LOCAL/antoine PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}3-${PORTVERSION} MAINTAINER= antoine@FreeBSD.org COMMENT= Python bindings for the Sleuthkit LICENSE= APACHE20 -LIB_DEPENDS= libtsk.so:sysutils/sleuthkit +LIB_DEPENDS= libtalloc.so:devel/talloc \ + libtsk.so:sysutils/sleuthkit -WRKSRC= ${WRKDIR}/${PORTNAME} - -USES= python tar:tgz +USES= python USE_PYTHON= distutils autoplist +post-extract: + ${RM} ${WRKSRC}/pytsk3.c + post-patch: - ${REINPLACE_CMD} 's|"/", "usr", "local"|"${LOCALBASE}"|' \ - ${WRKSRC}/setup.py + ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py .include Modified: head/sysutils/py-pytsk/distinfo ============================================================================== --- head/sysutils/py-pytsk/distinfo Sun May 1 15:33:57 2016 (r414412) +++ head/sysutils/py-pytsk/distinfo Sun May 1 17:23:11 2016 (r414413) @@ -1,2 +1,2 @@ -SHA256 (pytsk-20160111.tgz) = 7f05965b82ccc724a3d56ec31e3cd6e8e6e869add0bd8eff70927640cc01a187 -SIZE (pytsk-20160111.tgz) = 92570 +SHA256 (pytsk3-20160325.tar.gz) = 403b9e364eb65611a5102d808a7916096b2aa3e32d21dea2c706eae2cc29150d +SIZE (pytsk3-20160325.tar.gz) = 2739896 Added: head/sysutils/py-pytsk/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-pytsk/files/patch-setup.py Sun May 1 17:23:11 2016 (r414413) @@ -0,0 +1,44 @@ +# Unbundle sleuthkit and talloc + +--- setup.py.orig 2016-03-25 08:41:14 UTC ++++ setup.py +@@ -169,9 +169,9 @@ class BuildExtCommand(build_ext): + + def run(self): + compiler = new_compiler(compiler=self.compiler) +- self.define = self.configure_source_tree(compiler) ++ self.define = [("HAVE_TSK_LIBTSK_H", "")] + +- libtsk_path = "sleuthkit/tsk" ++ libtsk_path = "%%LOCALBASE%%/include/tsk" + + if not os.access("pytsk3.c", os.R_OK): + # Generate the Python binding code (pytsk3.c). +@@ -322,7 +322,7 @@ class ProjectBuilder(object): + self._argv = argv + + # The path to the "tsk" directory. +- self._libtsk_path = "sleuthkit/tsk" ++ self._libtsk_path = "%%LOCALBASE%%/include/tsk" + + # paths under the tsk/ directory which contain files we need to compile. + self._sub_library_names = "auto base docs fs hashdb img vs".split() +@@ -330,14 +330,14 @@ class ProjectBuilder(object): + # The args for the extension builder. + self.extension_args = dict( + define_macros=[], +- include_dirs=["talloc", "sleuthkit/tsk", "sleuthkit", "."], +- library_dirs=[], +- libraries=[], ++ include_dirs=[".", "%%LOCALBASE%%/include"], ++ library_dirs=["%%LOCALBASE%%/lib"], ++ libraries=["tsk", "talloc"], + ) + + # The sources to build. + self._source_files = ["class.c", "error.c", "tsk3.c", +- "pytsk3.c", "talloc/talloc.c"] ++ "pytsk3.c"] + + # Path to the top of the unpacked sleuthkit sources. + self._sleuthkit_path = "sleuthkit"