diff options
author | Ionen Wolkens <sudinave@gmail.com> | 2021-04-15 18:42:15 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-16 04:46:55 +0000 |
commit | 2b541fdfe5df85dc7b55270d658404e53ffc735d (patch) | |
tree | 141ea5fe4889daeec0c89bd8a2eea5c9dc7d0a64 /x11-terms/kterm/kterm-6.2.0-r7.ebuild | |
parent | games-board/xgammon: revbump for x11-terms/kterm collision fix (diff) | |
download | gentoo-2b541fdfe5df85dc7b55270d658404e53ffc735d.tar.gz gentoo-2b541fdfe5df85dc7b55270d658404e53ffc735d.tar.bz2 gentoo-2b541fdfe5df85dc7b55270d658404e53ffc735d.zip |
x11-terms/kterm: revbump to fix the collision fix
Fix pre-existed to avoid collisions with games-board/xscrabble and
games-board/xgammon but didn't check for right libdir.
New revisions are able to coexist.
Closes: https://bugs.gentoo.org/668892
Closes: https://bugs.gentoo.org/706322
Signed-off-by: Ionen Wolkens <sudinave@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-terms/kterm/kterm-6.2.0-r7.ebuild')
-rw-r--r-- | x11-terms/kterm/kterm-6.2.0-r7.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/x11-terms/kterm/kterm-6.2.0-r7.ebuild b/x11-terms/kterm/kterm-6.2.0-r7.ebuild new file mode 100644 index 000000000000..7d3887865794 --- /dev/null +++ b/x11-terms/kterm/kterm-6.2.0-r7.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Japanese Kanji X Terminal" +#HOMEPAGE="http://www.asahi-net.or.jp/~hc3j-tkg/kterm/" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.gz + mirror://gentoo/${P}-wpi.patch.gz + mirror://gentoo/${P}.ext02.patch.gz" + +LICENSE="MIT HPND XC" +SLOT="0" +KEYWORDS="-alpha amd64 ~ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="Xaw3d" + +RDEPEND="app-text/rman + sys-libs/ncurses:= + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libxkbfile + Xaw3d? ( x11-libs/libXaw3d ) + !<games-board/xgammon-0.98-r3 + !<games-board/xscrabble-2.10-r4" +DEPEND="${RDEPEND} + virtual/pkgconfig + x11-misc/gccmakedep + >=x11-misc/imake-1.0.8-r1 +" + +PATCHES=( + "${WORKDIR}"/${P}-wpi.patch # wallpaper patch + "${WORKDIR}"/${P}.ext02.patch # JIS 0213 support + "${FILESDIR}"/${PN}-openpty.patch + "${FILESDIR}"/${PN}-gentoo.patch + "${FILESDIR}"/${PN}-ad-gentoo.patch + "${FILESDIR}"/${PN}-underline.patch +) + +src_prepare() { + default + use Xaw3d && eapply "${FILESDIR}"/${PN}-Xaw3d.patch +} + +src_configure() { + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ + IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf -a || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" \ + TERMCAPLIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)" \ + XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" +} + +src_install() { + emake \ + BINDIR="${EPREFIX}/usr/bin" \ + XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" \ + DESTDIR="${D}" \ + install + einstalldocs + + # install man pages + newman ${PN}.man ${PN}.1 + iconv -f ISO-2022-JP -t UTF-8 ${PN}.jman > ${PN}.ja.1 + doman ${PN}.ja.1 + + # remove link to avoid collision (bug #668892,706322) + rm "${ED}"/usr/$(get_libdir)/X11/app-defaults || die +} + +pkg_postinst() { + elog + elog "KTerm wallpaper support is enabled." + elog "In order to use this feature," + elog "you need specify favourite xpm file with -wp option" + elog + elog "\t% ${PN} -wp filename.xpm" + elog + elog "or set it with X resource" + elog + elog "\tKTerm*wallPaper: /path/to/filename.xpm" + elog +} |