media-fonts/encodings: Turn into well-behaved font
authorSebastian Pipping <sping@gentoo.org>
Thu, 20 Sep 2018 21:29:03 +0000 (23:29 +0200)
committerSebastian Pipping <sping@gentoo.org>
Thu, 20 Sep 2018 22:10:43 +0000 (00:10 +0200)
Lack of file /usr/share/fonts/encodings/.uuid
causes sandbox violation issues in other packages.
font_pkg_postinst take care of its creation now.

eclass xorg-2.eclass would inherit font.eclass for us
but package "media-fonts/encodings" does not pass the guard
for pattern media-fonts/font* in xorg-2.eclass, so we need
to inherit font.eclass, explicitly.

Bug: https://bugs.gentoo.org/665008

Package-Manager: Portage-2.3.49, Repoman-2.3.10

media-fonts/encodings/encodings-1.0.4-r2.ebuild [new file with mode: 0644]

diff --git a/media-fonts/encodings/encodings-1.0.4-r2.ebuild b/media-fonts/encodings/encodings-1.0.4-r2.ebuild
new file mode 100644 (file)
index 0000000..0d23578
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit xorg-2 font  # since media-fonts/encodings does not match media-fonts/font*
+
+DESCRIPTION="X.Org font encodings"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="x11-apps/mkfontscale
+       >=media-fonts/font-util-1.1.1-r1"
+
+ECONF_SOURCE="${S}"