kxterm version 5.0pl3 for Mac OS X 10.5 Leopard
Monday the 12th of May, 2008

    kxterm  most recent diff


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



      # $Id: Portfile 32945 2008-01-15 12:01:19Z ryandesign macports.org $

      PortSystem 1.0
      Name: kxterm
      Version: 5.0pl3
      Category: x11 chinese
      Maintainers: nomaintainer
      Description: Chinese-capable xterm with dictionary-lookup capability
      Long Description: kxterm is an extension of cxterm, where cxterm is a terminal emulator for X11, just like xterm, but with the capability of displaying and inputting Chinese. kxterms enhancement is that, while reading Chinese text, each time you see a character you do not know, click on it with the left mouse button. Pronunciations in Cantonese (Sidney Lau system), then Mandarin (standard pinyin), as well as an approximate English translation, for the character will then appear at the bottom of the kxterm screen. If this character, along with neighboring characters, forms a character-compound found in Compound.b5, this compound will be displayed as well.

      Platform: darwin

      Homepage: http://heather.cs.ucdavis.edu/~matloff/Chinese/KX/Index.html
      master_sites http://heather.cs.ucdavis.edu/~matloff/Chinese/KX/Packages/
      distname KXTerm

      worksrcdir cxterm-5.0

      checksums md5 ece6a83c1fe1c3451e3667f51c77b2ec

      depends_build bin:xmkmf:XFree86

      patchfiles patch-cxterm_misc.c.diff patch-CXterm.ad.diff

      configure {
      system "cd ${worksrcpath} && xmkmf"
      }

      build.target -f Makefile.ini World

      destroot.args DOCHTMLDIR="${prefix}/share/doc/${name}" MANPATH="${prefix}/share/man" DICTDIR="${prefix}/share/${name}" FONTINSTDIR="${prefix}/share/${name}/fonts" INSTALLFLAGS="-c" INSTUIDFLAGS=""

      post-destroot {
      # Move executables to proper MP location
      xinstall -m 755 -d ${destroot}${prefix}/bin
      eval file rename [glob ${destroot}/usr/X11R6/bin/*] ${destroot}${prefix}/bin
      # Docs
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath} README.kxterm ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath}/cxterm SampleText.b5 SampleText.gb ${destroot}${prefix}/share/doc/${name}
      eval file copy [glob ${worksrcpath}/Doc/*] ${destroot}${prefix}/share/doc/${name}
      # Fix doc file and dir perms
      system "find ${destroot}${prefix}/share/doc/${name} -type f -print0 | xargs -0 chmod +r"
      system "find ${destroot}${prefix}/share/doc/${name} -type d -print0 | xargs -0 chmod +rx"
      # MP-specific readme
      xinstall -m 644 -W ${filespath} MacPorts_ReadMe.txt ${destroot}${prefix}/share/doc/${name}
      reinplace "s| PREFIX |${prefix}|g" ${destroot}${prefix}/share/doc/${name}/MacPorts_ReadMe.txt
      reinplace "s| NAME |${name}|g" ${destroot}${prefix}/share/doc/${name}/MacPorts_ReadMe.txt

      # X resource file
      xinstall -m 644 -W ${worksrcpath} CXterm.ad ${destroot}${prefix}/share/${name}
      reinplace "s|cxterm-5.0/dict|${prefix}/share/${name}|g" ${destroot}${prefix}/share/${name}/CXterm.ad

      # Files not installed via make
      xinstall -m 644 -W ${worksrcpath}/cxterm CanMan.b5 Compound.b5 ${destroot}${prefix}/share/${name}/big5
      xinstall -m 644 -W ${worksrcpath}/cxterm CanMan.gb Compound.gb ${destroot}${prefix}/share/${name}/gb

      # Convenience link for big5 usage
      system "ln -s ${prefix}/bin/cxterm ${destroot}${prefix}/bin/cxtermb5"

      # Wrapper script (install as CXterm.sh since CXterm would interfere
      # with cxterm on certain filesystems
      xinstall -m 755 -W ${filespath} CXterm.sh.head ${destroot}${prefix}/bin/CXterm.sh
      reinplace "s| PREFIX |${prefix}|g" ${destroot}${prefix}/bin/CXterm.sh
      system "cat ${worksrcpath}/scripts/CXterm.sh >> ${destroot}${prefix}/bin/CXterm.sh"
      }

      post-install {
      ui_msg "Three lines need to be added to your .xinitrc file (and to others"
      ui_msg "who wish to use kxterm):"
      ui_msg ""
      ui_msg "xrdb -merge ${prefix}/share/${name}/CXterm.ad"
      ui_msg "xset fp+ ${prefix}/share/${name}/fonts"
      ui_msg "xset fp rehash"
      ui_msg ""
      ui_msg "Be sure to have a look at "
      ui_msg "${prefix}/share/doc/${name}/README if the basic configuration"
      ui_msg "as set by the MacPorts install does not do enough for you"
      ui_msg "(cxterm and cxtermb5 are both installed, for GB and Big5 use,"
      ui_msg "respectively)."
      ui_msg "${prefix}/share/doc/${name}/MacPorts_ReadMe.txt also"
      ui_msg "contains this information."
      }

      platform darwin {
      patchfiles-append patch-cxterm_Imakefile.diff
      }


    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/kxterm
      % sudo port install kxterm
      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 kxterm
      ---> Verifying checksum for kxterm
      ---> Extracting kxterm
      ---> Configuring kxterm
      ---> Building kxterm with target all
      ---> Staging kxterm into destroot
      ---> Installing kxterm
    - 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 kxterm with these commands:
      %  man kxterm
      % apropos kxterm
      % which kxterm
      % locate kxterm

     Where to find more information:

    Darwin Ports



    image test