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/atokx3 | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/atokx3')
-rw-r--r-- | app-i18n/atokx3/Manifest | 6 | ||||
-rw-r--r-- | app-i18n/atokx3/atokx3-3.0.0-r12.ebuild | 209 | ||||
-rw-r--r-- | app-i18n/atokx3/files/xinput-iiimf | 11 | ||||
-rw-r--r-- | app-i18n/atokx3/metadata.xml | 8 |
4 files changed, 234 insertions, 0 deletions
diff --git a/app-i18n/atokx3/Manifest b/app-i18n/atokx3/Manifest new file mode 100644 index 000000000000..9b538ef32f53 --- /dev/null +++ b/app-i18n/atokx3/Manifest @@ -0,0 +1,6 @@ +AUX xinput-iiimf 259 BLAKE2B 02091d870ca82447aadfc6c33bffc38d2bfca596f4f5958917a07bf3bfd924818a1d805022616076da699a063fcfac1867060ae14a9911223102ea697bbf793c SHA512 bbc852628d17c56124cf977c8fba28d9819944ca1bc7994da38222707ac9f785aafe9d854a70fec968d87382be053753ae599f0d47d666d133c49c62096eb3cd +DIST a20y1406lx.tgz 8491493 BLAKE2B d5823dbc49661434c48d056d0d1d082be3d1d136e8eb8aab6b48f27b8198102201d5daeaca11717fba512b6260b928e165e6f500e8f1d70665c8907b9b1e5ce2 SHA512 bf350be4f15db63b384ff10ec7e362c469a836d052e8885aac1bab049f7d4f0b04dacaecbe5c1303211405938bc3f674136ba5ae3b55ff31aa5e4f14dbec0273 +DIST atokx3gtk216.tar.gz 69246 BLAKE2B 73d246e5c79da0888ffc32deed9d8770500c64377845c553f1ef4ca18b6c9ce93e20dd9188983d9a7664ead60dfb66f53f605a2ab7bf065db336266b5fb38178 SHA512 39c0ff01807626f417f34ef02e4be2fe07c52edc931775299e90fd8725d9c870c3473005fc87be5023d089e94fb4700f9ad36a10ad3373be22ec35e2a418eddd +DIST atokx3up2.tar.gz 8427265 BLAKE2B 6af19673dd443f69870316413bd53712a5b1f148f07d7b7f9dddff3290a4b6d65866e7d38a3c6a3d1ff15990560b706d46a558a77ff4c8200b36b4f1345c62bb SHA512 b4ce05882418a18e6a0ab58d805a1edeca69187bfa16a98b8f79d749ec0cfdc1b838de30f3049d3b8b0929214164c4c2054dbe283dce0f18a1ab2daa181e306d +EBUILD atokx3-3.0.0-r12.ebuild 6721 BLAKE2B 38a09411a47bd7ea2a41325377a3ec890ae25567a874953dd2bc0d443903f9c564410f68b50e8507a999f36a3a984077186869a0e6408566f38281e7a463bce4 SHA512 413de37981e24705a8311157df7fe18ae926fcfdbe99e64fa1cb8e01ae3ef238ebe11ef9a9c3e51392787b88215323a17fc6c502e49b0155f180f84e23cdbed1 +MISC metadata.xml 240 BLAKE2B 3e01f599fdbafa5c02b594007c673bcfcccb41559bd2f42d7ea60a1f13932335cecf353c1216e8feba4bb091385b57f05c4c8b3c62eed6c7bea41e308fc6115c SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd diff --git a/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild b/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild new file mode 100644 index 000000000000..70c48e5edce0 --- /dev/null +++ b/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild @@ -0,0 +1,209 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +inherit cdrom eutils gnome2-utils multilib-build + +MY_UPDATE_P="${PN}up2" +MY_UPDATE_GTK="${PN}gtk216" +MY_ZIPCODE_P="a20y1406lx" + +DESCRIPTION="ATOK X3 for Linux - The most famous Japanese Input Method Engine" +HOMEPAGE="https://www.justsystems.com/jp/products/atok_linux/" +SRC_URI="https://gate.justsystems.com/download/atok/up/lin/${MY_UPDATE_P}.tar.gz + https://gate.justsystems.com/download/atok/up/lin/${MY_UPDATE_GTK}.tar.gz + https://gate.justsystems.com/download/zipcode/up/lin/${MY_ZIPCODE_P}.tgz" + +LICENSE="ATOK MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="strip mirror" + +RDEPEND="dev-libs/atk + dev-libs/glib:2 + dev-libs/libxml2:2 + media-libs/fontconfig + media-libs/libpng + sys-apps/tcp-wrappers + virtual/pam + x11-libs/cairo + >=x11-libs/gtk+-2.4.13:2 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXxf86vm + x11-libs/libdrm + x11-libs/pangox-compat + amd64? ( + >=dev-libs/atk-2.10.0[abi_x86_32(-)] + >=dev-libs/glib-2.34.3:2[abi_x86_32(-)] + >=dev-libs/libxml2-2.9.1-r4:2[abi_x86_32(-)] + >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] + >=media-libs/libpng-1.2.51[abi_x86_32(-)] + >=sys-apps/tcp-wrappers-7.6.22-r1[abi_x86_32(-)] + >=virtual/pam-0-r1[abi_x86_32(-)] + >=x11-libs/cairo-1.12.14-r4[abi_x86_32(-)] + >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)] + >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)] + >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)] + >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] + >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] + >=x11-libs/libXdamage-1.1.4-r1[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=x11-libs/libXfixes-5.0.1[abi_x86_32(-)] + >=x11-libs/libXft-2.3.1-r1[abi_x86_32(-)] + >=x11-libs/libXi-1.7.2[abi_x86_32(-)] + >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] + >=x11-libs/libXrender-0.9.8[abi_x86_32(-)] + >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] + >=x11-libs/libdrm-2.4.46[abi_x86_32(-)] + >=x11-libs/pangox-compat-0.0.2[abi_x86_32(-)] + )" +S="${WORKDIR}" + +EMULTILIB_PKG="true" + +pkg_setup() { + if ! cdrom_get_cds ${PN}index ; then + die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK X3 for Linux." + fi + + QA_PREBUILT="opt/${PN}/lib/server/* + opt/${PN}/lib/client/xaux/* + opt/${PN}/lib/client/* + opt/${PN}/bin/* + usr/libexec/* + usr/bin/* + usr/$(get_libdir)/* + usr/$(get_libdir)/gtk-2.0/immodules/* + usr/$(get_libdir)/iiim/le/${PN}/64/* + usr/$(ABI=x86 get_libdir)/* + usr/$(ABI=x86 get_libdir)/gtk-2.0/immodules/* + usr/$(ABI=x86 get_libdir)/iiim/* + usr/$(ABI=x86 get_libdir)/iiim/le/${PN}/*" +} + +src_unpack() { + local targets=" + IIIMF/iiimf-client-lib-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-gtk-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-protocol-lib-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-server-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-x-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-client-lib-devel-trunk_r3104-js*.i386.tar.gz + IIIMF/iiimf-protocol-lib-devel-trunk_r3104-js*.i386.tar.gz + ATOK/atokx-20.0-*.0.0.i386.tar.gz" + # IIIMF/iiimf-properties-trunk_r3104-js*.i386.tar.gz + # IIIMF/iiimf-docs-trunk_r3104-js*.i386.tar.gz + # IIIMF/iiimf-notuse-trunk_r3104-js*.i386.tar.gz + + if use abi_x86_64 ; then + targets+=" + IIIMF/iiimf-client-lib-64-trunk_r3104-js*.x86_64.tar.gz + IIIMF/iiimf-gtk-64-trunk_r3104-js*.x86_64.tar.gz + IIIMF/iiimf-protocol-lib-64-trunk_r3104-js*.x86_64.tar.gz + ATOK/atokx-64-20.0-*.0.0.x86_64.tar.gz" + # IIIMF/iiimf-client-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz + # IIIMF/iiimf-protocol-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz + # IIIMF/iiimf-notuse-64-trunk_r3104-js*.x86_64.tar.gz + fi + + targets+=" ATOK/atokxup-20.0-*.0.0.i386.tar.gz" + + unpack ${MY_UPDATE_P}.tar.gz + + local i + for i in ${targets} ; do + if [[ -f "${S}"/${MY_UPDATE_P}/bin/${i} ]] ; then + einfo "unpack" $(basename "${S}"/${MY_UPDATE_P}/bin/${i}) + tar xzf "${S}"/${MY_UPDATE_P}/bin/${i} || die "Failed to unpack ${i}" + elif [[ -f "${CDROM_ROOT}"/bin/tarball/${i} ]] ; then + einfo "unpack" $(basename "${CDROM_ROOT}"/bin/tarball/${i}) + tar xzf "${CDROM_ROOT}"/bin/tarball/${i} || die "Failed to unpack ${i}" + else + die "${i} not found." + fi + done + unpack ${MY_UPDATE_GTK}.tar.gz + unpack ${MY_ZIPCODE_P}.tgz +} + +src_prepare() { + if use abi_x86_64 ; then + local lib32="$(ABI=x86 get_libdir)" + local lib64="$(get_libdir)" + if [[ "lib" != "${lib32}" ]] ; then + mv usr/lib "usr/${lib32}" || die + fi + if [[ "lib64" != "${lib64}" ]] ; then + mv usr/lib64 "usr/${lib64}" || die + fi + mkdir -p "usr/${lib64}/iiim/le/${PN}" || die + mv "usr/${lib32}/iiim/le/${PN}/64" "usr/${lib64}/iiim/le/${PN}/64" || die + rm "usr/${lib32}/iiim/le/${PN}/amd64" || die + sed -e "s:/usr/lib:/usr/${lib64}:" "usr/${lib32}/libiiimcf.la" > "usr/${lib64}/libiiimcf.la" || die + sed -e "s:/usr/lib:/usr/${lib64}:" "usr/${lib32}/libiiimp.la" > "usr/${lib64}/libiiimp.la" || die + sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimcf.la" || die + sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimp.la" || die + fi +} + +src_install() { + DOCS=( ${MY_UPDATE_P}/README_UP2.txt "${CDROM_ROOT}"/doc/atok.pdf ) + HTML_DOCS=( "${CDROM_ROOT}"/readme.html ) + einstalldocs + rm -rf ${MY_UPDATE_P} + + cp -dpR * "${ED}" || die + + # amd64 hack + if use abi_x86_64 ; then + local lib32="$(ABI=x86 get_libdir)" + local lib64="$(get_libdir)" + if [[ "${lib32}" != "${lib64}" ]] ; then + local f + for f in xiiimp.so xiiimp.a iiim-xbe xiiimp.so.2 xiiimp.so.2.0.0 iiimd-watchdog xiiimp.la ; do + dosym "${EPREFIX}/usr/${lib32}/iiim/${f}" "/usr/${lib64}/iiim/${f}" + done + for f in ${PN}aux.so ${PN}.so ; do + dosym "${EPREFIX}/usr/${lib32}/iiim/le/${PN}/${f}" "/usr/${lib64}/iiim/le/${PN}/${f}" + done + dosym "${EPREFIX}/usr/${lib64}/iiim/le/${PN}/64" "/usr/${lib32}/iiim/le/${PN}/64" + dosym "${EPREFIX}/usr/${lib64}/iiim/le/${PN}/64" "/usr/${lib32}/iiim/le/${PN}/amd64" + fi + fi + + sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-iiimf" > "${T}/iiimf.conf" || die + insinto /etc/X11/xinit/xinput.d + doins "${T}/iiimf.conf" +} + +pkg_preinst() { + # bug #343325 + if use abi_x86_64 && has_multilib_profile && [[ -L "${EPREFIX}/usr/$(get_libdir)/iiim" ]] ; then + rm -f "${EPREFIX}/usr/$(get_libdir)/iiim" + fi +} + +pkg_postinst() { + elog + elog "To use ATOK for Linux, you need to add following to .xinitrc or .xprofile:" + elog + elog ". /opt/${PN}/bin/${PN}start.sh" + elog + multilib_foreach_abi gnome2_query_immodules_gtk2 +} + +pkg_postrm() { + multilib_foreach_abi gnome2_query_immodules_gtk2 +} diff --git a/app-i18n/atokx3/files/xinput-iiimf b/app-i18n/atokx3/files/xinput-iiimf new file mode 100644 index 000000000000..bc2330c49970 --- /dev/null +++ b/app-i18n/atokx3/files/xinput-iiimf @@ -0,0 +1,11 @@ +XIM=iiimx +XIM_PROGRAM="@EPREFIX@/usr/bin/iiimx" +XIM_ARGS=-iiimd +GTK_IM_MODULE=iiim +QT_IM_MODULE=xim + +export HTT_DISABLE_STATUS_WINDOW=t +export HTT_GENERATES_KANAKEY=t +export HTT_USES_LINUX_XKEYSYM=t +export HTT_IGNORES_LOCK_MASK=t +export JS_FEEDBACK_CONVERT=t diff --git a/app-i18n/atokx3/metadata.xml b/app-i18n/atokx3/metadata.xml new file mode 100644 index 000000000000..e1a49f498885 --- /dev/null +++ b/app-i18n/atokx3/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> +</pkgmetadata> |