diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild')
-rw-r--r-- | app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild new file mode 100644 index 000000000000..5ba8a1b13e56 --- /dev/null +++ b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" +inherit multilib eutils autotools libtool + +MY_P=${PN}_2.5.2.99.pre2+cvs20030224 + +DESCRIPTION="Chinese X Input Method" +HOMEPAGE="http://cle.linux.org.tw/xcin/" +SRC_URI="mirror://debian/pool/main/x/${PN}/${MY_P}.orig.tar.gz + mirror://debian/pool/main/x/${PN}/${MY_P}-1.4.diff.gz" + +LICENSE="XCIN GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug nls unicode" + +RDEPEND=">=sys-libs/db-4.5 + >=app-i18n/libtabe-0.2.6 + unicode? ( media-fonts/hkscs-ming + media-fonts/arphicfonts ) + app-i18n/libchewing + x11-libs/libX11" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S="${WORKDIR}/${MY_P/_/-}" + +src_prepare() { + epatch \ + "${WORKDIR}"/${MY_P}-1.4.diff \ + "${FILESDIR}"/${P}-glibc-2.10.patch \ + "${FILESDIR}"/${P}-make.patch \ + "${FILESDIR}"/${P}-ldflags.patch + rm -f configure + cd script + elibtoolize + eautoreconf + mv configure ../ +} + +src_configure() { + econf \ + --disable-static \ + --with-xcin-rcdir="${EPREFIX}/etc" \ + --with-xcin-dir="${EPREFIX}/usr/$(get_libdir)/xcin25" \ + --with-db-lib="${EPREFIX}/usr/$(get_libdir)" \ + --with-tabe-inc="${EPREFIX}/usr/include/tabe" \ + --with-tabe-lib="${EPREFIX}/usr/$(get_libdir)" \ + $(use_enable debug) +} + +src_compile() { + emake -j1 || die "emake failed." +} + +src_install() { + emake \ + prefix="${ED}/usr" \ + program_prefix="${D}" \ + install || die + + find "${ED}" -name "*.la" -type f -delete || die + + for docdir in doc doc/En doc/En/internal doc/history doc/internal doc/modules; do + docinto ${docdir#doc/} + for doc in $(find ${docdir} -maxdepth '1' -type 'f'); do + if use unicode; then + iconv -f BIG5 -t UTF-8 --output=${doc}.UTF-8 ${doc} + mv ${doc}.UTF-8 ${doc} + fi + dodoc ${doc} + done + done +} |