Commit b8ea060a authored by Johan Dahlin's avatar Johan Dahlin

Initial revision

parent 93456d1d
ABOUT-NLS
config.guess
config.sub
ltconfig
ltmain.sh
aclocal.m4
config.h.in
stamp-h.in
Makefile
Makefile.in
configure
config.log
config.h
config.cache
libtool
config.status
stamp-h
xml-i18n-extract
xml-i18n-merge
xml-i18n-update
xml-i18n-merge.in
devhelp.desktop
devhelp.spec
intl
Johan Dahlin <zilch.am@home.se>
Mikael Hallendal <micke@codefactory.se>
Richard Hult <rhult@codefactory.se>
This diff is collapsed.
This diff is collapsed.
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.
SUBDIRS = intl po src ui
schemadir = $(sysconfdir)/gconf/schemas
schema_DATA = devhelp.schemas
EXTRA_DIST = \
TODO \
devhelp.desktop.in \
devhelp.spec \
devhelp.spec.in \
$(schema_DATA) \
xml-i18n-merge.in \
xml-i18n-update.in \
xml-i18n-extract.in \
misc/devhelp.el \
misc/html2funcs.py \
misc/html2xml.py \
idl/GNOME_Devhelp.idl
Develdir = $(datadir)/gnome/apps/Development
Devel_in_files = devhelp.desktop.in
Devel_DATA = $(Devel_in_files:.desktop.in=.desktop)
@XML_I18N_MERGE_DESKTOP_RULE@
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_CONFIG_SOURCE) gconftool --shutdown
GCONF_CONFIG_SOURCE=$(GCONF_CONFIG_SOURCE) gconftool --makefile-install-rule $(top_srcdir)/$(schema_DATA)
0.1.0: Initial release.
README for DevHelp.
====================
0: Table of contents
====================
1: Build & Installation
2: Books
3: Authors
========================
1: Build & Installations
========================
The following packages are required to compile DevHelp:
Name Version (at least)
---- ------------------
GLib 1.2.9
GTK+ 1.2.9
LibXML 1.8.10
GnomeVFS 1.0.0
ORBit 0.5.7
Gnome-libs 1.2.8
GConf 0.12
GtkHTML 0.10.0
Gnome-print 0.29
You could probably use older version of the packages, but
it's untested.
If you want to live on the bleeding edge, here is how you
retrive the latest cvs:
$ export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome'
(or setenv for csh/tcsh users)
$ cvs -z3 co devhelp
Use autogen.sh to generate configure and use the configure script
to create Makefiles, if you pass the option --help you'll get
a list of supported paramters.
See the INSTALL file for futher instructions.
Now type:
make
followed by
make install
To start DevHelp just type:
devhelp
==========================
2: Books
==========================
So you want something to read?
Go to DevHelps homepage: http://people.codefactory.se/~micke/devhelp/
and you'll find a list of books.
Once you downloaded a book either a .devhelp (sometimes called spec) or a
.tar.gz (full book).
Start up DevHelp and choose File -> Add book.
Tada.
The book should pop up in the book list.
==========================
3: Authors
==========================
Johan Dahlin <zilch.am@home.se>
Richard Hult <rhult@codefactory.se>
Mikael Hallendal <micke@codefactory.se>
The project was initially written by me (Johan Dahlin) in python
and then ported to C.
Later Mikael Hallendal and Richard Hult of Codefactory fame joined.
Thanks goes to Marcus Leyman for the icon.
If you have any questrions feel free to join #DevHelp on irc.gnome.org
and we will glady help you.
Add menus for toolbar buttons (Back, Forward) like galeon.
Man & Info support (gnome-man2html2 & gnome-info2html2).
Look at scrollkeeper.
More books (glib2, gtk2, pango).
More info in books, author, version, language, category etc.
Search in documents
Index
Cache httpdata
#undef ENABLE_NLS
#undef HAVE_CATGETS
#undef HAVE_GETTEXT
#undef HAVE_LC_MESSAGES
#undef HAVE_STPCPY
#undef PREFIX
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
PROJECT=devhelp
TEST_TYPE=-f
FILE=src/Makefile.am
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile $PROJECT."
echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile $PROJECT."
echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
(xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have xml-i18n-tools installed to compile $PROJECT."
}
if test "$DIE" -eq 1; then
exit 1
fi
test $TEST_TYPE $FILE || {
echo "You must run this script in the top-level $PROJECT directory"
exit 1
}
if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
case $CC in
*lcc | *lcc\ *) am_opt=--include-deps;;
esac
echo "Running gettextize... Ignore non-fatal messages."
# Hmm, we specify --force here, since otherwise things don't
# get added reliably, but we don't want to overwrite intl
# while making dist.
echo "no" | gettextize --copy --force
echo "Running xml-i18n-toolize"
xml-i18n-toolize --copy --force --automake
echo "Running libtoolize"
libtoolize --copy --force
if test -z "$GNOME_INTERFACE_VERSION"; then
ACLOCAL_FLAGS="-I hack-macros $ACLOCAL_FLAGS"
fi
aclocal $ACLOCAL_FLAGS
# optionally feature autoheader
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
automake -a $am_opt
autoconf
cd $ORIGDIR
if [ "`whoami`" = "sopwith" ]; then
SOPWITH_FLAGS_HACK="--enable-fatal-warnings=no --enable-more-warnings=no"
fi
$srcdir/configure --enable-maintainer-mode "$@" $SOPWITH_FLAGS_HACK
echo
echo "Now type 'make' to compile $PROJECT."
AC_INIT(src/Makefile.am)
BONOBO_REQUIRED=1.0.0
GCONF_REQUIRED=0.12
GLIB_REQUIRED=1.2.9
GNOME_REQUIRED=1.2.8
GNOME_LIBS_REQUIRED=1.2.8
GNOME_VFS_REQUIRED=1.0.0
GNOME_PRINT_REQUIRED=0.29
GTK_REQUIRED=1.2.9
GTKHTML_REQUIRED=0.10.0
LIBXML_REQUIRED=1.8.10
ORBIT_REQUIRED=0.5.7
AC_SUBST(GNOME_VFS_REQUIRED)
AC_SUBST(LIBXML_REQUIRED)
AC_SUBST(ORBIT_REQUIRED)
dnl VERSION_CANON(version)
dnl 1
AC_DEFUN(VERSION_CANON, [`
dnl Assumes that there are no more than 999 revisions at a level,
dnl no more than three levels of revision.
dnl
dnl Any more than that, and test starts messing up the numeric
dnl comparisons because its integers overflow, and there's no
dnl way to do string comparisons in the shell. Grr.
dnl
dnl Must come up with some way to fix this.
echo "$1" |
tr . '\012' |
sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' |
tr -d '\012' |
sed 's/$/000000000/
s/^\(.........\).*/\1/'
`])
dnl VERSION_INSIST(package, get-version-cmd, operator, want-version-var)
dnl 1 2 3 4
AC_DEFUN(VERSION_INSIST, [
want_version=[$]$4
case "$3" in
">") g_operator=-gt ;;
">=") g_operator=-ge ;;
"<") g_operator=-lt ;;
"<=") g_operator=-le ;;
"=") g_operator=-eq ;;
"!=") g_operator=-ne ;;
*) AC_ERROR(Unknown operator $3 in configure script) ;;
esac
AC_MSG_CHECKING(for $1 $3 [$want_version])
if installed_version="`$2`"
then
AC_MSG_RESULT([$installed_version])
else
AC_ERROR($2 failed)
fi
if test "VERSION_CANON([$installed_version])" "$g_operator" \
"VERSION_CANON([$want_version])"
then
:
AC_SUBST($4)
else
AC_ERROR($1 version [$want_version] is required.)
fi
])
AM_INIT_AUTOMAKE(devhelp, 0.1.0)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_PROG_XML_I18N_TOOLS
AM_SANITY_CHECK
AC_PROG_CC
AC_PROG_CPP
AC_ISC_POSIX
AC_HEADER_STDC
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
#AM_ACLOCAL_INCLUDE(macros)
dnl ** GLIB **
dnl
AM_PATH_GLIB($GLIB_REQUIRED,,
AC_MSG_ERROR([
*** GLIB $GLIB_REQUIRED or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.]))
dnl ** GTK **
dnl
AM_PATH_GTK($GTK_REQUIRED,,
AC_MSG_ERROR([
*** Gtk+ $GTK_REQUIRED or better is required. The latest version of GTK
*** is always available from ftp://ftp.gtk.org/.]))
AC_SUBST(GTK_REQUIRED)
dnl ** GNOME **
dnl
AM_PATH_GNOME($GNOME_REQUIRED,,AC_MSG_ERROR([*** GNOME $GNOME_REQUIRED or better is required.]), gtkhtml xml vfs bonobo print)
AC_SUBST(GNOME_REQUIRED)
AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
if test x$GNOME_CONFIG = xno; then
AC_MSG_ERROR(Couldn't find gnome-config. Please install the GNOME package)
fi
VERSION_INSIST(gnome-libs, $GNOME_CONFIG --version | awk '{print $2}', >=, GNOME_LIBS_REQUIRED)
VERSION_INSIST(xml, $GNOME_CONFIG --modversion xml | awk -F- '{print $2}', >=, LIBXML_REQUIRED)
VERSION_INSIST(gtkhtml, $GNOME_CONFIG --modversion gtkhtml | awk -F- '{print $2}', >=, GTKHTML_REQUIRED)
VERSION_INSIST(bonobo, $GNOME_CONFIG --modversion bonobo | awk -F- '{print $2}', >=, BONOBO_REQUIRED)
VERSION_INSIST(print, $GNOME_CONFIG --modversion bonobo | awk -F- '{print $2}', >=, GNOME_PRINT_REQUIRED)
AC_SUBST(VFS_CFLAGS)
AC_SUBST(VFS_LIBS)
AC_SUBST(BONOBO_CFLAGS)
AC_SUBST(BONOBO_LIBS)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)
AC_SUBST(GTKHTML_CFLAGS)
AC_SUBST(GTKHTML_LIBS)
AM_PATH_ORBIT($ORBIT_REQUIRED,,AC_MSG_ERROR([ORBit $ORBIT_REQUIRED+ not installed or installation problem]))
IDL_FLAGS=`gnome-config --cflags idl`
AC_SUBST(IDL_FLAGS)
dnl GCONF
dnl
AM_PATH_GCONF(0.12,,,gconf-gtk)
GCONF_CONFIG_SOURCE=
AC_ARG_ENABLE(gconf-source,
[ --enable-gconf-source=sourceaddress Where to install schema files.],GCONF_CONFIG_SOURCE=$enable_gconf_source,)
# find the actual value for $prefix that we'll end up with
REAL_PREFIX=
if test "x$prefix" = "xNONE"; then
REAL_PREFIX=$ac_default_prefix
else
REAL_PREFIX=$prefix
fi
SYSCONFDIR_TMP="$sysconfdir"
old_prefix=$prefix
prefix=$REAL_PREFIX
EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
prefix=$old_prefix
AC_SUBST(EXPANDED_SYSCONFDIR)
if test "x$GCONF_CONFIG_SOURCE" = "x"; then
GCONF_CONFIG_SOURCE="xml::$EXPANDED_SYSCONFDIR/gconf/gconf.xml.defaults"
AC_MSG_RESULT("Using default config source $GCONF_CONFIG_SOURCE for schema installation")
else
AC_MSG_RESULT("Using config source $GCONF_CONFIG_SOURCE for schema installation")
fi
AC_SUBST(GCONF_CONFIG_SOURCE)
ALL_LINGUAS="sv"
AM_GNU_GETTEXT
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
PREFIX=$prefix
AC_SUBST(PREFIX)
AC_OUTPUT([
Makefile
devhelp.spec
intl/Makefile
po/Makefile.in
src/Makefile
ui/Makefile
])
[Desktop Entry]
_Name=Devhelp
_Comment=Developers Help program
Exec=devhelp
Terminal=0
Type=Application
Icon=devhelp.png
<gconfschemafile>
<schemalist>
<schema>
<key>/schemas/apps/devhelp/sidebar_visible</key>
<applyto>/apps/devhelp/sidebar_visible</applyto>
<owner>devhelp</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
<short>Sidebar visible</short>
</locale>
</schema>
<schema>
<key>/schemas/apps/devhelp/zoom_level</key>
<applyto>/apps/devhelp/zoom_level</applyto>
<owner>devhelp</owner>
<type>int</type>
<default>2</default>
<locale name="C">
<short>Zoom level</short>
</locale>
</schema>
<schema>
<key>/schemas/apps/devhelp/autocompletion</key>
<applyto>/apps/devhelp/autocompletion</applyto>
<owner>devhelp</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
<short>Auto completion</short>
</locale>
</schema>
</schemalist>
</gconfschemafile>
# Note that this is NOT a relocatable package
%define ver @VERSION@
%define rel 1
%define prefix /usr
Summary: Devhelp
Name: devhelp
Version: %ver
Release: %rel
Copyright: GPL
Group: Applications/Development
Source: devhelp-%{PACKAGE_VERSION}.tar.gz
BuildRoot: /tmp/devhelp-%{PACKAGE_VERSION}-root
Packager: Johan Dahlin <zilch.am@home.se>
Autoreq: 0
BuildRequires: gettext >= 0.10.35
Requires: glib >= 1.2.8
Requires: gtk+ >= 1.2.8
Requires: gnome-libs >= 1.2.0
Requires: gnome-vfs >= 1.0.0
Requires: gdk-pixbuf >= 0.11.0
Requires: libxml >= 1.8.11
Requires: libglade >= 0.16
Requires: gtkhtml >= 0.6
Requires: oaf >= 0.6.2
Requires: bonobo >= 0.37
Requires: GConf >= 0.12
%description
A developers help program
%prep
%setup
%build
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} \
--without-debug
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \
--without-debug
fi
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README INSTALL
%{prefix}/bin/*