FreeBSD Bugzilla – Attachment 191605 Details for
Bug 226702
New port: deskutils/mat, the Metadata Anonymization Toolkit (& dependency: textproc/py-pdfrw)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mat.patch
mat.patch (text/plain), 4.08 KB, created by
Val Packett
on 2018-03-18 17:44:56 UTC
(
hide
)
Description:
mat.patch
Filename:
MIME Type:
Creator:
Val Packett
Created:
2018-03-18 17:44:56 UTC
Size:
4.08 KB
patch
obsolete
>diff --git c/deskutils/mat/Makefile i/deskutils/mat/Makefile >new file mode 100644 >index 000000000000..6d331809e348 >--- /dev/null >+++ i/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} >+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mutagen>=0:audio/py-mutagen@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pdfrw>=0:textproc/py-pdfrw@${PY_FLAVOR} \ >+ srm:security/srm >+ >+USE_GITLAB= yes >+GL_SITE= https://0xacab.org >+GL_ACCOUNT= mat >+GL_COMMIT= 4b9a65758da4bb27724ac1f94162810a29cb3877 >+ >+USES= python:2.7 >+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 c/deskutils/mat/distinfo i/deskutils/mat/distinfo >new file mode 100644 >index 000000000000..0108fdf4a4eb >--- /dev/null >+++ i/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 c/deskutils/mat/files/patch-libmat_mat.py i/deskutils/mat/files/patch-libmat_mat.py >new file mode 100644 >index 000000000000..f81a72e41006 >--- /dev/null >+++ i/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 c/deskutils/mat/pkg-descr i/deskutils/mat/pkg-descr >new file mode 100644 >index 000000000000..d1c3e06292b5 >--- /dev/null >+++ i/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 >diff --git c/textproc/py-pdfrw/Makefile i/textproc/py-pdfrw/Makefile >new file mode 100644 >index 000000000000..4f83b06e542e >--- /dev/null >+++ i/textproc/py-pdfrw/Makefile >@@ -0,0 +1,17 @@ >+# $FreeBSD$ >+ >+PORTNAME= pdfrw >+PORTVERSION= 0.4 >+CATEGORIES= textproc python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= greg@unrelenting.technology >+COMMENT= PDF file reader/writer library >+ >+LICENSE= MIT >+ >+USES= python >+USE_PYTHON= distutils autoplist >+ >+.include <bsd.port.mk> >diff --git c/textproc/py-pdfrw/distinfo i/textproc/py-pdfrw/distinfo >new file mode 100644 >index 000000000000..228ad1b8d563 >--- /dev/null >+++ i/textproc/py-pdfrw/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1521393528 >+SHA256 (pdfrw-0.4.tar.gz) = 0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4 >+SIZE (pdfrw-0.4.tar.gz) = 95402 >diff --git c/textproc/py-pdfrw/pkg-descr i/textproc/py-pdfrw/pkg-descr >new file mode 100644 >index 000000000000..ad9a51bf467c >--- /dev/null >+++ i/textproc/py-pdfrw/pkg-descr >@@ -0,0 +1,11 @@ >+A Python library and utility that reads and writes PDF files: >+ >+- Version 0.4 is tested and works on Python 2.6, 2.7, 3.3, 3.4, 3.5, and 3.6 >+- Operations include subsetting, merging, rotating, modifying metadata, etc. >+- The fastest pure Python PDF parser available >+- Has been used for years by a printer in pre-press production >+- Can be used with rst2pdf to faithfully reproduce vector images >+- Can be used either standalone, or in conjunction with reportlab to reuse existing PDFs in new ones >+- Permissively licensed >+ >+WWW: https://github.com/pmaupin/pdfrw
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226702
: 191605