--- suite3270-3.6_p8.ebuild 2020-02-11 12:51:06.000000000 -0500 +++ suite3270-3.6_p8.ebuild 2020-05-01 19:11:02.711240626 -0400 @@ -100,8 +100,25 @@ use doc && dohtml html/* done - use X && font_src_install + if use X; then + font_src_install + einfo "Adding ${FONTDIR} as a new FontPath for Xorg..." + insinto /etc/X11/xorg.conf.d + doins ${FILESDIR}/10_x3270-fonts.conf + fi +} + +pkg_postinst() { + + if use X; then + font_pkg_postinst + ewarn "Please run an 'etc-update' and accept the changes concerning '10_x3270-fonts.conf' then restart Xorg." + ewarn "In the meantime you can also issue the following commands (non-peristent!) in your active user session:" + ewarn " xset fp+ /usr/share/fonts/x3270 && xset fp rehash" + einfo "It is advised to also install the Adobe fonts (media-fonts/font-adobe-... packages) and x11-terms/xterm for the tracing capability of x3270" + einfo "If you install media-fonts/font-adobe-... packages, remember to reference the installed fonts directories in your Xorg configuration!" + fi + } -pkg_postinst() { use X && font_pkg_postinst ; } pkg_postrm() { use X && font_pkg_postrm ; }