media-fonts/encodings: Fix xorg-2_src_install shadowing regression
authorSebastian Pipping <sping@gentoo.org>
Fri, 21 Sep 2018 11:18:12 +0000 (13:18 +0200)
committerSebastian Pipping <sping@gentoo.org>
Fri, 21 Sep 2018 11:21:16 +0000 (13:21 +0200)
xorg-2_pkg_post* are called to be future proof, only.

Closes: https://bugs.gentoo.org/665008
Package-Manager: Portage-2.3.49, Repoman-2.3.10

media-fonts/encodings/encodings-1.0.4-r3.ebuild [moved from media-fonts/encodings/encodings-1.0.4-r2.ebuild with 64% similarity]

similarity index 64%
rename from media-fonts/encodings/encodings-1.0.4-r2.ebuild
rename to media-fonts/encodings/encodings-1.0.4-r3.ebuild
index 0d23578cb7893a4005e17b09a55f4f07a9a98c2d..af7bb67275f03d4146fa57c163fd2d99a6f28906 100644 (file)
@@ -2,7 +2,10 @@
 # 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*
+
+# font eclass is needed since "media-fonts/encodings" does not match
+# check for pattern media-fonts/font* in xorg-2 eclass
+inherit font xorg-2
 
 DESCRIPTION="X.Org font encodings"
 
@@ -13,3 +16,13 @@ DEPEND="x11-apps/mkfontscale
        >=media-fonts/font-util-1.1.1-r1"
 
 ECONF_SOURCE="${S}"
+
+pkg_postinst() {
+       xorg-2_pkg_postinst
+       font_pkg_postinst
+}
+
+pkg_postrm() {
+       xorg-2_pkg_postrm
+       font_pkg_postrm
+}