aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/py-metadata-cleaner/Makefile31
-rw-r--r--multimedia/py-metadata-cleaner/distinfo3
-rw-r--r--multimedia/py-metadata-cleaner/files/patch-meson.build11
-rw-r--r--multimedia/py-metadata-cleaner/pkg-descr12
-rw-r--r--multimedia/py-metadata-cleaner/pkg-plist42
6 files changed, 100 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 9688f654bded..3ab8ac274733 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -322,6 +322,7 @@
SUBDIR += py-guessit
SUBDIR += py-librtmp
SUBDIR += py-mat2
+ SUBDIR += py-metadata-cleaner
SUBDIR += py-mido
SUBDIR += py-mlt6
SUBDIR += py-moviepy
diff --git a/multimedia/py-metadata-cleaner/Makefile b/multimedia/py-metadata-cleaner/Makefile
new file mode 100644
index 000000000000..1e5a8b0021bc
--- /dev/null
+++ b/multimedia/py-metadata-cleaner/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= metadata-cleaner
+DISTVERSION= 1.0.7
+CATEGORIES= multimedia audio graphics python textproc
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= fuz@fuz.su
+COMMENT= Python GTK application to view and clean metadata in files, using mat2
+
+LICENSE= CC-BY-SA-4.0 GPLv3+
+LICENSE_COMB= multi
+LICENSE_FILE_CC-BY-SA-4.0= ${WRKSRC}/LICENSES/CC-BY-SA-4.0.txt
+LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSES/GPL-3.0-or-later.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mat2>0:multimedia/py-mat2@${PY_FLAVOR}
+LIB_DEPENDS= libhandy-1.so:x11-toolkits/libhandy
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mat2>0:multimedia/py-mat2@${PY_FLAVOR}
+
+USES= gettext-tools gnome meson pkgconfig python shebangfix
+USE_GITLAB= yes
+GL_ACCOUNT= rmnvgr
+GL_COMMIT= b8cd4f28c82d5da9b93cd892355b66f8b7340129
+USE_GNOME= gtk30 pygobject3
+GLIB_SCHEMAS= fr.romainvigier.MetadataCleaner.gschema.xml
+INSTALLS_ICONS= yes
+USE_PYTHON= concurrent flavors
+
+SHEBANG_GLOB= *.py *.py.in
+BINARY_ALIAS= python3=${PYTHON_VERSION}
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-metadata-cleaner/distinfo b/multimedia/py-metadata-cleaner/distinfo
new file mode 100644
index 000000000000..014abe0ac22b
--- /dev/null
+++ b/multimedia/py-metadata-cleaner/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1626965261
+SHA256 (rmnvgr-metadata-cleaner-b8cd4f28c82d5da9b93cd892355b66f8b7340129_GL0.tar.gz) = 52b957d96f1d464ca33e6828afaf667854720f2dffa3332feefd343d9c1b50cd
+SIZE (rmnvgr-metadata-cleaner-b8cd4f28c82d5da9b93cd892355b66f8b7340129_GL0.tar.gz) = 172170
diff --git a/multimedia/py-metadata-cleaner/files/patch-meson.build b/multimedia/py-metadata-cleaner/files/patch-meson.build
new file mode 100644
index 000000000000..376bdf378feb
--- /dev/null
+++ b/multimedia/py-metadata-cleaner/files/patch-meson.build
@@ -0,0 +1,11 @@
+--- meson.build.orig 2021-07-05 08:07:46 UTC
++++ meson.build
+@@ -29,7 +29,7 @@ schemasdir = join_paths(datadir, 'glib-2.0', 'schemas'
+ dependency('gtk+-3.0', version: '>=3.24')
+ dependency('libhandy-1')
+ dependency('pygobject-3.0', version: '>= 3.30')
+-dependency('python3')
++#dependency('python3')
+
+ bin_config = configuration_data()
+ bin_config.set('localedir', localedir)
diff --git a/multimedia/py-metadata-cleaner/pkg-descr b/multimedia/py-metadata-cleaner/pkg-descr
new file mode 100644
index 000000000000..9f6c31174032
--- /dev/null
+++ b/multimedia/py-metadata-cleaner/pkg-descr
@@ -0,0 +1,12 @@
+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
diff --git a/multimedia/py-metadata-cleaner/pkg-plist b/multimedia/py-metadata-cleaner/pkg-plist
new file mode 100644
index 000000000000..62215f0aa6cd
--- /dev/null
+++ b/multimedia/py-metadata-cleaner/pkg-plist
@@ -0,0 +1,42 @@
+bin/metadata-cleaner
+%%PYTHON_SITELIBDIR%%/metadatacleaner/__init__.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/aboutdialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/aboutmetadataprivacydialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/aboutremovingmetadatadialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/addfilesbutton.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/app.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/cleanmetadatabutton.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/emptyview.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/file.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filebutton.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filechooserdialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filepopover.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filerow.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filesmanager.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/filesview.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/logger.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/menubutton.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/menupopover.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/metadatadetails.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/metadatawindow.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/savefilesbutton.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/savewarningdialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/shortcutsdialog.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/statusindicator.py
+%%PYTHON_SITELIBDIR%%/metadatacleaner/window.py
+share/applications/fr.romainvigier.MetadataCleaner.desktop
+share/icons/hicolor/scalable/apps/fr.romainvigier.MetadataCleaner.svg
+share/icons/hicolor/symbolic/apps/fr.romainvigier.MetadataCleaner-symbolic.svg
+share/locale/de/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/es/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/fi/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/fr/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/hr/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/id/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/lt/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/nb_NO/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/pt_BR/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/sv/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/locale/tr/LC_MESSAGES/fr.romainvigier.MetadataCleaner.mo
+share/metadata-remover/fr.romainvigier.MetadataCleaner.gresource
+share/metainfo/fr.romainvigier.MetadataCleaner.metainfo.xml