Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 20:23:41 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472999 - in head/deskutils: . mat mat/files
Message-ID:  <201806212023.w5LKNfUr031265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Thu Jun 21 20:23:41 2018
New Revision: 472999
URL: https://svnweb.freebsd.org/changeset/ports/472999

Log:
  New port: deskutils/mat
  
  MAT (Metadata Anonymisation Toolkit) is a toolbox composed of a GUI
  application, a CLI application and a library, to anonymize/remove
  metadata.
  
  WWW: https://mat.boum.org
  
  PR:		226702
  Submitted by:	greg@unrelenting.technology

Added:
  head/deskutils/mat/
  head/deskutils/mat/Makefile   (contents, props changed)
  head/deskutils/mat/distinfo   (contents, props changed)
  head/deskutils/mat/files/
  head/deskutils/mat/files/patch-libmat_mat.py   (contents, props changed)
  head/deskutils/mat/pkg-descr   (contents, props changed)
Modified:
  head/deskutils/Makefile

Modified: head/deskutils/Makefile
==============================================================================
--- head/deskutils/Makefile	Thu Jun 21 20:22:16 2018	(r472998)
+++ head/deskutils/Makefile	Thu Jun 21 20:23:41 2018	(r472999)
@@ -171,6 +171,7 @@
     SUBDIR += lumina-screenshot
     SUBDIR += lumina-textedit
     SUBDIR += lumina-xdg-entry
+    SUBDIR += mat
     SUBDIR += mate-notification-daemon
     SUBDIR += mate-utils
     SUBDIR += mbox-importer

Added: head/deskutils/mat/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/mat/Makefile	Thu Jun 21 20:23:41 2018	(r472999)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME=		mat
+DISTVERSION=		0.6.1-12
+DISTVERSIONSUFFIX=	-g4b9a657
+CATEGORIES=		deskutils
+
+MAINTAINER=	greg@unrelenting.technology
+COMMENT=	Metadata Anonymization Toolkit
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-distutils-extra>0:devel/py-python-distutils-extra@${FLAVOR} \
+		intltool-update:textproc/intltool
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mutagen>=0:audio/py-mutagen@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pdfrw>=0:textproc/py-pdfrw@${PY_FLAVOR} \
+		srm:security/srm
+
+USES=		gettext python:2.7
+USE_GITLAB=	yes
+GL_SITE=	https://0xacab.org
+GL_ACCOUNT=	mat
+GL_COMMIT=	4b9a65758da4bb27724ac1f94162810a29cb3877
+USE_PYTHON=	distutils autoplist
+USE_GNOME=	gtk30 pygobject3
+INSTALLS_ICONS=	yes
+
+OPTIONS_DEFINE=		IMAGE
+OPTIONS_DEFAULT=	IMAGE
+
+IMAGE_DESC=		Image file support
+
+IMAGE_RUN_DEPENDS=	exiftool:graphics/p5-Image-ExifTool
+
+.include <bsd.port.mk>

Added: head/deskutils/mat/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/mat/distinfo	Thu Jun 21 20:23:41 2018	(r472999)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521393594
+SHA256 (mat-mat-4b9a65758da4bb27724ac1f94162810a29cb3877_GL0.tar.gz) = 4f4cab3ab353cc295ebff87fe69ab41a84ba0f1a24c688e128044731dc2c0a48
+SIZE (mat-mat-4b9a65758da4bb27724ac1f94162810a29cb3877_GL0.tar.gz) = 2729762

Added: head/deskutils/mat/files/patch-libmat_mat.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/mat/files/patch-libmat_mat.py	Thu Jun 21 20:23:41 2018	(r472999)
@@ -0,0 +1,15 @@
+--- libmat/mat.py.orig	2018-03-18 17:33:51 UTC
++++ libmat/mat.py
+@@ -116,10 +116,8 @@ def secure_remove(filename):
+         raise libmat.exceptions.UnableToWriteFile
+ 
+     try:
+-        shred = 'shred'
+-        if platform.system() == 'MacOS':
+-            shred = 'gshred'
+-        if not subprocess.call([shred, '--remove', filename]):
++        shred = 'srm'
++        if not subprocess.call([shred, filename]):
+             return True
+         else:
+             raise OSError

Added: head/deskutils/mat/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/mat/pkg-descr	Thu Jun 21 20:23:41 2018	(r472999)
@@ -0,0 +1,5 @@
+MAT (Metadata Anonymisation Toolkit) is a toolbox composed of a GUI
+application, a CLI application and a library, to anonymize/remove
+metadata.
+
+WWW: https://mat.boum.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806212023.w5LKNfUr031265>