DIST xterm-315.tgz 1206477 SHA256 fee60049291a19357aa1022d6860a341c2750728ddac88520f01dc0fcd787d02 SHA512 ac634824213001d7ac7fcd11408d9d2956b512095136162d855aa474083f3a801a7830881c9acedd2eae751928e8803170bd243e9083dac74e3ec815dfaa5996 WHIRLPOOL eadc97982d44ce5b9d4231b417f789a13c2c795f59dc2c39b93f20920e0cbdcc3bde19acdbaf3e7864a9ad8d6a11e49f93523e9d3df9640e6a8e46ce77af0454
DIST xterm-317.tgz 1208960 SHA256 d2e5b0dbe47568f9e76123a4f0aeaafd586a4ce0c1beb63a476b07cd718e356d SHA512 43c92db70f22619cd09b6597f9c697ebf406a838388fcf10f8e34327e0e358c88c1853a0c375a0969e2f65c0689078fe4e7ca2f8f1eabd9ca89d7d32898eed55 WHIRLPOOL 1c9f30c8ecf27ec2227a87754d392cf8c5d9b3b0a55f28e9445c744f7892ed3dcec21b85ee995f3b90b7da6a3b53f9a998d6353f21641cff90657fc9b5d2d7d5
DIST xterm-318.tgz 1208968 SHA256 e71f2b0fb11d6c723c1f9af10fc01048b776f44c1636aa1b71e5eff77deb81d7 SHA512 d1ff9b4359a49f47cc9e5e7d6311242b7beef57e554389fe3033f69263b871ad5ba89d74b428d79564f013efced2d2d36cfac987aed8ab873722fdeb8fd6abf6 WHIRLPOOL 3712f84d50f3b281793ac7a2ffd9e604f663218d4a99f064c5b5d899ee11581a1bcdfdabf5f4be6c9c619f8069ed84777f64a50922b1d9e1bb28d84cc5e0831d
+DIST xterm-319.tgz 1216710 SHA256 e3b3ef8c3f3f0288e830ead85a49616f63f284abac430f032d9b87ffe471227d SHA512 ae1d18a281ae456b527dae942f690267e4745441465496c1ad47764df03bf4c7ee8a739502d0eb5c02295b9383f3fa9e2575918cfe409259381d42c16240620d WHIRLPOOL d561053d2d4e874e741f5f538b90eb700556e438a06709a832b82f64c820b4f991bacfd6708c6ec87d7982ff1c90d89cf09c4b9a8e5441113e76927075191564
--- /dev/null
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib
+
+DESCRIPTION="Terminal Emulator for X Windows"
+HOMEPAGE="http://invisible-island.net/xterm/"
+SRC_URI="ftp://invisible-island.net/${PN}/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+openpty toolbar truetype unicode Xaw3d"
+
+COMMON_DEPEND="kernel_linux? ( sys-libs/libutempter )
+ kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-lib-9.0 sys-libs/libutempter ) )
+ >=sys-libs/ncurses-5.7-r7:5=
+ x11-apps/xmessage
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXft
+ x11-libs/libxkbfile
+ x11-libs/libXmu
+ x11-libs/libXrender
+ x11-libs/libXt
+ unicode? ( x11-apps/luit )
+ Xaw3d? ( x11-libs/libXaw3d )"
+RDEPEND="${COMMON_DEPEND}
+ media-fonts/font-misc-misc"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ x11-proto/kbproto
+ x11-proto/xproto"
+
+DOCS=( README{,.i18n} ctlseqs.txt )
+
+pkg_setup() {
+ DEFAULTS_DIR="${EPREFIX}"/usr/share/X11/app-defaults
+}
+
+src_configure() {
+ # 454736
+ # Workaround for ncurses[tinfo] until upstream fixes their buildsystem using
+ # something sane like pkg-config or ncurses5-config and stops guessing libs
+ # Everything gets linked against ncurses anyways, so don't shout
+ append-libs $(pkg-config --libs ncurses)
+
+ econf \
+ --libdir="${EPREFIX}"/etc \
+ --disable-full-tgetent \
+ --with-app-defaults="${DEFAULTS_DIR}" \
+ --disable-setuid \
+ --disable-setgid \
+ --with-utempter \
+ --with-x \
+ $(use_with Xaw3d) \
+ --disable-imake \
+ --enable-256-color \
+ --enable-broken-osc \
+ --enable-broken-st \
+ --enable-exec-xterm \
+ $(use_enable truetype freetype) \
+ --enable-i18n \
+ --enable-load-vt-fonts \
+ --enable-logging \
+ $(use_enable openpty) \
+ $(use_enable toolbar) \
+ $(use_enable unicode mini-luit) \
+ $(use_enable unicode luit) \
+ --enable-wide-chars \
+ --enable-dabbrev \
+ --enable-warnings
+}
+
+src_install() {
+ default
+
+ dohtml xterm.log.html
+ domenu *.desktop
+
+ # Fix permissions -- it grabs them from live system, and they can
+ # be suid or sgid like they were in pre-unix98 pty or pre-utempter days,
+ # respectively (#69510).
+ # (info from Thomas Dickey) - Donnie Berkholz <spyderous@gentoo.org>
+ fperms 0755 /usr/bin/xterm
+
+ # restore the navy blue
+ sed -i -e "s:blue2$:blue:" "${D}${DEFAULTS_DIR}"/XTerm-color || die
+}