diff options
Diffstat (limited to 'dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild')
-rw-r--r-- | dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild b/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild new file mode 100644 index 000000000000..192f5277277d --- /dev/null +++ b/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Library and headers for Wnn7 client" +HOMEPAGE="http://www.omronsoft.co.jp/SP/pcunix/sdk/index.html" +SRC_URI="ftp://ftp.omronsoft.co.jp/pub/Wnn7/sdk_source/Wnn7SDK.tgz" + +LICENSE="freedist" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# x11 is required for imake +DEPEND="x11-misc/imake" +RDEPEND="" + +S="${WORKDIR}/src" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-malloc.patch" + epatch "${FILESDIR}/${PN}-gentoo.patch" + epatch "${FILESDIR}/${PN}-gcc4.patch" + epatch "${FILESDIR}/${PN}-qa.patch" + + # Fix path to point to Xorg directory + sed -e "s:X11R6/::g" -i config/X11.tmpl || sed "sed 1 failed" + + sed -i -e "/CONFIGSRC =/s:=.*:= /usr/$(get_libdir)/X11/config:" Makefile.ini || die "sed 2 failed" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \ + SHLIBGLOBALSFLAGS="${LDFLAGS}" \ + World -f Makefile.ini || die "make World failed" +} + +src_install() { + dolib.so Wnn/jlib/*.so* || die "dolib.so failed" + dolib.a Wnn/jlib/*.a || die "dolib.a failed" + + insinto /usr/include/${PN}/wnn + doins Wnn/include/*.h || die "doins failed" + + dodoc README +} |