aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2018-06-22 04:23:41 +0800
committerpi <pi@FreeBSD.org>2018-06-22 04:23:41 +0800
commit40b985efe997b65817d1911ca32041926ea0390c (patch)
tree497d315efa0f82324db41acfbe396ac3abb0ac37 /deskutils
parentc4eaa9211007bbd246544a503e7e2bc50bc76a3c (diff)
downloadfreebsd-ports-gnome-40b985efe997b65817d1911ca32041926ea0390c.tar.gz
freebsd-ports-gnome-40b985efe997b65817d1911ca32041926ea0390c.tar.zst
freebsd-ports-gnome-40b985efe997b65817d1911ca32041926ea0390c.zip
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
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/mat/Makefile36
-rw-r--r--deskutils/mat/distinfo3
-rw-r--r--deskutils/mat/files/patch-libmat_mat.py15
-rw-r--r--deskutils/mat/pkg-descr5
5 files changed, 60 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile
index 49e8be276a7b..354a4671c025 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -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
diff --git a/deskutils/mat/Makefile b/deskutils/mat/Makefile
new file mode 100644
index 000000000000..3fc96c2bc81b
--- /dev/null
+++ b/deskutils/mat/Makefile
@@ -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>
diff --git a/deskutils/mat/distinfo b/deskutils/mat/distinfo
new file mode 100644
index 000000000000..0108fdf4a4eb
--- /dev/null
+++ b/deskutils/mat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521393594
+SHA256 (mat-mat-4b9a65758da4bb27724ac1f94162810a29cb3877_GL0.tar.gz) = 4f4cab3ab353cc295ebff87fe69ab41a84ba0f1a24c688e128044731dc2c0a48
+SIZE (mat-mat-4b9a65758da4bb27724ac1f94162810a29cb3877_GL0.tar.gz) = 2729762
diff --git a/deskutils/mat/files/patch-libmat_mat.py b/deskutils/mat/files/patch-libmat_mat.py
new file mode 100644
index 000000000000..f81a72e41006
--- /dev/null
+++ b/deskutils/mat/files/patch-libmat_mat.py
@@ -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
diff --git a/deskutils/mat/pkg-descr b/deskutils/mat/pkg-descr
new file mode 100644
index 000000000000..d1c3e06292b5
--- /dev/null
+++ b/deskutils/mat/pkg-descr
@@ -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