Commits

Laurent Bachelier committed dfd84b1

Add app-misc/mat (Metadata Anonymisation Toolkit)

Comments (0)

Files changed (2)

app-misc/mat/Manifest

+DIST mat-0.3.4.tar.gz 298061 SHA256 b8b2d840dc3bc23b909c275f081ae51e74e623424115c8af737526dfe258458f SHA512 d5c2781700271682b54904b9f5934f09b3cb9475c7a2a1523f5af7f4a6d1ec02bcd043c0c16cb2f310d2a86da82c29a38afae7137080522e145eab5dd87ce6a9 WHIRLPOOL a5c2b74c0004b530ff6d65502322081a2aa0aaf83b9b18ec263e6f0acbb761c20d71d5da4e3cfed7aa16b1b715d363564e349840b024afb5f13b3e6533dc9a7b

app-misc/mat/mat-0.3.4.ebuild

+# Copyright 2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_DEPEND="2:2.6"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+DESCRIPTION="Metadata Anonymisation Toolkit"
+HOMEPAGE="https://mat.boum.org/"
+SRC_URI="https://mat.boum.org/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+exif +audio +pdf gtk"
+
+DEPEND="dev-python/python-distutils-extra
+dev-python/hachoir-core
+dev-python/hachoir-parser"
+RDEPEND="${DEPEND}
+exif? ( media-libs/exiftool )
+audio? ( media-libs/mutagen )
+pdf? ( dev-python/python-poppler dev-python/pycairo dev-python/pdfrw )
+gtk? ( dev-python/pygtk )"
+
+PYTHON_MODNAME="MAT"
+
+src_prepare() {
+	sed -i "s#share/doc/${PN}#share/doc/${PF}#" setup.py
+	use gtk || sed -i "s/'mat-gui'//" setup.py
+	use gtk || sed -i "s/'mat-gui.1'//" setup.py
+	use gtk || sed -i '/mat.desktop/d' setup.py
+	use gtk || sed -i '/pixmaps/d' setup.py
+}