From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-i18n/atokx3/Manifest | 8 ++ app-i18n/atokx3/atokx3-3.0.0-r12.ebuild | 209 ++++++++++++++++++++++++++++++++ app-i18n/atokx3/files/xinput-iiimf | 11 ++ app-i18n/atokx3/metadata.xml | 8 ++ 4 files changed, 236 insertions(+) create mode 100644 app-i18n/atokx3/Manifest create mode 100644 app-i18n/atokx3/atokx3-3.0.0-r12.ebuild create mode 100644 app-i18n/atokx3/files/xinput-iiimf create mode 100644 app-i18n/atokx3/metadata.xml (limited to 'app-i18n/atokx3') diff --git a/app-i18n/atokx3/Manifest b/app-i18n/atokx3/Manifest new file mode 100644 index 000000000000..3cfbc0a01a61 --- /dev/null +++ b/app-i18n/atokx3/Manifest @@ -0,0 +1,8 @@ +AUX xinput-iiimf 259 SHA256 e8464e950ddc11e17ba53c7e6c1aeb169044c9d80151a75e03b83f81cb91859c SHA512 bbc852628d17c56124cf977c8fba28d9819944ca1bc7994da38222707ac9f785aafe9d854a70fec968d87382be053753ae599f0d47d666d133c49c62096eb3cd WHIRLPOOL 9480ec0b14b250a48d432817bf649c880ac4f9732f8dd09146e97d1ab9a21781bec28c8aaac572e9c838ab2933b6781add215afe7fb749640f74e172b103fdaa +DIST a20y1406lx.tgz 8491493 SHA256 df19a3fc57c2a3cd09d5de8694f68b1e05826a67103d970815249ac5e5a8de73 SHA512 bf350be4f15db63b384ff10ec7e362c469a836d052e8885aac1bab049f7d4f0b04dacaecbe5c1303211405938bc3f674136ba5ae3b55ff31aa5e4f14dbec0273 WHIRLPOOL 747cbed162028853ab9f19f66eb039ab09827aa7665daa92814d2af3ae49865f749b0fe3f098e2a4780b69bbaddc4f1af594bd7b975062e9a056bb87e2c1feab +DIST atokx3gtk216.tar.gz 69246 SHA256 cd81d0e85872274135d94511ee71eda3f29f00ed299c1dacbdf024b9d96c62e2 SHA512 39c0ff01807626f417f34ef02e4be2fe07c52edc931775299e90fd8725d9c870c3473005fc87be5023d089e94fb4700f9ad36a10ad3373be22ec35e2a418eddd WHIRLPOOL 9bdad5de28564d0c7e3e1b3d67bc0fea09e2b1e9af5fb301ebbb90bc41e58fee405468020a06c84b0d97e3bbab28d7e421a0d9d293d9b957230fa476f823302d +DIST atokx3up2.tar.gz 8427265 SHA256 d9aae2b3917c3370bd40a3f0f767ad15a09a586986e906835952264cd5c1d28e SHA512 b4ce05882418a18e6a0ab58d805a1edeca69187bfa16a98b8f79d749ec0cfdc1b838de30f3049d3b8b0929214164c4c2054dbe283dce0f18a1ab2daa181e306d WHIRLPOOL 43b5e32e62cba0122e918f497a5c5d1da1b303721af8eb00b70a840431cc2aa0ffa7a7009cb4253caab690445a9921741aa6a6394044c4907e1acd1376c6c76e +EBUILD atokx3-3.0.0-r12.ebuild 6720 SHA256 eae685c718fd41698092ef78a38d984cf044fa895130389eb01019d816c3b82b SHA512 1edcff3e2b30fb9e44db5a9ffeb76361678179a1528df76ec2c7d67c1ebdaea67cc5182b1e3a1e1f739bc75f4df0f8bfd156f3f47fcf3957a07950f4ddd22401 WHIRLPOOL 345f003a7d6d670eefc7533789991ac1663098ecb852e6c60e057e11cca6e6faac9157a8a0fbafaddeed3a2454ecdeb9d4e25637990ba0ba41905e32251218ed +MISC ChangeLog 2453 SHA256 3fccf9c2aff010961e408ee5e7673246d22693e8c91e2f2820851a15661d9533 SHA512 af39f1812009e4098abe63cff1d71758a73f99a8fc95e2b3fc214648def5a79d440afa5fc1c504ea947b5cb0dbb531f0cee8c93371bddeade93f4ed504ba7f6a WHIRLPOOL e9fd88d14d312cd64cdd7de12c4d392df4f4180698cbbcc5c232795ad68a01e1537d97bf67dc19383e71c04faa379119d4ff22759926c43f3c6bd8fdafc58bb1 +MISC ChangeLog-2015 4660 SHA256 56995b121f04901b58831c702e289d61b3e4102dd950f85c3cc08e9d431f23e4 SHA512 8dfd73cbba9cf748a07e11e6baf8c39a33e3aadb64713f3729fb0a49d529b67c103cb2bd795e47266bd07266a1312a6455944beae80fc09926390f8ade6d1535 WHIRLPOOL ca4dff636c203ed640578c2cf799fdb65f4def42adb144a5012aa65d55a1ee6ef6bd746730c75efe957dcb52028b9a5f890033d4498d2927ed985b1fd6684d85 +MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c 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..00345250cc31 --- /dev/null +++ b/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild @@ -0,0 +1,209 @@ +# Copyright 1999-2017 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="http://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 @@ + + + + + cjk@gentoo.org + Cjk + + -- cgit v1.2.3