Kinput2 version 3.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    kinput2  most recent diff


    version 3.1

      View the most recent changes for the kinput2 port at: kinput2.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for kinput2.
      The raw portfile for kinput2 3.1 is located here:
      http://kinput2.darwinports.com/dports/x11/kinput2/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/kinput2


      The kinput2 Portfile 58013 2009-09-20 18:36:44Z takanori macports.org $

      PortSystem 1.0

      Name: kinput2
      Version: 3.1
      Revision: 5
      Category: x11 japanese
      Maintainers: takanori openmaintainer
      Description: Input server of Japanese text
      Long Description: ${description}
      Platform: darwin
      Homepage:
      Master Sites: macports ftp://ftp.sra.co.jp/pub/x11/kinput2/
      distname ${name}-v${version}
      Patch Files: patch-cmd_Kinput2.ad.diff patch-lib_Canna.c.diff patch-lib_IMProto.c.diff
      Checksums: md5 2de20576f150248d1fdfe66d7cc4e510 sha1 48050f70e7c0cc67193ea260f8d7f6e822a02ca3 rmd160 c56684769859bbee5f8238cd1af061796ff931e8

      depends_lib port:xorg-libXaw port:xorg-libXp

      if {[variant_isset wnn]} {
      } elseif {[variant_isset canna]} {
      } elseif {[variant_isset sj3]} {
      } else {
      default_variants +canna
      }

      post-patch {
      move ${worksrcpath}/Kinput2.conf ${worksrcpath}/Kinput2.conf.orig
      set fd [open [file join ${worksrcpath} Kinput2.conf] w 0644]
      puts ${fd} "CCDEF_DIR = \$(LIBDIR)/ccdef"
      if {[variant_isset canna]} {
      puts ${fd} "#define UseCanna"
      puts ${fd} "CANNAINSTDIR = ${prefix}"
      puts ${fd} "CANNASRC = \$(CANNAINSTDIR)/include"
      puts ${fd} "CANNALIB = -lcanna16 -L\$(CANNAINSTDIR)/lib"
      }
      puts ${fd} "TRANSPORTDEFS = -DNO_TCP_TRANSPORT"
      close ${fd}
      }

      use_xmkmf yes

      pre-build {
      system "cd ${worksrcpath} && make Makefiles PREFIX=${prefix}"
      system "cd ${worksrcpath} && make depend PREFIX=${prefix}"

      build.target {}
      if {[variant_isset universal]} {
      build.post_args PREFIX=${prefix} CDEBUGFLAGS=\"${configure.cflags} ${configure.universal_cflags}\"
      } else {
      build.post_args PREFIX=${prefix} CDEBUGFLAGS=\"${configure.cflags}\"
      }
      }
      use_parallel_build yes

      pre-destroot {
      destroot.target install install.man
      destroot.post_args-append "PREFIX=${prefix} BINDIR=${prefix}/bin LIBDIR=${prefix}/lib CONFDIR=${prefix}/etc MANSOURCEPATH=${prefix}/share/man/man DOCDIR=${prefix}/share/doc/${name} XAPPLOADDIR=${prefix}/lib/X11/app-defaults"
      }

      post-destroot {
      delete ${destroot}${prefix}/lib/app-defaults

      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
      xinstall -m 644 -W ${worksrcpath} NEWS README ${destroot}${prefix}/share/doc/${name}
      eval xinstall -m 644 [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}/doc
      }

      Variant: universal {}

      Variant: canna description {Use canna as Japanese conversion engine} {
      depends_lib-append port:canna
      }

      livecheck.type none

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/kinput2
      % sudo port install kinput2
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching kinput2
      ---> Verifying checksum for kinput2
      ---> Extracting kinput2
      ---> Configuring kinput2
      ---> Building kinput2 with target all
      ---> Staging kinput2 into destroot
      ---> Installing kinput2
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using kinput2 with these commands:
      %  man kinput2
      % apropos kinput2
      % which kinput2
      % locate kinput2

     Where to find more information:

    Darwin Ports



    Lightbox this page.