Bug 257614

Summary: [New Port] multimedia/py-metadata-cleaner: Python GTK application to view and clean metadata in files, using mat2
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: Li-Wen Hsu <lwhsu>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://gitlab.com/rmnvgr/metadata-cleaner
Attachments:
Description Flags
multimedia/py-metadata-cleaner: Python GTK application to view and clean metadata in files, using mat2
none
multimedia/py-metadata-cleaner: Python GTK application to view and clean metadata in files, using mat2 none

Description Robert Clausecker freebsd_committer freebsd_triage 2021-08-04 11:34:38 UTC
Created attachment 226943 [details]
multimedia/py-metadata-cleaner: Python GTK application to view and clean metadata in files, using mat2

GTK frontend for multimedia/py-metadata-cleaner.  Not available on PIP it seems, so no CHEESESHOP upstream.

Tested with Poudriere on i386 amd64 armv7 arm64 FreeBSD 13.0-RELEASE.

Portlint wants me to add an NLS option, but I don't think the port supports building without NLS.

I've patched the Meson files so they don't look for a python3 binary (BINARY_ALIAS doesn't suffice unfortunately).  It does build and run just fine this way.  Please advice if there is a better options.

Even though USE_PYTHON=concurrent is set, it is unlikely that this port supports concurrent installation because it also installs additional files such as resources and icons into unversioned locations.  I am not sure if this can be worked around easily.  Please advice if a different approach needs to be taken.

***
Metadata within a file can tell a lot about you. Cameras record data
about when a picture was taken and what camera was used. Office
applications automatically add author and company information to
documents and spreadsheets. Maybe you don't want to disclose those
pieces of information.

This tool allows you to view metadata in your files and to get rid of
them, as much as possible.

Under the hood, it relies on mat2 to parse and remove the metadata.

WWW: https://gitlab.com/rmnvgr/metadata-cleaner
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2021-08-04 12:50:14 UTC
Created attachment 226944 [details]
multimedia/py-metadata-cleaner: Python GTK application to view and clean metadata in files, using mat2

Replace patch with updated patch.

I had accidentally updated an in-progress version of the patch due to a confusion about the branch I am on.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-08-05 02:23:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=014957b2485377351043f1ee21f37fd36a47a052

commit 014957b2485377351043f1ee21f37fd36a47a052
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-08-05 02:20:13 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-08-05 02:22:36 +0000

    multimedia/py-metadata-cleaner: Add new port

    Python GTK application to view and clean metadata in files, using mat2

    PR:             257614

 multimedia/Makefile                                |  1 +
 multimedia/py-metadata-cleaner/Makefile (new)      | 31 ++++++++++++++++
 multimedia/py-metadata-cleaner/distinfo (new)      |  3 ++
 .../files/patch-meson.build (new)                  | 11 ++++++
 multimedia/py-metadata-cleaner/pkg-descr (new)     | 12 +++++++
 multimedia/py-metadata-cleaner/pkg-plist (new)     | 42 ++++++++++++++++++++++
 6 files changed, 100 insertions(+)