diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/kinput2/kinput2-3.1-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/kinput2/kinput2-3.1-r2.ebuild')
-rw-r--r-- | app-i18n/kinput2/kinput2-3.1-r2.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/app-i18n/kinput2/kinput2-3.1-r2.ebuild b/app-i18n/kinput2/kinput2-3.1-r2.ebuild new file mode 100644 index 000000000000..864011015526 --- /dev/null +++ b/app-i18n/kinput2/kinput2-3.1-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_P="${PN}-v${PV}" + +DESCRIPTION="A Japanese input server which supports the XIM protocol" +HOMEPAGE="http://www.nec.co.jp/canna" +SRC_URI="ftp://ftp.sra.co.jp/pub/x11/${PN}/${MY_P}.tar.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86" +IUSE="freewnn" + +RDEPEND="x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + !freewnn? ( app-i18n/canna ) + freewnn? ( app-i18n/freewnn )" +DEPEND="${RDEPEND} + x11-misc/gccmakedep + x11-misc/imake" +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-gentoo.patch + "${FILESDIR}"/${PN}-headers.patch + "${FILESDIR}"/${PN}-ppc.patch + "${FILESDIR}"/${PN}-segfault.patch + "${FILESDIR}"/${PN}-wnn.patch +) +DOCS=( README NEWS doc/. ) + +src_prepare() { + default + + sed -i "s|^/\* \(#define Use$(usex freewnn Wnn Canna)\) \*/|\1|" ${PN^k}.conf +} + +src_configure() { + xmkmf -a || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" \ + XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" +} + +src_install() { + emake \ + XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" \ + DESTDIR="${D}" \ + install + einstalldocs + newman cmd/${PN}.man ${PN}.1 + + rm -rf "${ED}"/usr/$(get_libdir)/X11 + + insinto /etc/X11/xinit/xinput.d + sed \ + -e "s:@EPREFIX@:${EPREFIX}:g" \ + -e "s:@SERVER@:$(usex freewnn wnn canna):g" \ + "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf + doins "${T}"/${PN}.conf +} |