gWaei README 
*******************************
Welcome to the README file.  This file is GPL licensed. If you plan on
redistributing this software you should read the COPYING file. For more help
than is written here, go to the projects webpage at
http://gwaei.sourceforge.net/



TABLE OF CONTENTS

  1.0 PREREQUISITES
  2.0 CONFIGURATION AND INSTALLATION
  3.0 MAKING A DEB PACKAGE
  4.0 MAKING AN RPM PACKAGE
  5.0 COMPILING ON WINDOWS
  6.0 MESSAGE TO PACKAGERS



1.0 PREREQUISITES:

  To run gWaei 1.5.x, an environment with at least gtk+-2.22/glib-2.25.0,
  curl 7.19.6, gnome-doc-utils-0.14.0, libncurses5-5.7, and libsexy-0.1.11
  are required.  Additionally, you will want to have gunzip, and unzip.
  Most of these are satisfied with a default install of Gnome 2.31 or newer
  which should come with Ubuntu 10.10 and Fedora 14. If you want to be able to
  see kanji stroke orders in the program, it is recommended you install
  ttf-kanjistrokeorders along with gWaei.

  An example of a command that Ubuntu/Debian users might use to get the
  required runtime dependancies is:

  sudo apt-get install libcurl3 libgtk2.0-0 libsexy2  ttf-kanjistrokeorders \
  gnome-doc-utils libncurses5

  To compile the program, you will have to have the dev files for GTK+, CURL3,
  NCURSES and LIBSEXY and available. Users with binary based distributions
  should install the approprate "dev" or "devel" files for the above dependencies
  using their package manager. Automake and GCC will come in handy too, as they
  are standard build tools for GNU systems.

  An example of a command that Ubuntu/Debian users might use to get the
  required compilation dependancies is:

  sudo apt-get install libcurl4-gnutls-dev libgtk2.0-dev libsexy-dev\
 build-essential gnome-doc-utils libunique-dev libncurses5-dev
  libncursesw5-dev gcc autoconf automake

  For inputing Japanese queries, installing some software for Japanese
  conversion is highly recommended.  Currently, the three main linux methods are
  UIM or SCIM using the ANTHY engine or iBus.  For emergency situations where users
  can't install either, gWaei has internal support for converting romanji
  searches to hiragana/katakana automatically.  (This conversion is disabled
  for Japanese locals by default in the preferences.)



2.0 CONFIGURATION AND INSTALLATION:

  When configuring, the most important variable for this program is the  
  prefix.  Most users will install using steps similar to below.

  2.2 CREATION OF MISSING FILES FOR A FRESH DOWNLOAD FROM THE GIT REPO
    $ ./autogen.sh

  2.3 BUILDING AND INSTALLING FROM THE SOURCE CODE:
    $ ./configure --prefix /usr 
    $ make
    $ sudo make install

  2.3 UNINSTALL:
    $ sudo make uninstall



3.0 MAKING A DEB PACKAGE:

  Debian packages of gWaei are coming to most distros through Debian.  To build
  from the sources on the gWaei site, make sure you have dkpg and fakeroot installed in
  addition to the standard build tools detailed above.  You may need to then run
    sudo apt-get install quilt

  ./autogen.sh.  You then run:
    $ ./configure
    $ make deb

  to get your debian package.



4.0 MAKING AN RPM PACKAGE:

  You will need to have the rpmbuilder executable available before proceeding.
  On some architectures it is included with the rpm package itself.  On others
  you will need to install the rpm-build package.
  
  You will need to configure the installer with any needed options using "./configure".
  It will do the work of setting up the spec file correctly for you.  Then run
  "make rpm" to actually build the rpm for your architecture. The newly created
  rpm will appear at the base of the gwaei folder.  You may need to run ./autogen.sh
  to make sure some missing files are generated if you got gWaei from the git
  repositories.

  Most users will get their rpm by doing something similar to this:
    $ ./configure --prefix /usr 
    $ make rpm

  If you are lazy, you can also use a shortcut for Fedora:
    $ ./configure
    $ make fedora-rpm



5.0 COMPILING ON WINDOWS:

  gWaei has been tested and built on windows with some success through MinGW.
  Since I do not have a Windows PC of my own handy, I only get to test and
  maintain builds sporadically.  Your success will largely depend on how well
  you have your MinGW environment set up.

  Gotchas in MinGW are in setting up pkgconfig, and the paths in the gnome dependencies.
  They are located in /uslr/lib/pkgconfig.  You will likely have to manually compile and install
  libcurl.  Most other dependancies should be available on the gtk website and on the sourceforge
  page for MinGW.  Make sure you also grab gnuregex while you are there.

  The setup and installation of gWaei will look like so:

    PKG_CONFIG_PATH="/the/path/to/pkgconfig" ./configure --prefix /usr/local --enable-win32
    make
    make install

  That's it.  If someone wants to help sort out the final issues with getting
  the program running on Windows, please feel free to get in contact with
  one of the developers on the gWaei homepage.  There are still various polish issues
  that should be worked out before it is fully fledged like the other ports.



6.0 MESSAGE TO PACKAGERS

  The requirements of gWaei have changed a bit from previous versions.  No more GConf anymore. The Sandbox issues
  should be fixed, but please contact me if you have problems.



END

