[Debian-hebrew-package] r726 - in /pkg/libhdate/branches/upstream/current: ./ bindings/ bindings/pascal/ bindings/perl/ bindings/php/ bindings/python/ bindings/ruby/ docs/ docs/man/ docs/man/man1/ docs/man/man3/ examples/ examples/bindings/ examples/bindings/pascal/ examples/hcal/ po/ src/

kzamir-guest at users.alioth.debian.org kzamir-guest at users.alioth.debian.org
Thu Jan 31 19:30:26 UTC 2008


Author: kzamir-guest
Date: Thu Jan 31 19:30:24 2008
New Revision: 726

URL: http://svn.debian.org/wsvn/debian-hebrew/?sc=1&rev=726
Log:
[svn-upgrade] Integrating new upstream version, libhdate (1.4.11)

Added:
    pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp
    pkg/libhdate/branches/upstream/current/bindings/php/
    pkg/libhdate/branches/upstream/current/bindings/php/Makefile.am
    pkg/libhdate/branches/upstream/current/bindings/php/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/php/hdate.i
    pkg/libhdate/branches/upstream/current/bindings/php/hdate.ini
    pkg/libhdate/branches/upstream/current/bindings/ruby/
    pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.am
    pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/ruby/hdate.i
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.am
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.in
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_class.pp
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_obj.pp
    pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_pascal.pp
Removed:
    pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_class.pp
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_pascal.pp
Modified:
    pkg/libhdate/branches/upstream/current/ChangeLog
    pkg/libhdate/branches/upstream/current/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/Makefile.am
    pkg/libhdate/branches/upstream/current/bindings/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.am
    pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/pascal/Package.fpc
    pkg/libhdate/branches/upstream/current/bindings/pascal/changelog
    pkg/libhdate/branches/upstream/current/bindings/pascal/fpc_README
    pkg/libhdate/branches/upstream/current/bindings/pascal/hdate.pp
    pkg/libhdate/branches/upstream/current/bindings/perl/Makefile.in
    pkg/libhdate/branches/upstream/current/bindings/python/Makefile.in
    pkg/libhdate/branches/upstream/current/configure
    pkg/libhdate/branches/upstream/current/configure.in
    pkg/libhdate/branches/upstream/current/docs/Makefile.in
    pkg/libhdate/branches/upstream/current/docs/man/Makefile.in
    pkg/libhdate/branches/upstream/current/docs/man/man1/Makefile.in
    pkg/libhdate/branches/upstream/current/docs/man/man3/Makefile.in
    pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.3
    pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.h.3
    pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_Hdate.3
    pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_struct.3
    pkg/libhdate/branches/upstream/current/docs/man/man3/hdatepp.h.3
    pkg/libhdate/branches/upstream/current/examples/Makefile.in
    pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.am
    pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.in
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_cpp.cpp
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_perl.pl
    pkg/libhdate/branches/upstream/current/examples/bindings/hdate_python.py
    pkg/libhdate/branches/upstream/current/examples/hcal/Makefile.in
    pkg/libhdate/branches/upstream/current/examples/hcal/hcal.c
    pkg/libhdate/branches/upstream/current/examples/hcal/hdate.c
    pkg/libhdate/branches/upstream/current/po/es_MX.gmo
    pkg/libhdate/branches/upstream/current/po/es_MX.po
    pkg/libhdate/branches/upstream/current/po/fr.gmo
    pkg/libhdate/branches/upstream/current/po/fr.po
    pkg/libhdate/branches/upstream/current/po/he.gmo
    pkg/libhdate/branches/upstream/current/po/he.po
    pkg/libhdate/branches/upstream/current/po/libhdate.pot
    pkg/libhdate/branches/upstream/current/po/ru.gmo
    pkg/libhdate/branches/upstream/current/po/ru.po
    pkg/libhdate/branches/upstream/current/po/sv.gmo
    pkg/libhdate/branches/upstream/current/po/sv.po
    pkg/libhdate/branches/upstream/current/src/Makefile.in
    pkg/libhdate/branches/upstream/current/src/hdate.h
    pkg/libhdate/branches/upstream/current/src/hdate_sun_time.c
    pkg/libhdate/branches/upstream/current/src/hdatepp.h

Modified: pkg/libhdate/branches/upstream/current/ChangeLog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/ChangeLog?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/ChangeLog (original)
+++ pkg/libhdate/branches/upstream/current/ChangeLog Thu Jan 31 19:30:24 2008
@@ -1,3 +1,17 @@
+libhdate (1.4.11)
+
+  * Add Ruby bindings
+  * Add PHP bindings
+  * Add GPL notice to the example files (Bug report: Baruch Even)
+  * Add a patch to print todays date in hcal in bold (Patch: Patrik Nilsson)
+  * Fix documentation of files and structs (Bug report: Baruch Even)
+  * Update Swedish translation (Thanks: Patrik Nilsson)
+  * Fix hdate_get_utc_sun_time_deg 
+      function only work in low altitudes (Bug report: Ido Kanner)
+  * Update pascal bindings and examples (Patch: Ido Kanner)
+
+  -- Yaacov Zamir <kzamir at wall.co.il>  Saturday, 5 Jan 2008 22:00
+  
 libhdate (1.4.10)
 
   * Move to GPL3 (COPYING, AUTHORS)
@@ -16,7 +30,6 @@
       - 30 shvat : Family day
       - 12 heshvan : rabin memorial day
       - 29 tamuz : zhabotinsky day
-      
   * Changes to hdate command line utility
       - flag -j print the Julian day number
       - if argument is greater than 100000 it is asumed as Julian day number

Modified: pkg/libhdate/branches/upstream/current/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/Makefile.in Thu Jan 31 19:30:24 2008
@@ -157,12 +157,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -176,8 +181,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -206,7 +215,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/bindings/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/Makefile.am?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/Makefile.am (original)
+++ pkg/libhdate/branches/upstream/current/bindings/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,1 +1,1 @@
-SUBDIRS = python perl pascal
+SUBDIRS = python perl pascal ruby php

Modified: pkg/libhdate/branches/upstream/current/bindings/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/bindings/Makefile.in Thu Jan 31 19:30:24 2008
@@ -129,12 +129,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -148,8 +153,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -178,7 +187,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@
@@ -204,7 +216,7 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
-SUBDIRS = python perl pascal
+SUBDIRS = python perl pascal ruby php
 all: all-recursive
 
 .SUFFIXES:

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.am?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.am (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,5 +1,5 @@
 
-EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
+EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.pp fpc_README changelog
 
 if WITH_PASCAL
 
@@ -7,20 +7,20 @@
 
 CLEANFILES = *.o *.ppu
 
-all-am: hdate.o hdate_class.o
+all-am: hdate.o hdate_dyn_pascal.o
 
 hdate.o: hdate.pp
 	fpc hdate.pp
 
-hdate_class.o: hdate_class.pp hdate.o
-	fpc hdate_class.pp
-
-install-data-local:hdate_class.o hdate.o Package.fpc
+hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
+	fpc hdate_dyn_pascal.pp
+	
+install-data-local:hdate_dyn_pascal.o hdate.o
 	$(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
 	$(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
-	$(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
+	$(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
 	$(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
-	$(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
+	$(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
 	$(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
 	$(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
 endif

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/Makefile.in Thu Jan 31 19:30:24 2008
@@ -120,12 +120,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -139,8 +144,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -169,7 +178,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@
@@ -195,7 +207,7 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
-EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
+EXTRA_DIST = Package.fpc hdate.pp hdate_dyn_pascal.pp fpc_README changelog
 @WITH_PASCAL_TRUE at DEPS = $(top_builddir)/src/libhdate.la
 @WITH_PASCAL_TRUE at CLEANFILES = *.o *.ppu
 all: all-am
@@ -361,20 +373,20 @@
 	uninstall uninstall-am uninstall-info-am
 
 
- at WITH_PASCAL_TRUE@all-am: hdate.o hdate_class.o
+ at WITH_PASCAL_TRUE@all-am: hdate.o hdate_dyn_pascal.o
 
 @WITH_PASCAL_TRUE at hdate.o: hdate.pp
 @WITH_PASCAL_TRUE@	fpc hdate.pp
 
- at WITH_PASCAL_TRUE@hdate_class.o: hdate_class.pp hdate.o
- at WITH_PASCAL_TRUE@	fpc hdate_class.pp
-
- at WITH_PASCAL_TRUE@install-data-local:hdate_class.o hdate.o Package.fpc
+ at WITH_PASCAL_TRUE@hdate_dyn_pascal.o: hdate_dyn_pascal.pp hdate.o
+ at WITH_PASCAL_TRUE@	fpc hdate_dyn_pascal.pp
+
+ at WITH_PASCAL_TRUE@install-data-local:hdate_dyn_pascal.o hdate.o
 @WITH_PASCAL_TRUE@	$(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
 @WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
- at WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
+ at WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate_dyn_pascal.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.o
 @WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
- at WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
+ at WITH_PASCAL_TRUE@	$(INSTALL_DATA) hdate_dyn_pascal.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_dyn_pascal.ppu
 @WITH_PASCAL_TRUE@	$(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
 @WITH_PASCAL_TRUE@	$(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
 # Tell versions [3.59,3.63) of GNU make to not export all variables.

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/Package.fpc
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/Package.fpc?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/Package.fpc (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/Package.fpc Thu Jan 31 19:30:24 2008
@@ -1,6 +1,6 @@
 [package]
 name=hdate
-version=1.0.0
+version=1.4.11
 [require]
 libc=y
 packages_linux_m68k=

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/changelog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/changelog?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/changelog (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/changelog Thu Jan 31 19:30:24 2008
@@ -1,16 +1,30 @@
-25/11/2005 
-  - Added some constants and fixed comments according the orginal API file
+25/01/2008
+   - Moved the class implementation to examples/binding
+   - Added better support for FPDoc
+   - Changed the demo for the class usage
+
+11-12/01/2008
+   - Added support for newer API functions added at 1.3
+   - Added support for dynamic loading for the API.
+   - Added dynamic loading capabilities to the examples.
+   - Moved to GPL 3
+
+25/11/2005
+   - Added some constants and fixed comments according the orginal API file
+
+25/11/2005
+   - Added some constants and fixed comments according the orginal API file
 
 27/05/2005
-	- Created a Changelog.
+   - Created a Changelog.
 
 19-21/05/2005
-	- hdate_class.pp was created.
-	- Made changes for Free Pascal 2 support on with the units.
+   - hdate_class.pp was created.
+   - Made changes for Free Pascal 2 support on with the units.
 
 13/03/2005
-	- Bug fix in hdate.pp - Added {$PACKRECORDS C}
+   - Bug fix in hdate.pp - Added {$PACKRECORDS C}
 
 10-11/03/2005 
-	- hdate.pp was created.
-	- hdate_obj.pp was created.
+   - hdate.pp was created.
+   - hdate_obj.pp was created.

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/fpc_README
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/fpc_README?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/fpc_README (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/fpc_README Thu Jan 31 19:30:24 2008
@@ -5,18 +5,23 @@
 It is using the source code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
 The Torah reading sequence is from tables by Zvi Har'El.
 
-The LibHdate is GPL library written by Kobi Zamir <kobi_zamir at yahoo.com> and can be found at http://libhdate.sourceforge.net/ .
+The LibHdate is GPL library written by Kobi Zamir <kzamir at walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
 
-The current version of LibHDate is  1.2.1 and contains a Free Pascal binding only that was written by Ido Kanner <idokan at gmail.com>.
+The current version of LibHDate is  1.4.10 and contains a Free Pascal binding only that was written by Ido Kanner <idokan at gmail.com>.
 
 Existed Files:
-  README                 - This file.
-	licence                - A copy of the GPL license.
-	src/ctypes.pp          - A unit for making C like integer and floating points variable type.
-  src/hdate.pp           - The main low level API of LibHdate binding.
-	src/hdate_obj.pp       - An Object Oriented implementation for the hdate.pp API.
-	src/hdate_obj_demo.pp  - An example for the use of the Object Oriented unit.
-	src/hdate_class.pp     - A self made Object Oriented implementation for the LibHdate API.
+  /bindings/pascal/fpc_README  - This file.
+  
+  COPYING                      - A copy of the GPL license.
+  
+  examples/bindings/pascal/hdate_obj.pp        - An Object Oriented implementation for the hdate.pp API.
+  examples/bindings/pascal/hdate_obj_demo.pp   - An example for the use of the Object Oriented unit.
+  examples/bindings/pascal/hdate_class.pp      - A self made Object Oriented implementation for the LibHdate API.
+  
+  bindings/pascal/
+  bindings/pascal/hdate.pp                 - The main low level API of LibHdate binding.
+  bindings/pascal/hdate_dyn_pascal.pp      - A dynamic linking library.
+  
 
 Compiling
 =========
@@ -24,8 +29,9 @@
 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent. 
 The FPC version 2.0 have the floating points definition. If you are using FPC version 2.0 or above please remove the unit.
 
-Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use 
-the units globally with all of your applications.
+Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use the units globally with all of your applications.
+
+It is recommanded to use FPC 2.2.0 or above for the newer version of this library.
 
 =========================================================================
 the old README from version 1.1.1

Modified: pkg/libhdate/branches/upstream/current/bindings/pascal/hdate.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/hdate.pp?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/hdate.pp (original)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/hdate.pp Thu Jan 31 19:30:24 2008
@@ -1,6 +1,7 @@
 (*  libhdate
-   Copyright  2004-2005  Yaacov Zamir <kzamir at walla.co.il>
-	 Copyright  2005       Ido Kanner   <idokan at gmail.com>
+
+   Copyright (C) 1984-2003 Amos Shapir, 2004-2007  Yaacov Zamir <kzamir at walla.co.il>
+   Copyright (C) 2005-2008  Ido Kanner   <idokan at gmail.com>
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,11 +18,13 @@
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 	 
 History:
+     11/01/2008 - Added support for 1.3 API and cleaned the calling.
      25/11/2005 - Added some constants and fixed comments according the orginal API file
      13/03/2005 - Bug Fixed Added {$PACKRECORDS C}
-  10-11/03/2005 - Initial Translation of version 0.31.0
-*)
-{$MODE OBJFPC}{$PACKRECORDS C}
+     10-11/03/2005 - Initial Translation of version 0.31.0
+*)
+{$MODE FPC}{$PACKRECORDS C}
+{$LINKLIB hdate}
 
 unit hdate;
 
@@ -29,6 +32,7 @@
 uses cTypes;
 
 const
+  // the global name of the hdate library: <b>DEPERCATED</b>
   LIBHDATE_LIBRARY_NAME = 'hdate';
 
 (** @def HDATE_DIASPORA_FLAG
@@ -55,21 +59,35 @@
 { Base structore for hebrew dates }
 
 type
+  // A pointer to the Thdate_struct record
   Phdate_struct = ^Thdate_struct;
 	Thdate_struct = record
-                   hd_day          : cInt; //The number of day in the hebrew month (1..31).
-                   hd_mon          : cInt; //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
-                   hd_year         : cInt; //The number of the hebrew year.
-                   gd_day          : cInt; //The number of the day in the month. (1..31)
-                   gd_mon          : cInt; //The number of the month 1..12 (1 - jan).
-                   gd_year         : cInt; //The number of the year.
-                   hd_dw           : cInt; //The day of the week 1..7 (1 - sunday).
-                   hd_size_of_year : cInt; //The length of the year in days.
-                   hd_new_year_dw  : cInt; //The week day of Hebrew new year.
-                   hd_year_type    : cInt; //The number type of year.
-                   hd_jd           : cInt; //The Julian day number
-                   hd_days         : cInt; //The number of days passed since 1 tishrey
-                   hd_weeks        : cInt; //The number of weeks passed since 1 tishrey
+                   //The number of day in the hebrew month (1..31).
+                   hd_day          : cInt;
+                   //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
+                   hd_mon          : cInt;
+                   //The number of the hebrew year.
+                   hd_year         : cInt;
+                   //The number of the day in the month. (1..31)
+                   gd_day          : cInt;
+                   //The number of the month 1..12 (1 - jan).
+                   gd_mon          : cInt;
+                   //The number of the year.
+                   gd_year         : cInt;
+                   //The day of the week 1..7 (1 - sunday).
+                   hd_dw           : cInt;
+                   //The length of the year in days.
+                   hd_size_of_year : cInt;
+                   //The week day of Hebrew new year.
+                   hd_new_year_dw  : cInt;
+                   //The number type of year.
+                   hd_year_type    : cInt;
+                   //The Julian day number
+                   hd_jd           : cInt;
+                   //The number of days passed since 1 tishrey
+                   hd_days         : cInt;
+                   //The number of weeks passed since 1 tishrey
+                   hd_weeks        : cInt;
                   end;
 (********************************************************************************)
 (********************************************************************************)
@@ -83,9 +101,8 @@
  @param y Year in 4 digits e.g. 2001
  @return pointer to this hdate struct
  *)
- 
  function hdate_set_gdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
-    cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_gdate';
+    cdecl; external;
 
 (**
  @brief compute date structure from the Hebrew date
@@ -96,9 +113,8 @@
  @param y Year in 4 digits e.g. 5731
  @return pointer to this hdate struct
  *)
-
 function hdate_set_hdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
-    cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_hdate';
+    cdecl; external;
 
 (**
  @brief compute date structure from the Julian day
@@ -108,7 +124,7 @@
  @return pointer to this hdate struct
  *)
 function hdate_set_jd (h : Phdate_struct; jd : cInt) : Phdate_struct;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_jd';
+     cdecl; external;
      
 (*************************************************************)
 (*************************************************************)
@@ -125,7 +141,7 @@
  @return a static string of foramted date
 *)
 function hdate_get_format_date (h : Phdate_struct; diaspora, s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_format_date';
+     cdecl; external;
 
 (**
  @brief get the number of hebrew parasha.
@@ -136,7 +152,7 @@
    (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
 *)
 function hdate_get_parasha (h : Phdate_struct; diaspora : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha';
+     cdecl; external;
 
 (**
  @brief get the number of hebrew holyday.
@@ -146,7 +162,7 @@
  @return the number of holyday.
 *)
 function hdate_get_holyday (h : Phdate_struct; diaspora : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -159,7 +175,7 @@
  @attention ( 0 < n < 10000)
 *)
 function hdate_get_int_string (n : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_int_string';
+     cdecl; external;
 
 (**
  @brief get name of week day.
@@ -170,7 +186,7 @@
  @return a static string of the day of the week
 *)
 function hdate_get_day_string (day : cInt; s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_string';
+     cdecl; external;
 
 (**
  @brief name of month.
@@ -180,7 +196,7 @@
  @return a static string of month name
 *)
 function hdate_get_month_string (month : cInt; s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_month_string';
+     cdecl; external;
 
 (**
  @brief name of hebrew month.
@@ -191,7 +207,7 @@
  @return a static string of month name
 *)
 function hdate_get_hebrew_month_string (month : cInt; s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hebrew_month_string';
+     cdecl; external;
 
 (**
  @brief name of hebrew holyday.
@@ -201,7 +217,7 @@
  @return a static string of holyday name
 *)
 function hdate_get_holyday_string (holyday, s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_string';
+     cdecl; external;
 
 (**
  @brief name of parasha
@@ -212,7 +228,7 @@
  @return a static string of parasha name
 *)
 function hdate_get_parasha_string (parasha, s : cInt) : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha_string';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -224,7 +240,7 @@
  @return the number of holyday type.
 *)
 function hdate_get_holyday_type (holyday : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_type';
+     cdecl; external;
 
 (**
  @brief size of hebrew year in days.
@@ -233,7 +249,7 @@
  @return size of Hebrew year
 *)
 function hdate_get_size_of_hebrew_year (hebrew_year : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_hebrew_year';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -247,7 +263,7 @@
  @return Number of days since 3,1,3744
 *)
 function hdate_days_from_3744 (hebrew_year : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_days_from_3744';
+     cdecl; external;
 
 (**
  @brief Return Hebrew year type based on size and first week day of year.
@@ -257,7 +273,7 @@
  @return the number for year type (1..14)
 *)
 function hdate_get_year_type (size_of_year, new_year_dw : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_year_type';
+     cdecl; external;
 
 (**
  @brief Compute Julian day from Gregorian date
@@ -270,7 +286,7 @@
  @return the julian day number
  *)
  function hdate_gdate_to_jd (day, month, year : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_gdate_to_jd';
+     cdecl; external;
 
 (**
  @brief Compute Julian day from Hebrew day, month and year
@@ -285,7 +301,7 @@
  @return the julian day number
  *)
  function hdate_hdate_to_jd (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_hdate_to_jd';
+     cdecl; external;
  
 (**
  @brief Converting from the Julian day to the Gregorian date
@@ -298,7 +314,7 @@
  @param year return Year in 4 digits e.g. 2001
  *)
  procedure hdate_jd_to_gdate (jd : cInt; day, month, year : pcInt);
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_gdate';
+     cdecl; external;
 
 (**
  @brief Converting from the Julian day to the Hebrew day
@@ -313,7 +329,7 @@
  @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
  *)
 procedure hdate_jd_to_hdate (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year : pcInt);
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_hdate';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -327,7 +343,7 @@
  @return the days from 1 jan
 *)
 function hdate_get_day_of_year (day, month, year : cInt) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_year';
+     cdecl; external;
 
 (**
  @brief utc sunrise/set time for a gregorian date
@@ -343,7 +359,7 @@
  @param sunset return the utc sunset in minutes after midnight (00:00)
 *)
 procedure hdate_get_utc_sun_time (day, month, year : cInt; latitude, longitude : cDouble; sunrise, sunset : pcInt);
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_utc_sun_time';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -355,7 +371,7 @@
  @return the Gregorian day of the month, 1..31.
  *)
  function hdate_get_gday (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gday';
+     cdecl; external;
 
 (**
  @brief get the Gregorian month
@@ -364,7 +380,7 @@
  @return the Gregorian month, jan = 1.
  *)
 function hdate_get_gmonth (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gmonth';
+     cdecl; external;
 
 (**
  @brief get the Gregorian year
@@ -373,7 +389,7 @@
  @return the Gregorian year.
  *)
 function hdate_get_gyear (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gyear';
+     cdecl; external;
 
 (**
  @brief get the Hebrew day of the month
@@ -382,7 +398,7 @@
  @return the Hebrew day of the month, 1..30.
  *)
 function hdate_get_hday (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hday';
+     cdecl; external;
 
 (**
  @brief get the Hebrew month
@@ -391,7 +407,7 @@
  @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
  *)
 function hdate_get_hmonth (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hmonth';
+     cdecl; external;
 
 (**
  @brief get the Hebrew year
@@ -400,7 +416,7 @@
  @return the Hebrew year.
  *)
 function hdate_get_hyear (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hyear';
+     cdecl; external;
 
 (**
  @brief get the day of the week
@@ -409,7 +425,7 @@
  @return the the day of the week.
  *)
 function hdate_get_day_of_the_week (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_the_week';
+     cdecl; external;
 
 (**
  @brief get the size of the hebrew year
@@ -418,7 +434,7 @@
  @return the the size of the hebrew year.
  *)
 function hdate_get_size_of_year (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_year';
+     cdecl; external;
 
 (**
  @brief get the new year day of the week
@@ -427,7 +443,7 @@
  @return the the new year day of the week.
  *)
 function hdate_get_new_year_day_of_the_week (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_new_year_day_of_the_week';
+     cdecl; external;
 
 (**
  @brief get the Julian day number
@@ -436,7 +452,7 @@
  @return the Julian day number.
  *)
 function hdate_get_julian (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_julian';
+     cdecl; external;
 
 (**
  @brief get the number of days passed since 1 tishrey
@@ -445,7 +461,7 @@
  @return the number of days passed since 1 tishrey.
  *)
 function hdate_get_days (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_days';
+     cdecl; external;
 
 (**
  @brief get the number of weeks passed since 1 tishrey
@@ -454,7 +470,7 @@
  @return the number of weeks passed since 1 tishrey.
  *)
 function hdate_get_weeks (h : Phdate_struct) : cInt;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_weeks';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -465,7 +481,7 @@
  @return a new hdate object
  *)
 function new_hdate : Phdate_struct;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'new_hdate';
+     cdecl; external;
 
 (**
  @brief delete an hdate struct object.
@@ -473,7 +489,7 @@
  @param h pointer this hdate struct.
  *)
 function delete_hdate (h : Phdate_struct) : Phdate_struct;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'delete_hdate';
+     cdecl; external;
 
 (*************************************************************)
 (*************************************************************)
@@ -484,7 +500,7 @@
  @return a a static string, with the package name and version
 *)
 function hdate_get_version_string : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_version_string';
+     cdecl; external;
 
 (**
  @brief Return a static string, with the name of translator
@@ -492,7 +508,48 @@
  @return a a static string, with the name of translator
 *)
 function hdate_get_translator_string : PChar;
-     cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_translator_string';
+     cdecl; external;
+
+(**
+ @brief utc sun times for altitude at a gregorian date
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param latitude latitude to use in calculations
+ @param longitude longitude to use in calculations
+ @param deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
+ @param sunrise return the utc sunrise in minutes
+ @param sunset return the utc sunset in minutes
+*)
+procedure hdate_get_utc_sun_time_deg(day, month, year : cint; latitude, longitude, deg : cdouble; sunrise, sunset : pcint);
+     cdecl; external;
+     
+
+(**
+ @brief utc sunrise/set time for a gregorian date
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+ @param latitude latitude to use in calculations
+ @param sun_hour return the length of shaa zmanit in minutes
+ @param first_light return the utc alut ha-shachar in minutes
+ @param talit return the utc tphilin and talit in minutes
+ @param sunrise return the utc sunrise in minutes
+ @param midday return the utc midday in minutes
+ @param sunset return the utc sunset in minutes
+ @param first_stars return the utc tzeit hacochavim in minutes
+ @param three_stars return the utc shlosha cochavim in minutes
+*)
+procedure hdate_get_utc_sun_time_full (day, month, year                                       : cint;
+                                       latitude, longitude                                    : cdouble;
+                                       sun_hour, first_light, talit, sunrise, midday, sunset,
+                                       first_stars, three_stars                               :  pcint);
+     cdecl; external;
+
+
 
 implementation
 

Added: pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp (added)
+++ pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp Thu Jan 31 19:30:24 2008
@@ -1,0 +1,758 @@
+
+(*  libhdate
+   Copyright (C) 1984-2003 Amos Shapir, 2004-2007  Yaacov Zamir <kzamir at walla.co.il>
+   Copyright (C)  2008  Ido Kanner   <idokan at gmail.com>
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+History:
+  25/01/2008 - Fixed some logical bugs.
+             - Added FPDoc support
+  12/01/2008 - Added support for dynamic loading for the library
+*)
+
+Unit hdate_dyn_pascal;
+
+{$IFDEF FPC}
+  {$MODE FPC}
+  {$PACKRECORDS C}
+  {$CALLING cdecl}
+{$ENDIF}
+
+
+(*
+   Auto load means that we are loading the functions when the unit is loaded.
+   Disable this define will mean that you should load and unload it by hand, using the needed procedures
+*)
+{$DEFINE AUTO_LOAD}
+
+Interface
+
+{$IFDEF FPC}
+
+Uses
+ctypes;
+{$ENDIF}
+
+{ Load and assign the hdate library dynamiclly
+  Note: If AUTO_LOAD is defined, then no need to use this procedure
+}
+Procedure hdate_init;
+
+{ Free the memory from the hdate library loading
+  Note: If AUTO_LOAD is defined, then no need to use this procedure
+}
+Procedure hdate_done;
+
+{ Return true if the library was was loaded, or false if not }
+Function IsLoaded : Boolean;
+
+Const
+  {$IFDEF UNIX}
+  LIBHDATE_LIBRARY_NAME = 'libhdate.so';
+  {$ELSE}
+    {$IFDEF MSWINODWS}
+       LIBHDATE_LIBRARY_NAME = 'hdate.dll';
+    {$ELSE}
+      {$FATAL Unsupported environment}
+    {$ENDIF}
+  {$ENDIF}
+
+(** @def HDATE_DIASPORA_FLAG
+  @brief use diaspora dates and holydays flag
+*)
+  HDATE_DIASPORA_FLAG = -1;
+
+(** @def HDATE_ISRAEL_FLAG
+  @brief use israel dates and holydays flag
+*)
+  HDATE_ISRAEL_FLAG   = 0;
+
+(** @def HDATE_SHORT_FLAG
+  @brief use short strings flag
+*)
+  HDATE_SHORT_FLAG    = -1;
+
+(** @def HDATE_LONG_FLAG
+  @brief use long strings flag
+*)
+  HDATE_LONG_FLAG     = 0;
+
+
+{ Base structore for hebrew dates }
+
+Type
+  // A pointer to the Thdate_struct record
+  Phdate_struct = ^Thdate_struct;
+  Thdate_struct = Record
+    hd_day          : cInt;
+    //The number of day in the hebrew month (1..31).
+    hd_mon          : cInt;
+    //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
+    hd_year         : cInt;
+    //The number of the hebrew year.
+    gd_day          : cInt;
+    //The number of the day in the month. (1..31)
+    gd_mon          : cInt;
+    //The number of the month 1..12 (1 - jan).
+    gd_year         : cInt;
+    //The number of the year.
+    hd_dw           : cInt;
+    //The day of the week 1..7 (1 - sunday).
+    hd_size_of_year : cInt;
+    //The length of the year in days.
+    hd_new_year_dw  : cInt;
+    //The week day of Hebrew new year.
+    hd_year_type    : cInt;
+    //The number type of year.
+    hd_jd           : cInt;
+    //The Julian day number
+    hd_days         : cInt;
+    //The number of days passed since 1 tishrey
+    hd_weeks        : cInt;
+    //The number of weeks passed since 1 tishrey
+  End;
+(********************************************************************************)
+(********************************************************************************)
+
+Var
+(**
+ @brief compute date structure from the Gregorian date
+
+ @param h pointer this hdate struct.
+ @param d Day of month 1..31
+ @param m Month 1..12
+ @param y Year in 4 digits e.g. 2001
+ @return pointer to this hdate struct
+ *)
+  hdate_set_gdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
+
+
+(**
+ @brief compute date structure from the Hebrew date
+
+ @param h pointer this hdate struct.
+ @param d Day of month 1..31
+ @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
+ @param y Year in 4 digits e.g. 5731
+ @return pointer to this hdate struct
+ *)
+  hdate_set_hdate : Function (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
+
+
+(**
+ @brief compute date structure from the Julian day
+
+ @param h pointer this hdate struct.
+ @param jd the julian day number.
+ @return pointer to this hdate struct
+ *)
+  hdate_set_jd : Function (h : Phdate_struct; jd : cInt) : Phdate_struct;
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief get formated hebrew date.
+
+ return the short ( e.g. "1 Tishrey" ) or
+ long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
+
+ @param h pointer this hdate struct.
+ @param diaspora if true give diaspora holydays.
+ @param s short flag.
+ @return a static string of foramted date
+*)
+  hdate_get_format_date : Function  (h : Phdate_struct; diaspora, s : cInt) : PChar;
+
+
+(**
+ @brief get the number of hebrew parasha.
+
+ @param h pointer this hdate struct.
+ @param diaspora if true give diaspora readings
+ @return the number of parasha 1. Bereshit etc..
+   (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
+*)
+  hdate_get_parasha : Function (h : Phdate_struct; diaspora : cInt) : cInt;
+
+
+(**
+ @brief get the number of hebrew holyday.
+
+ @param h pointer this hdate struct.
+ @param diaspora if true give diaspora holydays
+ @return the number of holyday.
+*)
+  hdate_get_holyday : Function (h : Phdate_struct; diaspora : cInt) : cInt;
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief convert an integer to hebrew string.
+
+ @param n The int to convert
+ @return a static string of the hebrew number UTF-8 (logical)
+ @attention ( 0 < n < 10000)
+*)
+  hdate_get_int_string : Function (n : cInt) : PChar;
+
+
+
+(**
+ @brief get name of week day.
+
+ @param day The number of the day 1..7 (1 - sun).
+ @param s short flag
+   true - returns a short string: sun, false returns: sunday.
+ @return a static string of the day of the week
+*)
+  hdate_get_day_string : Function (day : cInt; s : cInt) : PChar;
+
+
+
+(**
+ @brief name of month.
+
+ @param month the number of the month 1..12 (1 - jan).
+ @param s short flag.
+ @return a static string of month name
+*)
+  hdate_get_month_string : Function (month : cInt; s : cInt) : PChar;
+
+
+
+(**
+ @brief name of hebrew month.
+
+ @param month the number of the month 1..14
+   (1 - tishre, 13 - adar 1, 14 - adar 2).
+ @param s short flag.
+ @return a static string of month name
+*)
+  hdate_get_hebrew_month_string : Function (month : cInt; s : cInt) : PChar;
+
+
+
+(**
+ @brief name of hebrew holyday.
+
+ @param holyday the holyday number.
+ @param s short flag.
+ @return a static string of holyday name
+*)
+  hdate_get_holyday_string : Function (holyday, s : cInt) : PChar;
+
+
+
+(**
+ @brief name of parasha
+
+ @param parasha the number of parasha 1-Bereshit
+   (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
+ @param s short flag.
+ @return a static string of parasha name
+*)
+  hdate_get_parasha_string : Function (parasha, s : cInt) : PChar;
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief get the hebrew holyday type.
+
+ @param holyday the holyday number.
+ @return the number of holyday type.
+*)
+  hdate_get_holyday_type : Function (holyday : cInt) : cInt;
+
+
+
+(**
+ @brief size of hebrew year in days.
+
+ @param hebrew_year the hebrew year.
+ @return size of Hebrew year
+*)
+  hdate_get_size_of_hebrew_year : Function (hebrew_year : cInt) : cInt;
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief Days since Tishrey 3744
+
+ @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
+
+ @param hebrew_year The Hebrew year
+ @return Number of days since 3,1,3744
+*)
+  hdate_days_from_3744 : Function (hebrew_year : cInt) : cInt;
+
+
+
+(**
+ @brief Return Hebrew year type based on size and first week day of year.
+
+ @param size_of_year Length of year in days
+ @param new_year_dw First week day of year
+ @return the number for year type (1..14)
+*)
+  hdate_get_year_type : Function (size_of_year, new_year_dw : cInt) : cInt;
+
+
+
+(**
+ @brief Compute Julian day from Gregorian date
+
+ @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
+
+ @param day Day of month 1..31
+ @param month Month 1..12
+ @param year Year in 4 digits e.g. 2001
+ @return the julian day number
+ *)
+  hdate_gdate_to_jd : Function (day, month, year : cInt) : cInt;
+
+
+
+(**
+ @brief Compute Julian day from Hebrew day, month and year
+
+ @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
+
+ @param day Day of month 1..31
+ @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
+ @param year Hebrew year in 4 digits e.g. 5753
+ @param jd_tishrey1 return the julian number of 1 Tishrey this year
+ @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
+ @return the julian day number
+ *)
+  hdate_hdate_to_jd : Function (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt)
+                      : cInt;
+
+
+
+(**
+ @brief Converting from the Julian day to the Gregorian date
+
+ @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
+
+ @param jd Julian day
+ @param day return Day of month 1..31
+ @param month return Month 1..12
+ @param year return Year in 4 digits e.g. 2001
+ *)
+  hdate_jd_to_gdate : Procedure (jd : cInt; day, month, year : pcInt);
+
+
+
+(**
+ @brief Converting from the Julian day to the Hebrew day
+
+ @author Yaacov Zamir 2005
+
+ @param jd Julian day
+ @param day return Day of month 1..31
+ @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
+ @param year return Year in 4 digits e.g. 2001
+ @param jd_tishrey1 return the julian number of 1 Tishrey this year
+ @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
+ *)
+  hdate_jd_to_hdate : Procedure (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year :
+                                 pcInt);
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief days from 1 january
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @return the days from 1 jan
+*)
+  hdate_get_day_of_year : Function (day, month, year : cInt) : cInt;
+
+
+
+(**
+ @brief utc sunrise/set time for a gregorian date
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+	degrees, negative values are east
+  @param latitude latitude to use in calculations
+	degrees, negative values are south
+ @param sunrise return the utc sunrise in minutes after midnight (00:00)
+ @param sunset return the utc sunset in minutes after midnight (00:00)
+*)
+  hdate_get_utc_sun_time : Procedure (day, month, year : cInt; latitude, longitude : cDouble;
+                                      sunrise, sunset : pcInt);
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief get the Gregorian day of the month
+
+ @param h pointer this hdate struct.
+ @return the Gregorian day of the month, 1..31.
+ *)
+  hdate_get_gday : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the Gregorian month
+
+ @param h pointer this hdate struct.
+ @return the Gregorian month, jan = 1.
+ *)
+  hdate_get_gmonth : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the Gregorian year
+
+ @param h pointer this hdate struct.
+ @return the Gregorian year.
+ *)
+  hdate_get_gyear : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the Hebrew day of the month
+
+ @param h pointer this hdate struct.
+ @return the Hebrew day of the month, 1..30.
+ *)
+  hdate_get_hday : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the Hebrew month
+
+ @param h pointer this hdate struct.
+ @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
+ *)
+  hdate_get_hmonth : Function (h : Phdate_struct) : cInt;
+
+
+(**
+ @brief get the Hebrew year
+
+ @param h pointer this hdate struct.
+ @return the Hebrew year.
+ *)
+  hdate_get_hyear : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the day of the week
+
+ @param h pointer this hdate struct.
+ @return the the day of the week.
+ *)
+  hdate_get_day_of_the_week : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the size of the hebrew year
+
+ @param h pointer this hdate struct.
+ @return the the size of the hebrew year.
+ *)
+  hdate_get_size_of_year : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the new year day of the week
+
+ @param h pointer this hdate struct.
+ @return the the new year day of the week.
+ *)
+  hdate_get_new_year_day_of_the_week : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the Julian day number
+
+ @param h pointer this hdate struct.
+ @return the Julian day number.
+ *)
+  hdate_get_julian : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the number of days passed since 1 tishrey
+
+ @param h pointer this hdate struct.
+ @return the number of days passed since 1 tishrey.
+ *)
+  hdate_get_days : Function (h : Phdate_struct) : cInt;
+
+
+
+(**
+ @brief get the number of weeks passed since 1 tishrey
+
+ @param h pointer this hdate struct.
+ @return the number of weeks passed since 1 tishrey.
+ *)
+  hdate_get_weeks : Function (h : Phdate_struct) : cInt;
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief creat a new hdate struct object, must be deleted using delete_hdate.
+
+ @return a new hdate object
+ *)
+  new_hdate : Function : Phdate_struct;
+
+
+(**
+ @brief delete an hdate struct object.
+
+ @param h pointer this hdate struct.
+ *)
+  delete_hdate : Function (h : Phdate_struct) : Phdate_struct;
+
+
+(*************************************************************)
+(*************************************************************)
+
+
+(**
+ @brief Return a static string, with the package name and version
+
+ @return a a static string, with the package name and version
+*)
+  hdate_get_version_string : Function : PChar;
+
+
+(**
+ @brief Return a static string, with the name of translator
+
+ @return a a static string, with the name of translator
+*)
+  hdate_get_translator_string : Function : PChar;
+
+
+(**
+ @brief utc sun times for altitude at a gregorian date
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param latitude latitude to use in calculations
+ @param longitude longitude to use in calculations
+ @param deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
+ @param sunrise return the utc sunrise in minutes
+ @param sunset return the utc sunset in minutes
+*)
+  hdate_get_utc_sun_time_deg : Procedure (day, month, year         : cint;
+                                          latitude, longitude, deg : cdouble;
+                                          sunrise, sunset          : pcint);
+
+
+(**
+ @brief utc sunrise/set time for a gregorian date
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+ @param latitude latitude to use in calculations
+ @param sun_hour return the length of shaa zmanit in minutes
+ @param first_light return the utc alut ha-shachar in minutes
+ @param talit return the utc tphilin and talit in minutes
+ @param sunrise return the utc sunrise in minutes
+ @param midday return the utc midday in minutes
+ @param sunset return the utc sunset in minutes
+ @param first_stars return the utc tzeit hacochavim in minutes
+ @param three_stars return the utc shlosha cochavim in minutes
+*)
+  hdate_get_utc_sun_time_full : Procedure (day, month, year                                       : cint;
+                                           latitude, longitude                                    : cdouble;
+                                           sun_hour, first_light, talit, sunrise, midday, sunset,
+                                           first_stars, three_stars                               : pcint);
+
+
+Implementation
+Uses dynlibs;
+
+Var
+  Loaded    : Boolean;
+  LibHandle : TLibHandle;
+
+Procedure hdate_init;
+
+  { Internal function of hdate_init, that load the function and assign it to the right function/procedure}
+  Function AssignProc(Name : PChar; Fnc : Pointer) : boolean;
+  Var
+    address : pointer;
+    pfnc    : ^pointer;
+  Begin
+    address    := Nil;
+    address    := GetProcedureAddress(LibHandle, Name);
+    pfnc       := Fnc;
+    pfnc^      := address;
+    AssignProc := address <> Nil;
+  End;
+
+Begin
+  If (Loaded) and (LibHandle <> NilHandle) Then
+    exit;
+
+  Loaded    := False;
+  LibHandle := LoadLibrary(LIBHDATE_LIBRARY_NAME);
+  If LibHandle = NilHandle Then
+    exit;
+
+  If Not AssignProc('hdate_set_gdate',                    @hdate_set_gdate)                    Then
+    exit;
+  If Not AssignProc('hdate_set_hdate',                    @hdate_set_hdate)                    Then
+    exit;
+  If Not AssignProc('hdate_set_jd',                       @hdate_set_jd)                       Then
+    exit;
+  If Not AssignProc('hdate_get_format_date',              @hdate_get_format_date)              Then
+    exit;
+  If Not AssignProc('hdate_get_parasha',                  @hdate_get_parasha)                  Then
+    exit;
+  If Not AssignProc('hdate_get_holyday',                  @hdate_get_holyday)                  Then
+    exit;
+  If Not AssignProc('hdate_get_int_string',               @hdate_get_int_string)               Then
+    exit;
+  If Not AssignProc('hdate_get_day_string',               @hdate_get_day_string)               Then
+    exit;
+  If Not AssignProc('hdate_get_month_string',             @hdate_get_month_string)             Then
+    exit;
+  If Not AssignProc('hdate_get_hebrew_month_string',      @hdate_get_hebrew_month_string)      Then
+    exit;
+  If Not AssignProc('hdate_get_holyday_string',           @hdate_get_holyday_string)           Then
+    exit;
+  If Not AssignProc('hdate_get_parasha_string',           @hdate_get_parasha_string)           Then
+    exit;
+  If Not AssignProc('hdate_get_holyday_type',             @hdate_get_holyday_type)             Then
+    exit;
+  If Not AssignProc('hdate_get_size_of_hebrew_year',      @hdate_get_size_of_hebrew_year)      Then
+    exit;
+  If Not AssignProc('hdate_days_from_3744',               @hdate_days_from_3744)               Then
+    exit;
+  If Not AssignProc('hdate_get_year_type',                @hdate_get_year_type)                Then
+    exit;
+  If Not AssignProc('hdate_gdate_to_jd',                  @hdate_gdate_to_jd)                  Then
+    exit;
+  If Not AssignProc('hdate_hdate_to_jd',                  @hdate_hdate_to_jd)                  Then
+    exit;
+  If Not AssignProc('hdate_jd_to_gdate',                  @hdate_jd_to_gdate)                  Then
+    exit;
+  If Not AssignProc('hdate_jd_to_hdate',                  @hdate_jd_to_hdate)                  Then
+    exit;
+  If Not AssignProc('hdate_get_day_of_year',              @hdate_get_day_of_year)              Then
+    exit;
+  If Not AssignProc('hdate_get_utc_sun_time',             @hdate_get_utc_sun_time)             Then
+    exit;
+  If Not AssignProc('hdate_get_gday',                     @hdate_get_gday)                     Then
+    exit;
+  If Not AssignProc('hdate_get_gmonth',                   @hdate_get_gmonth)                   Then
+    exit;
+  If Not AssignProc('hdate_get_gyear',                    @hdate_get_gyear)                    Then
+    exit;
+  If Not AssignProc('hdate_get_hday',                     @hdate_get_hday)                     Then
+    exit;
+  If Not AssignProc('hdate_get_hmonth',                   @hdate_get_hmonth)                   Then
+    exit;
+  If Not AssignProc('hdate_get_hyear',                    @hdate_get_hyear)                    Then
+    exit;
+  If Not AssignProc('hdate_get_day_of_the_week',          @hdate_get_day_of_the_week)          Then
+    exit;
+  If Not AssignProc('hdate_get_size_of_year',             @hdate_get_size_of_year)             Then
+    exit;
+  If Not AssignProc('hdate_get_new_year_day_of_the_week', @hdate_get_new_year_day_of_the_week) Then
+    exit;
+  If Not AssignProc('hdate_get_julian',                   @hdate_get_julian)                   Then
+    exit;
+  If Not AssignProc('hdate_get_days',                     @hdate_get_days)                     Then
+    exit;
+  If Not AssignProc('hdate_get_weeks',                    @hdate_get_weeks)                    Then
+    exit;
+  If Not AssignProc('new_hdate',                          @new_hdate)                          Then
+    exit;
+  If Not AssignProc('delete_hdate',                       @delete_hdate)                       Then
+    exit;
+  If Not AssignProc('hdate_get_version_string',           @hdate_get_version_string)           Then
+    exit;
+  If Not AssignProc('hdate_get_translator_string',        @hdate_get_translator_string)        Then
+    exit;
+  If Not AssignProc('hdate_get_utc_sun_time_deg',         @hdate_get_utc_sun_time_deg)         Then
+    exit;
+  If Not AssignProc('hdate_get_utc_sun_time_full',        @hdate_get_utc_sun_time_full)        Then
+    exit;
+
+  Loaded := true;
+End;
+
+Procedure hdate_done;
+Begin
+  If LibHandle <> NilHandle Then
+    UnloadLibrary(LibHandle);
+
+  LibHandle := NilHandle;
+  Loaded    := false;
+End;
+
+Function IsLoaded : Boolean;
+Begin
+  IsLoaded := Loaded;
+End;
+
+initialization
+Loaded := false;
+{$IFDEF AUTO_LOAD}
+hdate_init;
+{$ENDIF}
+finalization
+{$IFDEF AUTO_LOAD}
+hdate_done;
+{$ENDIF}
+End.
+

Modified: pkg/libhdate/branches/upstream/current/bindings/perl/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/perl/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/perl/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/bindings/perl/Makefile.in Thu Jan 31 19:30:24 2008
@@ -120,12 +120,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -139,8 +144,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -169,7 +178,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Added: pkg/libhdate/branches/upstream/current/bindings/php/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/php/Makefile.am?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/php/Makefile.am (added)
+++ pkg/libhdate/branches/upstream/current/bindings/php/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,0 +1,26 @@
+
+EXTRA_DIST = hdate.i hdate.ini
+
+if WITH_PHP
+
+DEPS= $(top_builddir)/src/libhdate.la
+
+CLEANFILES = *.o *.cpp *.h *.so *wrap*
+
+all-am: hdate.so
+	
+
+hdate.so: hdate_wrap.cpp
+	g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
+	gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
+
+hdate_wrap.cpp: hdate.i
+	swig -php5 -c++ hdate.i
+
+install-data-local: hdate.so hdate.ini
+	$(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
+	$(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
+	
+	$(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
+	$(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
+endif

Added: pkg/libhdate/branches/upstream/current/bindings/php/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/php/Makefile.in?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/php/Makefile.in (added)
+++ pkg/libhdate/branches/upstream/current/bindings/php/Makefile.in Thu Jan 31 19:30:24 2008
@@ -1,0 +1,393 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = bindings/php
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
+	$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
+	$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
+	$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
+	$(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
+	$(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GREP = @GREP@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+MAKEINFO = @MAKEINFO@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_MODULES_PATH = @PA_MODULES_PATH@
+PA_VERSION = @PA_VERSION@
+PE_CFLAGS = @PE_CFLAGS@
+PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+PY_CFLAGS = @PY_CFLAGS@
+PY_MODULES_PATH = @PY_MODULES_PATH@
+PY_VERSION = @PY_VERSION@
+RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+VERSION_INFO = @VERSION_INFO@
+WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
+WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
+WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
+WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
+WITH_PERL_FALSE = @WITH_PERL_FALSE@
+WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
+WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
+WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+have_pascal = @have_pascal@
+have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
+have_python = @have_python@
+have_ruby = @have_ruby@
+have_swig = @have_swig@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+EXTRA_DIST = hdate.i hdate.ini
+ at WITH_PHP_TRUE@DEPS = $(top_builddir)/src/libhdate.la
+ at WITH_PHP_TRUE@CLEANFILES = *.o *.cpp *.h *.so *wrap*
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  bindings/php/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  bindings/php/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+ at WITH_PHP_FALSE@install-data-local:
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-data-local install-exec \
+	install-exec-am install-info install-info-am install-man \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	uninstall uninstall-am uninstall-info-am
+
+
+ at WITH_PHP_TRUE@all-am: hdate.so
+
+ at WITH_PHP_TRUE@hdate.so: hdate_wrap.cpp
+ at WITH_PHP_TRUE@	g++ -I$(top_srcdir)/src `php-config --includes` -fpic -c hdate_wrap.cpp
+ at WITH_PHP_TRUE@	gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -lstdc++ -o hdate.so
+
+ at WITH_PHP_TRUE@hdate_wrap.cpp: hdate.i
+ at WITH_PHP_TRUE@	swig -php5 -c++ hdate.i
+
+ at WITH_PHP_TRUE@install-data-local: hdate.so hdate.ini
+ at WITH_PHP_TRUE@	$(mkinstalldirs) $(DESTDIR)$(PH_MODULES_PATH)
+ at WITH_PHP_TRUE@	$(INSTALL_DATA) hdate.so $(DESTDIR)$(PH_MODULES_PATH)/hdate.so
+
+ at WITH_PHP_TRUE@	$(mkinstalldirs) $(DESTDIR)$(PH_CONFIG_PATH)
+ at WITH_PHP_TRUE@	$(INSTALL_DATA) hdate.ini $(DESTDIR)$(PH_CONFIG_PATH)/hdate.ini
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: pkg/libhdate/branches/upstream/current/bindings/php/hdate.i
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/php/hdate.i?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/php/hdate.i (added)
+++ pkg/libhdate/branches/upstream/current/bindings/php/hdate.i Thu Jan 31 19:30:24 2008
@@ -1,0 +1,9 @@
+// file : hdate.i
+%module hdate
+%{
+#include "../../src/hdatepp.h"
+%}
+
+%include ../../src/hdatepp.h
+
+

Added: pkg/libhdate/branches/upstream/current/bindings/php/hdate.ini
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/php/hdate.ini?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/php/hdate.ini (added)
+++ pkg/libhdate/branches/upstream/current/bindings/php/hdate.ini Thu Jan 31 19:30:24 2008
@@ -1,0 +1,2 @@
+# configuration for php hdate module
+extension=hdate.so

Modified: pkg/libhdate/branches/upstream/current/bindings/python/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/python/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/python/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/bindings/python/Makefile.in Thu Jan 31 19:30:24 2008
@@ -120,12 +120,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -139,8 +144,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -169,7 +178,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Added: pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.am?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.am (added)
+++ pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,0 +1,24 @@
+
+EXTRA_DIST = hdate.i
+
+if WITH_RUBY
+
+DEPS= $(top_builddir)/src/libhdate.la
+
+CLEANFILES = *.o *.cxx *.so *wrap*
+
+all-am: hdate.so
+	
+
+hdate.so: hdate_wrap.cxx
+	g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
+	gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
+
+hdate_wrap.cxx: hdate.i
+	swig -c++ -ruby hdate.i
+
+install-data-local: hdate.so
+	$(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
+	$(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
+
+endif

Added: pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.in?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.in (added)
+++ pkg/libhdate/branches/upstream/current/bindings/ruby/Makefile.in Thu Jan 31 19:30:24 2008
@@ -1,0 +1,390 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = bindings/ruby
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
+	$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
+	$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
+	$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
+	$(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
+	$(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GREP = @GREP@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+MAKEINFO = @MAKEINFO@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_MODULES_PATH = @PA_MODULES_PATH@
+PA_VERSION = @PA_VERSION@
+PE_CFLAGS = @PE_CFLAGS@
+PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+PY_CFLAGS = @PY_CFLAGS@
+PY_MODULES_PATH = @PY_MODULES_PATH@
+PY_VERSION = @PY_VERSION@
+RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+VERSION_INFO = @VERSION_INFO@
+WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
+WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
+WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
+WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
+WITH_PERL_FALSE = @WITH_PERL_FALSE@
+WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
+WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
+WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+have_pascal = @have_pascal@
+have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
+have_python = @have_python@
+have_ruby = @have_ruby@
+have_swig = @have_swig@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+EXTRA_DIST = hdate.i
+ at WITH_RUBY_TRUE@DEPS = $(top_builddir)/src/libhdate.la
+ at WITH_RUBY_TRUE@CLEANFILES = *.o *.cxx *.so *wrap*
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  bindings/ruby/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  bindings/ruby/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+ at WITH_RUBY_FALSE@install-data-local:
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-data-local install-exec \
+	install-exec-am install-info install-info-am install-man \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	uninstall uninstall-am uninstall-info-am
+
+
+ at WITH_RUBY_TRUE@all-am: hdate.so
+
+ at WITH_RUBY_TRUE@hdate.so: hdate_wrap.cxx
+ at WITH_RUBY_TRUE@	g++ -fpic -fno-strict-aliasing -g -O2 -c hdate_wrap.cxx $(RU_CFLAGS) -I$(top_srcdir)/src
+ at WITH_RUBY_TRUE@	gcc -shared ../../src/.libs/libhdate.so hdate_wrap.o -rdynamic -Wl,-export-dynamic -lruby$(RU_VERSION) -lpthread -ldl -lcrypt -lm -lc -lstdc++ -o hdate.so
+
+ at WITH_RUBY_TRUE@hdate_wrap.cxx: hdate.i
+ at WITH_RUBY_TRUE@	swig -c++ -ruby hdate.i
+
+ at WITH_RUBY_TRUE@install-data-local: hdate.so
+ at WITH_RUBY_TRUE@	$(mkinstalldirs) $(DESTDIR)$(RU_MODULES_PATH)
+ at WITH_RUBY_TRUE@	$(INSTALL_DATA) hdate.so $(DESTDIR)$(RU_MODULES_PATH)/hdate.so
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: pkg/libhdate/branches/upstream/current/bindings/ruby/hdate.i
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/bindings/ruby/hdate.i?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/bindings/ruby/hdate.i (added)
+++ pkg/libhdate/branches/upstream/current/bindings/ruby/hdate.i Thu Jan 31 19:30:24 2008
@@ -1,0 +1,9 @@
+// file : hdate.i
+%module hdate
+%{
+#include "../../src/hdatepp.h"
+%}
+
+%include ../../src/hdatepp.h
+
+

Modified: pkg/libhdate/branches/upstream/current/configure
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/configure?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/configure (original)
+++ pkg/libhdate/branches/upstream/current/configure Thu Jan 31 19:30:24 2008
@@ -886,6 +886,18 @@
 PY_MODULES_PATH
 WITH_PYTHON_TRUE
 WITH_PYTHON_FALSE
+have_ruby
+RU_VERSION
+RU_CFLAGS
+RU_MODULES_PATH
+WITH_RUBY_TRUE
+WITH_RUBY_FALSE
+have_php
+have_php_config
+PH_CONFIG_PATH
+PH_MODULES_PATH
+WITH_PHP_TRUE
+WITH_PHP_FALSE
 have_perl
 PE_CFLAGS
 PE_MODULES_PATH
@@ -1517,6 +1529,8 @@
   --disable-libtool-lock  avoid locking (might break parallel builds)
   --disable-pascal        do not build pascal binding
   --disable-python        do not build python binding
+  --disable-ruby          do not build ruby binding
+  --disable-php           do not build php binding
   --disable-perl          do not build perl binding
   --disable-nls           do not use Native Language Support
   --disable-rpath         do not hardcode runtime library paths
@@ -1531,6 +1545,10 @@
   --with-tags[=TAGS]      include additional configurations [automatic]
   --with-python-sitelib-dir=PATH
                           path to python site lib
+  --with-ruby-sitelib-dir=PATH
+                          path to ruby site lib
+  --with-php-sitelib-dir=PATH
+                          path to php site lib
   --with-perl-sitelib-dir=PATH
                           path to perl site lib
   --with-gnu-ld           assume the C compiler uses GNU ld default=no
@@ -1981,7 +1999,7 @@
 PACKAGE=libhdate
 LIBHDATE_MAJOR_VERSION=1
 LIBHDATE_MINOR_VERSION=4
-LIBHDATE_MICRO_VERSION=10
+LIBHDATE_MICRO_VERSION=11
 
 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
 
@@ -6264,7 +6282,7 @@
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 6267 "configure"' > conftest.$ac_ext
+  echo '#line 6285 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -8528,11 +8546,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8549: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8535: \$? = $ac_status" >&5
+   echo "$as_me:8553: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8818,11 +8836,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8821: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8839: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:8825: \$? = $ac_status" >&5
+   echo "$as_me:8843: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -8922,11 +8940,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:8943: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:8929: \$? = $ac_status" >&5
+   echo "$as_me:8947: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -11284,7 +11302,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 11287 "configure"
+#line 11305 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11384,7 +11402,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 11387 "configure"
+#line 11405 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13804,11 +13822,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13807: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13825: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:13811: \$? = $ac_status" >&5
+   echo "$as_me:13829: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -13908,11 +13926,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13911: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13929: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13915: \$? = $ac_status" >&5
+   echo "$as_me:13933: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -15485,11 +15503,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15488: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:15492: \$? = $ac_status" >&5
+   echo "$as_me:15510: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -15589,11 +15607,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15592: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15610: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15596: \$? = $ac_status" >&5
+   echo "$as_me:15614: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -17789,11 +17807,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17792: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17810: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17796: \$? = $ac_status" >&5
+   echo "$as_me:17814: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -18079,11 +18097,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:18082: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:18100: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:18086: \$? = $ac_status" >&5
+   echo "$as_me:18104: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -18183,11 +18201,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:18186: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:18204: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:18190: \$? = $ac_status" >&5
+   echo "$as_me:18208: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -21230,6 +21248,232 @@
 else
   WITH_PYTHON_TRUE='#'
   WITH_PYTHON_FALSE=
+fi
+
+
+
+# Extract the first word of ""ruby"", so it can be a program name with args.
+set dummy "ruby"; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_have_ruby+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$have_ruby"; then
+  ac_cv_prog_have_ruby="$have_ruby" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_have_ruby="yes"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_prog_have_ruby" && ac_cv_prog_have_ruby="no"
+fi
+fi
+have_ruby=$ac_cv_prog_have_ruby
+if test -n "$have_ruby"; then
+  { echo "$as_me:$LINENO: result: $have_ruby" >&5
+echo "${ECHO_T}$have_ruby" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+
+build_ruby=$have_ruby
+
+# Check whether --enable-ruby was given.
+if test "${enable_ruby+set}" = set; then
+  enableval=$enable_ruby; build_ruby=no
+else
+  build_ruby=$have_ruby
+fi
+
+
+
+# Check whether --with-ruby-sitelib-dir was given.
+if test "${with_ruby_sitelib_dir+set}" = set; then
+  withval=$with_ruby_sitelib_dir;
+fi
+
+
+if test "$have_ruby" = "yes"; then
+	  RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
+	  RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
+	  RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
+	  { echo "$as_me:$LINENO: checking for $RU_PREFIX/ruby.h" >&5
+echo $ECHO_N "checking for $RU_PREFIX/ruby.h... $ECHO_C" >&6; }
+	  if test -f $RU_PREFIX/ruby.h; then
+		  { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+		  RU_CFLAGS="-I$RU_PREFIX"
+
+		  if test "$with_ruby_sitelib_dir" = "" ; then
+		    RU_MODULES_PATH="$RU_PREFIX"
+		  else
+		    RU_MODULES_PATH=$with_ruby_sitelib_dir
+		  fi
+
+
+
+
+		  if test "$have_swig" = "no"; then
+			build_ruby=no
+		  fi
+	  else
+		  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+		  build_ruby=no
+	  fi
+fi
+
+
+
+if test "$build_ruby" = "yes"; then
+  WITH_RUBY_TRUE=
+  WITH_RUBY_FALSE='#'
+else
+  WITH_RUBY_TRUE='#'
+  WITH_RUBY_FALSE=
+fi
+
+
+
+# Extract the first word of ""php"", so it can be a program name with args.
+set dummy "php"; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_have_php+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$have_php"; then
+  ac_cv_prog_have_php="$have_php" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_have_php="yes"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_prog_have_php" && ac_cv_prog_have_php="no"
+fi
+fi
+have_php=$ac_cv_prog_have_php
+if test -n "$have_php"; then
+  { echo "$as_me:$LINENO: result: $have_php" >&5
+echo "${ECHO_T}$have_php" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+
+build_php=$have_php
+
+# Check whether --enable-php was given.
+if test "${enable_php+set}" = set; then
+  enableval=$enable_php; build_php=no
+else
+  build_php=$have_php
+fi
+
+
+
+# Check whether --with-php-sitelib-dir was given.
+if test "${with_php_sitelib_dir+set}" = set; then
+  withval=$with_php_sitelib_dir;
+fi
+
+
+if test "$have_php" = "yes"; then
+	  # Extract the first word of ""php-config5"", so it can be a program name with args.
+set dummy "php-config5"; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_have_php_config+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$have_php_config"; then
+  ac_cv_prog_have_php_config="$have_php_config" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_have_php_config="yes"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_prog_have_php_config" && ac_cv_prog_have_php_config="no"
+fi
+fi
+have_php_config=$ac_cv_prog_have_php_config
+if test -n "$have_php_config"; then
+  { echo "$as_me:$LINENO: result: $have_php_config" >&5
+echo "${ECHO_T}$have_php_config" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+	  if test "$have_php_config" = "yes"; then
+
+	      PH_CONFIG_PATH=`php --ini | head -n1 | cut -d: -f2 | sed 's/\s//g'`
+		  if test "$with_php_sitelib_dir" = "" ; then
+		    PH_MODULES_PATH=`php-config5 --extension-dir`
+		  else
+		    PH_MODULES_PATH=$with_php_sitelib_dir
+		  fi
+
+
+
+		  if test "$have_swig" = "no"; then
+			build_php=no
+		  fi
+	  else
+		  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+		  build_php=no
+	  fi
+fi
+
+
+
+if test "$build_php" = "yes"; then
+  WITH_PHP_TRUE=
+  WITH_PHP_FALSE='#'
+else
+  WITH_PHP_TRUE='#'
+  WITH_PHP_FALSE=
 fi
 
 
@@ -23504,7 +23748,7 @@
 
 
 
-ac_config_files="$ac_config_files Makefile libhdate.pc po/Makefile.in docs/Makefile docs/man/Makefile docs/man/man1/Makefile docs/man/man3/Makefile src/Makefile examples/Makefile examples/hcal/Makefile examples/bindings/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile"
+ac_config_files="$ac_config_files Makefile libhdate.pc po/Makefile.in docs/Makefile docs/man/Makefile docs/man/man1/Makefile docs/man/man3/Makefile src/Makefile examples/Makefile examples/hcal/Makefile examples/bindings/Makefile examples/bindings/pascal/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile bindings/ruby/Makefile bindings/php/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -23688,6 +23932,20 @@
 Usually this means the macro was only invoked conditionally." >&2;}
    { (exit 1); exit 1; }; }
 fi
+if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"WITH_RUBY\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"WITH_RUBY\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"WITH_PHP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"WITH_PHP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
   { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
 Usually this means the macro was only invoked conditionally." >&5
@@ -24173,10 +24431,13 @@
     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
     "examples/hcal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
     "examples/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
+    "examples/bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/pascal/Makefile" ;;
     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
     "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
     "bindings/perl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
     "bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
+    "bindings/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/ruby/Makefile" ;;
+    "bindings/php/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/php/Makefile" ;;
 
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
@@ -24397,6 +24658,18 @@
 PY_MODULES_PATH!$PY_MODULES_PATH$ac_delim
 WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
 WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
+have_ruby!$have_ruby$ac_delim
+RU_VERSION!$RU_VERSION$ac_delim
+RU_CFLAGS!$RU_CFLAGS$ac_delim
+RU_MODULES_PATH!$RU_MODULES_PATH$ac_delim
+WITH_RUBY_TRUE!$WITH_RUBY_TRUE$ac_delim
+WITH_RUBY_FALSE!$WITH_RUBY_FALSE$ac_delim
+have_php!$have_php$ac_delim
+have_php_config!$have_php_config$ac_delim
+PH_CONFIG_PATH!$PH_CONFIG_PATH$ac_delim
+PH_MODULES_PATH!$PH_MODULES_PATH$ac_delim
+WITH_PHP_TRUE!$WITH_PHP_TRUE$ac_delim
+WITH_PHP_FALSE!$WITH_PHP_FALSE$ac_delim
 have_perl!$have_perl$ac_delim
 PE_CFLAGS!$PE_CFLAGS$ac_delim
 PE_MODULES_PATH!$PE_MODULES_PATH$ac_delim
@@ -24426,7 +24699,7 @@
 LTLIBOBJS!$LTLIBOBJS$ac_delim
 _ACEOF
 
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
     break
   elif $ac_last_try; then
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -25002,6 +25275,8 @@
 
 
 
+echo $sysconfdir
+
 echo "
 $PACKAGE-$VERSION
 
@@ -25009,17 +25284,24 @@
 	compiler:			${CC}
 
 	have swig			${have_swig}
-	have free pascal    		${have_pascal}
+	have free pascal		${have_pascal}
 	have python			${have_python}
 	have perl			${have_perl}
+	have ruby			${have_ruby}
+	have php			${have_php} php-dev ${have_php_config}
 
 	build hcal			${build_hcal}
 
 	build python binding		${build_python}
 	build perl binding		${build_perl}
 	puild pascal binding		${build_pascal}
+	puild ruby binding		${build_ruby}
+	puild php binding		${build_php}
 
 	perl site lib path:		$PE_MODULES_PATH
 	python site lib path:		$PY_MODULES_PATH
 	pascal site lib path:		$PA_MODULES_PATH
+	ruby site lib path:		$RU_MODULES_PATH
+	php site lib path:		$PH_MODULES_PATH
+	  php config path:		$PH_CONFIG_PATH
 "

Modified: pkg/libhdate/branches/upstream/current/configure.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/configure.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/configure.in (original)
+++ pkg/libhdate/branches/upstream/current/configure.in Thu Jan 31 19:30:24 2008
@@ -4,7 +4,7 @@
 PACKAGE=libhdate
 LIBHDATE_MAJOR_VERSION=1
 LIBHDATE_MINOR_VERSION=4
-LIBHDATE_MICRO_VERSION=10
+LIBHDATE_MICRO_VERSION=11
 
 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
 
@@ -104,6 +104,89 @@
 fi
 
 AM_CONDITIONAL(WITH_PYTHON, test "$build_python" = "yes")
+
+dnl =======================================================================================
+
+AC_CHECK_PROG(have_ruby, "ruby", yes, no)
+
+build_ruby=$have_ruby
+
+AC_ARG_ENABLE([ruby], 
+  [AS_HELP_STRING([--disable-ruby],
+  [do not build ruby binding])],
+  [build_ruby=no], [build_ruby=$have_ruby])
+
+AC_ARG_WITH(ruby-sitelib-dir, 
+  [AS_HELP_STRING([--with-ruby-sitelib-dir=PATH],
+  [path to ruby site lib])])
+
+if test "$have_ruby" = "yes"; then
+	  RU_PREFIX=`ruby -e 'require "mkmf"; puts $topdir'`
+	  RU_VERSION=`ruby -e "require 'mkmf'; puts config_string('MAJOR')"`
+	  RU_VERSION+=.`ruby -e "require 'mkmf'; puts config_string('MINOR')"`
+	  AC_MSG_CHECKING(for $RU_PREFIX/ruby.h)
+	  if test -f $RU_PREFIX/ruby.h; then
+		  AC_MSG_RESULT(yes)
+		  RU_CFLAGS="-I$RU_PREFIX"
+		  
+		  if test "$with_ruby_sitelib_dir" = "" ; then
+		    RU_MODULES_PATH="$RU_PREFIX"
+		  else
+		    RU_MODULES_PATH=$with_ruby_sitelib_dir
+		  fi
+		  
+		  AC_SUBST([RU_VERSION])
+		  AC_SUBST([RU_CFLAGS])
+		  AC_SUBST([RU_MODULES_PATH])
+		  if test "$have_swig" = "no"; then
+			build_ruby=no
+		  fi
+	  else
+		  AC_MSG_RESULT(no)
+		  build_ruby=no
+	  fi
+fi
+
+AM_CONDITIONAL(WITH_RUBY, test "$build_ruby" = "yes")
+
+dnl =======================================================================================
+
+AC_CHECK_PROG(have_php, "php", yes, no)
+
+build_php=$have_php
+
+AC_ARG_ENABLE([php], 
+  [AS_HELP_STRING([--disable-php],
+  [do not build php binding])],
+  [build_php=no], [build_php=$have_php])
+
+AC_ARG_WITH(php-sitelib-dir, 
+  [AS_HELP_STRING([--with-php-sitelib-dir=PATH],
+  [path to php site lib])])
+
+if test "$have_php" = "yes"; then
+	  AC_CHECK_PROG(have_php_config, "php-config5", yes, no)
+	  if test "$have_php_config" = "yes"; then
+	      
+	      PH_CONFIG_PATH=`php --ini | head -n1 | cut -d: -f2 | sed 's/\s//g'`
+		  if test "$with_php_sitelib_dir" = "" ; then
+		    PH_MODULES_PATH=`php-config5 --extension-dir`
+		  else
+		    PH_MODULES_PATH=$with_php_sitelib_dir
+		  fi
+		  
+		  AC_SUBST([PH_CONFIG_PATH])
+		  AC_SUBST([PH_MODULES_PATH])
+		  if test "$have_swig" = "no"; then
+			build_php=no
+		  fi
+	  else
+		  AC_MSG_RESULT(no)
+		  build_php=no
+	  fi
+fi
+
+AM_CONDITIONAL(WITH_PHP, test "$build_php" = "yes")
 
 dnl =======================================================================================
 
@@ -197,13 +280,18 @@
 examples/Makefile
 examples/hcal/Makefile
 examples/bindings/Makefile
+examples/bindings/pascal/Makefile
 bindings/Makefile
 bindings/python/Makefile
 bindings/perl/Makefile
 bindings/pascal/Makefile
+bindings/ruby/Makefile
+bindings/php/Makefile
 ])
 
 dnl ===========================================================================================
+
+echo $sysconfdir
 
 echo "
 $PACKAGE-$VERSION
@@ -212,17 +300,24 @@
 	compiler:			${CC}
 	
 	have swig			${have_swig}
-	have free pascal    		${have_pascal}
+	have free pascal		${have_pascal}
 	have python			${have_python}
 	have perl			${have_perl}
+	have ruby			${have_ruby}
+	have php			${have_php} php-dev ${have_php_config}
 	
 	build hcal			${build_hcal}
 	
 	build python binding		${build_python}
 	build perl binding		${build_perl}
 	puild pascal binding		${build_pascal}
+	puild ruby binding		${build_ruby}
+	puild php binding		${build_php}
 	
 	perl site lib path:		$PE_MODULES_PATH
 	python site lib path:		$PY_MODULES_PATH
 	pascal site lib path:		$PA_MODULES_PATH
+	ruby site lib path:		$RU_MODULES_PATH
+	php site lib path:		$PH_MODULES_PATH
+	  php config path:		$PH_CONFIG_PATH
 "

Modified: pkg/libhdate/branches/upstream/current/docs/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/docs/Makefile.in Thu Jan 31 19:30:24 2008
@@ -129,12 +129,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -148,8 +153,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -178,7 +187,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/docs/man/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/Makefile.in Thu Jan 31 19:30:24 2008
@@ -129,12 +129,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -148,8 +153,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -178,7 +187,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/docs/man/man1/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man1/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man1/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man1/Makefile.in Thu Jan 31 19:30:24 2008
@@ -124,12 +124,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -143,8 +148,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -173,7 +182,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/Makefile.in Thu Jan 31 19:30:24 2008
@@ -124,12 +124,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -143,8 +148,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -173,7 +182,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.3?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.3 (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.3 Thu Jan 31 19:30:24 2008
@@ -1,4 +1,4 @@
-.TH "hdate" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
+.TH "hdate" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.h.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.h.3?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.h.3 (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/hdate.h.3 Thu Jan 31 19:30:24 2008
@@ -1,8 +1,8 @@
-.TH "src/hdate.h" 3 "4 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
+.TH "src/hdate.h" 3 "26 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME
-src/hdate.h \- 
+src/hdate.h \- libhdate C language header. 
 .SH SYNOPSIS
 .br
 .PP
@@ -12,24 +12,25 @@
 .ti -1c
 .RI "struct \fBhdate_struct\fP"
 .br
+.RI "\fIlibhdate Hebrew date struct \fP"
 .in -1c
 .SS "Defines"
 
 .in +1c
 .ti -1c
-.RI "#define \fBHDATA_DIASPORA_FLAG\fP   -1"
+.RI "#define \fBHDATE_DIASPORA_FLAG\fP   -1"
 .br
 .RI "\fIuse diaspora dates and holydays flag \fP"
 .ti -1c
-.RI "#define \fBHDATA_ISRAEL_FLAG\fP   0"
+.RI "#define \fBHDATE_ISRAEL_FLAG\fP   0"
 .br
 .RI "\fIuse israel dates and holydays flag \fP"
 .ti -1c
-.RI "#define \fBHDATA_SHORT_FLAG\fP   -1"
+.RI "#define \fBHDATE_SHORT_FLAG\fP   -1"
 .br
 .RI "\fIuse short strings flag \fP"
 .ti -1c
-.RI "#define \fBHDATA_LONG_FLAG\fP   0"
+.RI "#define \fBHDATE_LONG_FLAG\fP   0"
 .br
 .RI "\fIuse long strings flag \fP"
 .in -1c
@@ -197,21 +198,26 @@
 .br
 .RI "\fIname of translator \fP"
 .in -1c
+.SH "Detailed Description"
+.PP 
+libhdate C language header. 
+
+libhdate - Hebrew calendar library, the C language header file. 
 .SH "Define Documentation"
 .PP 
-.SS "#define HDATA_DIASPORA_FLAG   -1"
+.SS "#define HDATE_DIASPORA_FLAG   -1"
 .PP
 use diaspora dates and holydays flag 
 .PP
-.SS "#define HDATA_ISRAEL_FLAG   0"
+.SS "#define HDATE_ISRAEL_FLAG   0"
 .PP
 use israel dates and holydays flag 
 .PP
-.SS "#define HDATA_SHORT_FLAG   -1"
+.SS "#define HDATE_SHORT_FLAG   -1"
 .PP
 use short strings flag 
 .PP
-.SS "#define HDATA_LONG_FLAG   0"
+.SS "#define HDATE_LONG_FLAG   0"
 .PP
 use long strings flag 
 .PP
@@ -624,7 +630,28 @@
 .PP
 utc sun times for altitude at a gregorian date 
 .PP
-day this day of month  month this month  year this year  longitude longitude to use in calculations  latitude latitude to use in calculations  deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)  sunrise return the utc sunrise in minutes  sunset return the utc sunset in minutes 
+Returns the sunset and sunrise times in minutes from 00:00 (utc time) if sun altitude in sunrise is deg degries. This function only works for altitudes sun realy is. If the sun never get to this altitude, the returned sunset and sunrise values will be negative. This can happen in low altitude when latitude is nearing the pols in winter times, the sun never goes very high in the sky there.
+.PP
+\fBParameters:\fP
+.RS 4
+\fIday\fP this day of month 
+.br
+\fImonth\fP this month 
+.br
+\fIyear\fP this year 
+.br
+\fIlongitude\fP longitude to use in calculations 
+.br
+\fIlatitude\fP latitude to use in calculations 
+.br
+\fIdeg\fP degrees of sun's altitude (0 - Zenith .. 90 - Horizon) 
+.br
+\fIsunrise\fP return the utc sunrise in minutes 
+.br
+\fIsunset\fP return the utc sunset in minutes 
+.RE
+.PP
+
 .SS "void hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int * sunrise, int * sunset)"
 .PP
 utc sunrise/set time for a gregorian date 
@@ -651,7 +678,36 @@
 .PP
 utc sunrise/set time for a gregorian date 
 .PP
-day this day of month  month this month  year this year  longitude longitude to use in calculations  latitude latitude to use in calculations  sun_hour return the length of shaa zaminit in minutes  first_light return the utc alut ha-shachar in minutes  talit return the utc tphilin and talit in minutes  sunrise return the utc sunrise in minutes  midday return the utc midday in minutes  sunset return the utc sunset in minutes  first_stars return the utc tzeit hacochavim in minutes  three_stars return the utc shlosha cochavim in minutes 
+\fBParameters:\fP
+.RS 4
+\fIday\fP this day of month 
+.br
+\fImonth\fP this month 
+.br
+\fIyear\fP this year 
+.br
+\fIlongitude\fP longitude to use in calculations 
+.br
+\fIlatitude\fP latitude to use in calculations 
+.br
+\fIsun_hour\fP return the length of shaa zaminit in minutes 
+.br
+\fIfirst_light\fP return the utc alut ha-shachar in minutes 
+.br
+\fItalit\fP return the utc tphilin and talit in minutes 
+.br
+\fIsunrise\fP return the utc sunrise in minutes 
+.br
+\fImidday\fP return the utc midday in minutes 
+.br
+\fIsunset\fP return the utc sunset in minutes 
+.br
+\fIfirst_stars\fP return the utc tzeit hacochavim in minutes 
+.br
+\fIthree_stars\fP return the utc shlosha cochavim in minutes 
+.RE
+.PP
+
 .SS "int hdate_get_gday (\fBhdate_struct\fP const * h)"
 .PP
 get the Gregorian day of the month 

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_Hdate.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_Hdate.3?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_Hdate.3 (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_Hdate.3 Thu Jan 31 19:30:24 2008
@@ -1,4 +1,4 @@
-.TH "hdate::Hdate" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
+.TH "hdate::Hdate" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_struct.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_struct.3?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_struct.3 (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/hdate_struct.3 Thu Jan 31 19:30:24 2008
@@ -1,8 +1,10 @@
-.TH "hdate_struct" 3 "4 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
+.TH "hdate_struct" 3 "26 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME
-hdate_struct \- 
+hdate_struct \- libhdate Hebrew date struct  
+
+.PP
 .SH SYNOPSIS
 .br
 .PP
@@ -53,7 +55,7 @@
 .in -1c
 .SH "Detailed Description"
 .PP 
-Base structore for hebrew dates 
+libhdate Hebrew date struct 
 .SH "Field Documentation"
 .PP 
 .SS "int \fBhdate_struct::hd_day\fP"

Modified: pkg/libhdate/branches/upstream/current/docs/man/man3/hdatepp.h.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/docs/man/man3/hdatepp.h.3?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/docs/man/man3/hdatepp.h.3 (original)
+++ pkg/libhdate/branches/upstream/current/docs/man/man3/hdatepp.h.3 Thu Jan 31 19:30:24 2008
@@ -1,8 +1,8 @@
-.TH "src/hdatepp.h" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
+.TH "src/hdatepp.h" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME
-src/hdatepp.h \- 
+src/hdatepp.h \- libhdate C++ language header. 
 .SH SYNOPSIS
 .br
 .PP
@@ -24,6 +24,11 @@
 .br
 .RI "\fI\fBHdate\fP class. \fP"
 .in -1c
+.SH "Detailed Description"
+.PP 
+libhdate C++ language header. 
+
+libhdate - Hebrew calendar library, the C++ language header file. 
 .SH "Author"
 .PP 
 Generated automatically by Doxygen for libhdate C++ language from the source code.

Modified: pkg/libhdate/branches/upstream/current/examples/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/examples/Makefile.in Thu Jan 31 19:30:24 2008
@@ -129,12 +129,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -148,8 +153,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -178,7 +187,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.am?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.am (original)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,5 +1,6 @@
+SUBDIRS = pascal
 
-EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
+EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
 
 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
-libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
+libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php

Modified: pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/Makefile.in Thu Jan 31 19:30:24 2008
@@ -51,6 +51,12 @@
 CONFIG_CLEAN_FILES =
 SOURCES =
 DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+	html-recursive info-recursive install-data-recursive \
+	install-exec-recursive install-info-recursive \
+	install-recursive installcheck-recursive installdirs-recursive \
+	pdf-recursive ps-recursive uninstall-info-recursive \
+	uninstall-recursive
 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
 am__vpath_adj = case $$p in \
     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -60,6 +66,9 @@
 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
 DATA = $(libhdatedoc_DATA)
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 ACLOCAL = @ACLOCAL@
 AMDEP_FALSE = @AMDEP_FALSE@
@@ -130,12 +139,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -149,8 +163,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -179,7 +197,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@
@@ -205,10 +226,11 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
-EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
+SUBDIRS = pascal
+EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
-libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
-all: all-am
+libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_ruby.rb hdate_php.php
+all: all-recursive
 
 .SUFFIXES:
 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
@@ -267,12 +289,138 @@
 	  echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
 	  rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
 	done
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+#     (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+	@failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; \
+	if test "$$dot_seen" = "no"; then \
+	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+	fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+	@failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	case "$@" in \
+	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+	  *) list='$(SUBDIRS)' ;; \
+	esac; \
+	rev=''; for subdir in $$list; do \
+	  if test "$$subdir" = "."; then :; else \
+	    rev="$$subdir $$rev"; \
+	  fi; \
+	done; \
+	rev="$$rev ."; \
+	target=`echo $@ | sed s/-recursive//`; \
+	for subdir in $$rev; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done && test -z "$$fail"
+tags-recursive:
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+	done
+ctags-recursive:
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+	done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	mkid -fID $$unique
 tags: TAGS
-TAGS:
-
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+	  include_option=--etags-include; \
+	  empty_fix=.; \
+	else \
+	  include_option=--include; \
+	  empty_fix=; \
+	fi; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  if test "$$subdir" = .; then :; else \
+	    test ! -f $$subdir/TAGS || \
+	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+	  fi; \
+	done; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+	  test -n "$$unique" || unique=$$empty_fix; \
+	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	    $$tags $$unique; \
+	fi
 ctags: CTAGS
-CTAGS:
-
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+		$(TAGS_FILES) $(LISP)
+	tags=; \
+	here=`pwd`; \
+	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+	unique=`for i in $$list; do \
+	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+	  done | \
+	  $(AWK) '    { files[$$0] = 1; } \
+	       END { for (i in files) print i; }'`; \
+	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+	     $$tags $$unique
+
+GTAGS:
+	here=`$(am__cd) $(top_builddir) && pwd` \
+	  && cd $(top_srcdir) \
+	  && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
 
 distdir: $(DISTFILES)
 	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
@@ -301,22 +449,38 @@
 	    || exit 1; \
 	  fi; \
 	done
+	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+	  if test "$$subdir" = .; then :; else \
+	    test -d "$(distdir)/$$subdir" \
+	    || $(mkdir_p) "$(distdir)/$$subdir" \
+	    || exit 1; \
+	    distdir=`$(am__cd) $(distdir) && pwd`; \
+	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+	    (cd $$subdir && \
+	      $(MAKE) $(AM_MAKEFLAGS) \
+	        top_distdir="$$top_distdir" \
+	        distdir="$$distdir/$$subdir" \
+	        distdir) \
+	      || exit 1; \
+	  fi; \
+	done
 check-am: all-am
-check: check-am
+check: check-recursive
 all-am: Makefile $(DATA)
-installdirs:
+installdirs: installdirs-recursive
+installdirs-am:
 	for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
 	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
 	done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
 
 install-am: all-am
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
-installcheck: installcheck-am
+installcheck: installcheck-recursive
 install-strip:
 	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
@@ -332,21 +496,22 @@
 maintainer-clean-generic:
 	@echo "This command is intended for maintainers to use"
 	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
+clean: clean-recursive
 
 clean-am: clean-generic clean-libtool mostlyclean-am
 
-distclean: distclean-am
+distclean: distclean-recursive
 	-rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-libtool
-
-dvi: dvi-am
+distclean-am: clean-am distclean-generic distclean-libtool \
+	distclean-tags
+
+dvi: dvi-recursive
 
 dvi-am:
 
-html: html-am
-
-info: info-am
+html: html-recursive
+
+info: info-recursive
 
 info-am:
 
@@ -354,39 +519,44 @@
 
 install-exec-am:
 
-install-info: install-info-am
+install-info: install-info-recursive
 
 install-man:
 
 installcheck-am:
 
-maintainer-clean: maintainer-clean-am
+maintainer-clean: maintainer-clean-recursive
 	-rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 
-mostlyclean: mostlyclean-am
+mostlyclean: mostlyclean-recursive
 
 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
 
-pdf: pdf-am
+pdf: pdf-recursive
 
 pdf-am:
 
-ps: ps-am
+ps: ps-recursive
 
 ps-am:
 
 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
 
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-	distclean distclean-generic distclean-libtool distdir dvi \
-	dvi-am html html-am info info-am install install-am \
-	install-data install-data-am install-exec install-exec-am \
-	install-info install-info-am install-libhdatedocDATA \
-	install-man install-strip installcheck installcheck-am \
-	installdirs maintainer-clean maintainer-clean-generic \
-	mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
-	ps ps-am uninstall uninstall-am uninstall-info-am \
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
+	clean clean-generic clean-libtool clean-recursive ctags \
+	ctags-recursive distclean distclean-generic distclean-libtool \
+	distclean-recursive distclean-tags distdir dvi dvi-am html \
+	html-am info info-am install install-am install-data \
+	install-data-am install-exec install-exec-am install-info \
+	install-info-am install-libhdatedocDATA install-man \
+	install-strip installcheck installcheck-am installdirs \
+	installdirs-am maintainer-clean maintainer-clean-generic \
+	maintainer-clean-recursive mostlyclean mostlyclean-generic \
+	mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
+	tags tags-recursive uninstall uninstall-am uninstall-info-am \
 	uninstall-libhdatedocDATA
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.

Modified: pkg/libhdate/branches/upstream/current/examples/bindings/hdate_cpp.cpp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/hdate_cpp.cpp?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/hdate_cpp.cpp (original)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/hdate_cpp.cpp Thu Jan 31 19:30:24 2008
@@ -4,6 +4,23 @@
 
 //
 // compile: g++ -lm -lhdate -o hdate_cpp hdate_cpp.cpp
+//
+
+//
+//  Copyright (C) 2008  Yaacov Zamir <kzamir at walla.co.il>
+//  
+//  This program is free software: you can redistribute it and/or modify
+//  it under the terms of the GNU General Public License as published by
+//  the Free Software Foundation, either version 3 of the License, or
+//  (at your option) any later version.
+//
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  GNU General Public License for more details.
+//
+//  You should have received a copy of the GNU General Public License
+//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //
 
 #include <iostream>
@@ -19,12 +36,11 @@
 	Hdate h;
 
 	// print gregorian date
-	cout << "Today is :\n";
-	cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << "\n";
+	cout << "Today is :" << endl;
+	cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << endl;
 	
 	// print hebrew date: 0 - long format
-	cout << h.get_format_date (0);
-	cout << "\n";
+	cout << h.get_format_date (0) << endl;
 
 	return 0;
 }

Modified: pkg/libhdate/branches/upstream/current/examples/bindings/hdate_perl.pl
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/hdate_perl.pl?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/hdate_perl.pl (original)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/hdate_perl.pl Thu Jan 31 19:30:24 2008
@@ -1,4 +1,29 @@
 #! /usr/bin/perl
+
+# hdate_perl.pl
+# example file for libhdate.
+#
+
+#
+# run: perl hdate_perl.pl
+#
+
+#
+#  Copyright (C) 2008  Yaacov Zamir <kzamir at walla.co.il>
+#  
+#  This program is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation, either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
 
 # Use the hdate perl module
 use hdate;

Added: pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php Thu Jan 31 19:30:24 2008
@@ -1,0 +1,39 @@
+#! /usr/bin/php
+<?php
+
+# hdate_php.php
+# example file for libhdate.
+#
+
+#
+# run: php hdate_php.php
+#
+
+#
+#  Copyright (C) 2008  Yaacov Zamir <kzamir at walla.co.il>
+#  
+#  This program is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation, either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+# Create a new Hdate object
+$h = new_Hdate();
+
+# Print gregorian date
+echo "Today is:\n";
+echo Hdate_get_gday($h).".".Hdate_get_gmonth($h).",".Hdate_get_gyear($h)."\n";
+
+# Print hebrew date: 0 - long format
+echo Hdate_get_format_date($h, 0)."\n";
+
+?>

Modified: pkg/libhdate/branches/upstream/current/examples/bindings/hdate_python.py
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/hdate_python.py?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/hdate_python.py (original)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/hdate_python.py Thu Jan 31 19:30:24 2008
@@ -1,14 +1,43 @@
 #! /usr/bin/python
 
+# hdate_python.py
+# example file for libhdate.
+#
+
+#
+# run: python hdate_python.py
+#
+
+#
+#  Copyright (C) 2008  Yaacov Zamir <kzamir at walla.co.il>
+#  
+#  This program is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation, either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+# Use locale to support hdate localization
+import locale
+locale.setlocale(locale.LC_ALL,'')
+        
 # Import the hdate library
 from hdate import *;
 
 # Create a new Hdate object
-h = Hdate();
+h = Hdate ();
 
 # Print gregorian date
 print "Today is:"
-print str (h.get_gday ()) + "," + str (h.get_gmonth()) + "," + str (h.get_gyear ())
+print str (h.get_gday ()) + "," + str (h.get_gmonth ()) + "," + str (h.get_gyear ())
 
 # Print hebrew date: 0 - long format
 print h.get_format_date (0);

Added: pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb Thu Jan 31 19:30:24 2008
@@ -1,0 +1,39 @@
+#! /usr/bin/ruby
+
+# hdate_ruby.rb
+# example file for libhdate.
+#
+
+#
+# run: ruby hdate_ruby.rb
+#
+
+#
+#  Copyright (C) 2008  Yaacov Zamir <kzamir at walla.co.il>
+#  
+#  This program is free software: you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation, either version 3 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+# Import the hdate library
+require 'hdate'
+
+# Create a new Hdate object
+h = Hdate::Hdate.new
+
+# Print gregorian date
+puts "Today is:"
+puts "#{h.get_gday()},#{h.get_gmonth()},#{h.get_gyear()}"
+
+# Print hebrew date: 0 - long format
+puts h.get_format_date(0);

Added: pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.am?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.am (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.am Thu Jan 31 19:30:24 2008
@@ -1,0 +1,4 @@
+EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
+
+libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
+libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp

Added: pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.in?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.in (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/pascal/Makefile.in Thu Jan 31 19:30:24 2008
@@ -1,0 +1,406 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = examples/bindings/pascal
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
+	$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
+	$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
+	$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
+	$(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
+	$(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
+libhdatedocDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(libhdatedoc_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DATADIRNAME = @DATADIRNAME@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GREP = @GREP@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+MAKEINFO = @MAKEINFO@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_MODULES_PATH = @PA_MODULES_PATH@
+PA_VERSION = @PA_VERSION@
+PE_CFLAGS = @PE_CFLAGS@
+PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+PY_CFLAGS = @PY_CFLAGS@
+PY_MODULES_PATH = @PY_MODULES_PATH@
+PY_VERSION = @PY_VERSION@
+RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+VERSION_INFO = @VERSION_INFO@
+WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
+WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
+WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
+WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
+WITH_PERL_FALSE = @WITH_PERL_FALSE@
+WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
+WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
+WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+have_pascal = @have_pascal@
+have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
+have_python = @have_python@
+have_ruby = @have_ruby@
+have_swig = @have_swig@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+EXTRA_DIST = hdate_class.pp hdate_obj.pp hdate_pascal.pp
+libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings/pascal
+libhdatedoc_DATA = hdate_class.pp hdate_obj.pp hdate_pascal.pp
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  examples/bindings/pascal/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  examples/bindings/pascal/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+install-libhdatedocDATA: $(libhdatedoc_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
+	@list='$(libhdatedoc_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
+	  $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
+	done
+
+uninstall-libhdatedocDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(libhdatedoc_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
+	done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+	for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
+	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-libhdatedocDATA
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-exec install-exec-am \
+	install-info install-info-am install-libhdatedocDATA \
+	install-man install-strip installcheck installcheck-am \
+	installdirs maintainer-clean maintainer-clean-generic \
+	mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+	ps ps-am uninstall uninstall-am uninstall-info-am \
+	uninstall-libhdatedocDATA
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Added: pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_class.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_class.pp?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_class.pp (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_class.pp Thu Jan 31 19:30:24 2008
@@ -1,0 +1,497 @@
+
+{
+This unit create a Pascal object oriented class for libhdate.
+This unit is created as a true object oriented class.
+
+   Copyright  2005-2008       Ido Kanner <idokan at gmail.com>
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+History:
+       25/01/2008 - Added support for newer API of hdate
+       12/01/2008 - Added support for dynamic linking
+    19-21/05/2005 - Initial creation
+
+ }
+{$IFDEF FPC}
+  {$MODE OBJFPC} {$H+}
+  {.$DEFINE STATIC_LINK}
+{$ELSE}
+  {$Warning 'This code was tested with Free Pascal Only.'}
+{$ENDIF}
+
+
+Unit hdate_class;
+
+Interface
+
+Uses {$IFDEF STATIC_LINK} hdate {$ELSE} hdate_dyn_pascal {$ENDIF}, SysUtils;
+
+Type
+
+  { THdateClass }
+  { A class that handle libhdate in the spirit of Object Pascal }
+  THdateClass = Class
+  Private
+    fh           : Phdate_struct;
+    FToDestroy   : Boolean;
+    fJulianDay   : LongInt;
+    fDiaspora    : Boolean;
+    fHolyday,
+    fHolydayType : LongInt;
+    fParasha     : LongInt;
+    fHebrewDay,
+    fHebrewYear  : String;
+
+    Procedure InitValue;
+
+    Procedure SetHebDay    (Value : LongInt);
+    Procedure SetGregDay   (Value : LongInt);
+    Procedure SetJulianDay (Value : LongInt);
+    Procedure SetHebMonth  (Value : LongInt);
+    Procedure SetGregMonth (Value : LongInt);
+    Procedure SetGregYear  (Value : LongInt);
+    Procedure SetHebYear   (Value : LongInt);
+    Procedure SetDiaspora  (Value : Boolean);
+
+    Function GetGregDay   : LongInt;
+    Function GetGregMonth : LongInt;
+    Function GetGregYear  : LongInt;
+    Function GetHebDay    : LongInt;
+    Function GetHebMonth  : LongInt;
+    Function GetHebYear   : LongInt;
+  Public
+    constructor Create;                             virtual; overload;
+    constructor Create  (hDateRec : Phdate_struct); virtual; overload;
+    destructor Destroy;                             override;
+
+    { Assign an existed class of THdateClass propetires into the corrent class }
+    Procedure Assign    (Source : THdateClass);     virtual;
+
+    { Returns a string with formated date according with readable date of s }
+    Function get_format_date              (s : LongInt)                                 : String;
+    { Returns the name of day in a week }
+    Function get_day_of_week_string       (s : LongInt)                                 : String;
+    { Returns the name of the month }
+    Function get_month_string             (s : LongInt)                                 : String;
+    { Returns a name of the Hebrew month }
+    Function get_hebrew_month_string      (s : LongInt)                                 : String;
+    { Returnss the name of a Hebrew holyday }
+    Function get_holyday_string           (s : LongInt)                                 : String;
+    { Returns the week of the Paragrph that needed to read "Parashat Hashavua" }
+    Function get_parasha_string           (s : LongInt)                                 : String;
+    { Returns the day of the week }
+    Function GetDayOfWeek                                                               : LongInt;
+    { Returns the size of the Hebrew year }
+    Function get_size_of_year                                                           : LongInt;
+    { Returns the day remains until a new Hebrew year starts }
+    Function get_new_year_day_of_the_week                                               : LongInt;
+    { Returns the number of days passed since the begining of the Hebrew year }
+    Function get_days                                                                   : LongInt;
+    { Returns the number of weeks passed since the begining of the Hebrew year }
+    Function get_weeks                                                                  : LongInt;
+    { Returns the sunrise in a given Latitude, Longitude and a timezone }
+    Function get_sunrise                   (latitude, longitude : Double; tz : LongInt) : LongInt;
+    { Returns the sunet in a given Latitude, Longitude and a timezone }
+    Function get_sunset                    (latitude, longitude : Double; tz : LongInt) : LongInt;
+    { Returns the sunrise in a given day, Latitude, Longitude and a Degree }
+    function get_deg_sunrise               (Date : TDateTime;
+                                            latitude, longitude, deg : Double)          : Longint;
+    { Returns the sunet in a given day, Latitude, Longitude and a Degree }
+    function get_deg_sunset                (Date : TDateTime;
+                                            latitude, longitude, deg : Double)          : Longint;
+    { Returns the Sha'a zmanit (temporary time) at a given date, Latitude and Longitude }
+    function get_temporary_time            (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes of first light at a given date, Latitude and Longitude }
+    function get_first_light               (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes to give a prayer (placing Tfiling and Talit) at a given date, Latitude and Longitude }
+    function get_prayer_time               (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes of a sunrise at a given date, Latitude and Longitude }
+    function get_time_full_sunrise         (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes of the midday at a given date, Latitude and Longitude }
+    function get_time_full_midday          (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes of a sunet at a given date, Latitude and Longitude }
+    function get_time_full_sunset          (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes to when the first star is showen at a given date, Latitude and Longitude }
+    function get_time_full_first_stars     (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+    { Returns the minutes to when three stars are showen at a given date, Latitude and Longitude }
+    function get_time_full_three_stars     (Date : TDateTime;
+                                            latitude, longitude : Double)               : Longint;
+
+    { Get The number of days passed since the beginig of the Hebrew year }
+    property Days             : LongInt  read get_days;
+    { Get The day of the week }
+    property DayOfWeek        : LongInt  read GetDayOfWeek;
+    { Get The Hebrew day }
+    property HebrewDay        : String   read fHebrewDay;
+    { Get The Hebrew year }
+    property HebrewYear       : String   read fHebrewYear;
+    { Get The Hebrew Holyday }
+    property Holyday          : LongInt  read fHolyday;
+    { Get The type of the Hebrew Holyday }
+    property HolydayType      : LongInt  read fHolydayType;
+    { Get The number of days to the next year }
+    property NewYearDayOfWeek : LongInt  read get_new_year_day_of_the_week;
+    { Get The week parahraph that needed to be read (Parashat Ha'Shavua) }
+    property Parasha          : LongInt  read fParasha;
+    { Get The number of weeks that passed since the end of the year }
+    property Weeks            : LongInt  read get_weeks;
+    { Get The size of the the year }
+    property YearSize         : Longint  read get_size_of_year;
+  Published
+    { Get/Set The Hebrew day }
+    property HebDay           : LongInt  read GetHebDay     write SetHebDay;
+    { Get/Set The Gregorian day }
+    property GregDay          : LongInt  read GetGregDay    write SetGregDay;
+    { Get/Set Set wether we are in Israel or not }
+    property Diaspora         : Boolean  read fDiaspora     write SetDiaspora    default True;
+    { Get/Set The Julian day }
+    property JulianDay        : LongInt  read fJulianDay    write SetJulianDay;
+    { Get/Set The Hebrew Month }
+    property HebMonth         : LongInt  read GetHebMonth   write SetHebMonth;
+    { Get/Set The Gregorian month }
+    property GregMonth        : LongInt  read GetGregMonth  write SetGregMonth;
+    { Get/Set To Destroy the hdate record pointer, or the destruction will be made outside the record }
+    property ToDestroy        : Boolean  read FToDestroy    write fToDestroy     default True;
+    { Get/Set The gregorian year }
+    property GregYear         : LongInt  read GetGregYear   write SetGregYear;
+    { Get/Set The Hebrew year }
+    property HebYear          : LongInt  read GetHebYear    write SetHebYear;
+  End;
+
+Implementation
+
+Procedure THdateClass.InitValue;
+Var
+  ADay, AMonth, AYear : Word;
+Begin
+  DecodeDate(SysUtils.Now, AYear, AMonth, ADay);
+  hdate_set_gdate (Fh, ADay, AMonth, AYear);
+  hdate_set_hdate (fh, hdate_get_hday (fh), hdate_get_hmonth (fh), hdate_get_hyear (fh));
+
+  fHebrewDay  := StrPas (hdate_get_int_string (fh^.hd_day));
+  fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
+
+  SetJulianDay (hdate_gdate_to_jd (ADay, AMonth, AYear));
+  SetDiaspora  (True);
+End;
+
+constructor THdateClass.Create;
+Begin
+  fh         := Nil;
+  fh         := new_hdate();
+  fToDestroy := True;
+  InitValue;
+End;
+
+constructor THdateClass.Create (hDateRec : Phdate_struct);
+Begin
+  fh         := hDateRec;
+  fToDestroy := False;
+  InitValue;
+End;
+
+destructor THdateClass.Destroy;
+Begin
+  If fToDestroy Then
+    delete_hdate (fh);
+
+  inherited;
+End;
+
+Procedure THdateClass.SetHebDay (Value : LongInt);
+Begin
+  hdate_set_hdate (Fh, Value, GetHebMonth, GetHebYear);
+  fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
+End;
+
+Procedure THdateClass.SetGregDay (Value : LongInt);
+Begin
+  hdate_set_gdate (fh, Value, GetGregMonth, GetGregYear);
+End;
+
+Procedure THdateClass.SetJulianDay (Value : LongInt);
+Begin
+  fJulianDay := Value;
+  hdate_set_jd (fh, fJulianDay);
+End;
+
+Procedure THdateClass.SetHebMonth (Value : LongInt);
+Begin
+  hdate_set_hdate (Fh, GetHebDay, Value, GetHebYear);
+End;
+
+Procedure THdateClass.SetGregMonth (Value : LongInt);
+Begin
+  hdate_set_gdate (fh, GetGregDay, Value, GetGregYear);
+End;
+
+Procedure THdateClass.SetHebYear (Value : LongInt);
+Begin
+  hdate_set_hdate (fh, GetHebDay, GetGregMonth, Value);
+  fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
+End;
+
+Procedure THdateClass.SetGregYear (Value : LongInt);
+Begin
+  hdate_set_gdate (fh, GetGregDay, GetGregMonth, Value);
+End;
+
+Procedure THdateClass.SetDiaspora  (Value : Boolean);
+Begin
+  fDiaspora    := Value;
+  fHolyday     := hdate_get_holyday      (fh, Longint(FDiaspora));
+  fHolydayType := hdate_get_holyday_type (fHolyday);
+  fParasha     := hdate_get_parasha      (fh, Longint(fDiaspora));
+End;
+
+Function THdateClass.GetGregDay : LongInt;
+Begin
+  Result := hdate_get_gday (fh);
+End;
+
+Function THdateClass.GetGregMonth : LongInt;
+Begin
+  Result := hdate_get_gmonth (fh);
+End;
+
+Function THdateClass.GetGregYear  : LongInt;
+Begin
+  Result := hdate_get_gyear (fh);
+End;
+
+Function THdateClass.GetHebDay : LongInt;
+Begin
+  Result := hdate_get_hday (fh);
+End;
+
+Function THdateClass.GetHebMonth : LongInt;
+Begin
+  Result := hdate_get_hmonth (fh);
+End;
+
+Function THdateClass.GetHebYear : LongInt;
+Begin
+  Result := hdate_get_hyear (fh);
+End;
+
+Procedure THdateClass.Assign (Source : THdateClass);
+Begin
+  If (Not Assigned(Source)) Then
+    Begin
+      raise Exception.Create ('Source is not allocated.');
+    End;
+
+  // Should never happned ... but just in case...
+  Assert (Assigned(Source), 'Source is not allocated.');
+
+  fToDestroy := Source.ToDestroy;
+  HebDay     := Source.HebDay;
+  GregDay    := Source.GregDay;
+  HebMonth   := Source.HebMonth;
+  GregMonth  := Source.GregMonth;
+  HebYear    := Source.HebYear;
+  GregYear   := Source.GregYear;
+
+  SetJulianDay (Source.JulianDay);
+  SetDiaspora  (Source.Diaspora);
+End;
+
+Function THdateClass.get_format_date (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_format_date (fh, Longint(fDiaspora), s));
+End;
+
+Function THdateClass.get_day_of_week_string (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_day_string (fh^.hd_dw, s));
+End;
+
+Function THdateClass.get_month_string (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_month_string (fh^.gd_mon, s));
+End;
+
+Function THdateClass.get_hebrew_month_string (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_hebrew_month_string (fh^.hd_mon, s));
+End;
+
+Function THdateClass.get_holyday_string (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_holyday_string (fHolyday, s));
+End;
+
+Function THdateClass.get_parasha_string (s : LongInt) : String;
+Begin
+  Result := StrPas (hdate_get_parasha_string (fParasha, s));
+End;
+
+Function THdateClass.GetDayOfWeek : LongInt;
+Begin
+  Result := hdate_get_day_of_the_week (fh);
+End;
+
+Function THdateClass.get_size_of_year : LongInt;
+Begin
+  Result := hdate_get_size_of_year (fh);
+End;
+
+Function THdateClass.get_new_year_day_of_the_week : LongInt;
+Begin
+  Result := hdate_get_new_year_day_of_the_week (fh);
+End;
+
+Function THdateClass.get_days : LongInt;
+Begin
+  Result := hdate_get_days (fh);
+End;
+
+Function THdateClass.get_weeks : LongInt;
+Begin
+  Result := hdate_get_weeks (fh);
+End;
+
+Function THdateClass.get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
+Var
+  sunrise,
+  sunset   : LongInt;
+Begin
+  hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
+  Result := sunrise + tz * 60;
+End;
+
+Function THdateClass.get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
+Var
+  sunrise,
+  sunset   : LongInt;
+Begin
+  hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
+  Result := sunset + tz * 60;
+End;
+
+type
+  TSun_Time_Deg_Type = (stdtSunrise, stdtSunset);
+
+Function get_sun_time_deg(Date : TDateTime; latitude,longitude,deg : Double; Return_Type :
+                          TSun_Time_Deg_Type) : Longint;
+var
+  Year,
+  Month,
+  Day      : word;
+  sunrise,
+  sunset   : Longint;
+begin
+  DecodeDate (Date, Year, Month, Day);
+  hdate_get_utc_sun_time_deg(Day, Month, Year, latitude, longitude, deg, @sunrise, @sunset);
+  case Return_Type of
+    stdtSunrise : Result := sunrise;
+    stdtSunset  : Result := sunset;
+  end;
+end;
+
+function THdateClass.get_deg_sunrise ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
+begin
+  Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunrise);
+end;
+
+function THdateClass.get_deg_sunset ( Date : TDateTime; latitude,longitude,deg : Double ) : Longint;
+begin
+   Result := get_sun_time_deg(Date, latitude, longitude, deg, stdtSunset);
+end;
+
+type
+  TSun_time_full_type = (stftTemporaryTime, stftFirstLight, stftPrayerTime,
+                         stftSunrise, stftMidday, stftSunset, stftFirstStars,
+                         stftThreeStars);
+
+Function get_sun_time_full_type(Date : TDateTime; latitude,longitude : Double; Return_Type :
+                                TSun_time_full_type) : Longint;
+var
+  Year,
+  Month,
+  Day          : word;
+  sun_hour,
+  first_light,
+  talit,
+  sunrise,
+  midday,
+  sunset,
+  first_stars,
+  three_stars  : Longint;
+begin
+  DecodeDate (Date, Year, Month, Day);
+  hdate_get_utc_sun_time_full(Day, Month, Year, latitude, longitude, @sun_hour, @first_light, @talit,
+                              @sunrise, @midday, @sunset, @first_stars, @three_stars);
+  case Return_Type of
+     stftTemporaryTime : Result := sun_hour;
+     stftFirstLight    : Result := first_light;
+     stftPrayerTime    : Result := talit;
+     stftSunrise       : Result := sunrise;
+     stftMidday        : Result := midday;
+     stftSunset        : Result := sunset;
+     stftFirstStars    : Result := first_stars;
+     stftThreeStars    : Result := three_stars;
+  end;
+end;
+
+function THdateClass.get_temporary_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftTemporaryTime);
+end;
+
+function THdateClass.get_first_light ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstLight);
+end;
+
+function THdateClass.get_prayer_time ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftPrayerTime);
+end;
+
+function THdateClass.get_time_full_sunrise ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftSunrise);
+end;
+
+function THdateClass.get_time_full_midday ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+ Result := get_sun_time_full_type(Date, latitude,longitude, stftMidday);
+end;
+
+function THdateClass.get_time_full_sunset ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftSunset);
+end;
+
+function THdateClass.get_time_full_first_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftFirstStars);
+end;
+
+function THdateClass.get_time_full_three_stars ( Date : TDateTime; latitude,longitude : Double ) : Longint;
+begin
+  Result := get_sun_time_full_type(Date, latitude,longitude, stftThreeStars);
+end;
+
+End.
+

Added: pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_obj.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_obj.pp?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_obj.pp (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_obj.pp Thu Jan 31 19:30:24 2008
@@ -1,0 +1,450 @@
+{  libhdate
+   Copyright  2004-2005  Yaacov Zamir <kzamir at walla.co.il>
+	 Copyright  2005       Ido Kanner <idokan at gmail.com>
+   
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+ 
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU Library General Public License for more details.
+ 
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+	 
+History:
+  11/10/2005 - Initial Translation of version 0.31.0
+}
+
+{$MODE OBJFPC}
+unit hdate_obj;
+
+interface
+uses cTypes, hDate, SysUtils;
+
+type
+	THdate = class
+	private
+	  h : Phdate_struct;
+	public
+	  constructor Create;   virtual;
+	  destructor  Destroy;  override;
+	  ////////////////////////////////////////
+		////////////////////////////////////////
+		
+		(**
+		 @brief compute date structure from the Gregorian date
+		
+		 @param d Day of month 1..31
+		 @param m Month 1..12 ,  if m or d is 0 return current date.
+		 @param y Year in 4 digits e.g. 2001
+		 *)
+		procedure set_gdate (d, m, y : cInt);
+		
+		(**
+		 @brief compute date structure from the Hebrew date
+		
+		 @param d Day of month 1..31
+		 @param m Month 1..14 ,  if m or d is 0 return current date.
+		 @param y Year in 4 digits e.g. 5731
+		 *)
+		procedure set_hdate (d, m, y : cInt);
+		
+		(**
+		 @brief compute date structure from the Julian day
+		
+		 @param jd the julian day number.
+		 *)
+		 procedure set_jd (jd : cInt);
+		
+		////////////////////////////////////////
+		////////////////////////////////////////
+		
+		(**
+		 @brief get formated hebrew date.
+		
+		 return the short ( e.g. "1 Tishrey" ) or 
+		 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
+		
+		 @param diaspora if true give diaspora holydays.
+		 @param s short flag.
+		 @return a static string of foramted date
+		*)
+		function get_format_date (diaspora, s : cInt) : String;
+		
+		(**
+		 @brief get name of week day.
+		
+		 @param s short flag 
+		   true - returns a short string: sun, false returns: sunday.
+		 @return a static string of the day of the week
+		*)
+		function get_day_of_week_string (s : cInt) : String;
+		
+		(**
+		 @brief get name month.
+		
+		 @param s short flag 
+		   true - returns a short string: Mar, false returns: March.
+		 @return a static string of month name
+		*)
+		function get_month_string (s : cInt) : String;
+		
+		(**
+		 @brief get name hebrew month.
+		
+		 @param s short flag 
+		   true - returns a short string.
+		 @return a static string of hebrew month name
+		*)
+		function get_hebrew_month_string (s : cInt) : String;
+		
+		(**
+		 @brief get name hebrew holiday.
+		
+		 @param s short flag 
+		   true - returns a short string.
+		 @return a static string of hebrew holiday name
+		*)
+		function get_holyday_string (diaspora, s : cInt) : String;
+		
+		(**
+		 @brief get the hebrew holiday type.
+		
+		 @return the holiday type 
+			(1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
+		*)
+		function get_holyday_type (diaspora : cInt) : cInt;
+		
+		(**
+		 @brief get name hebrew parasha.
+		
+		 @param diaspora if true give diaspora parashot.
+		 @param s short flag 
+		   true - returns a short string.
+		 @return a static string of hebrew parash name
+		*)
+		function get_parasha_string (diaspora, s : cInt) : String;
+		
+		(**
+		 @brief get name hebrew year.
+		
+		 @return a static string of hebrew year
+		*)
+		function get_hebrew_year_string : String;
+		
+		(**
+		 @brief get name hebrew hebrew day of the month
+		
+		 @return a static string of hebrew day of the month
+		*)
+		function get_hebrew_day_string : String;
+		
+		////////////////////////////////////////
+		////////////////////////////////////////
+		
+		(**
+		 @brief get parash number
+		
+		 @param diaspora if true give diaspora parashot.
+		 @return the hebrew parasha number
+		*)
+		function get_parasha (diaspora : cInt) : cInt;
+		
+		(**
+		 @brief get holiday number
+		
+		 @param diaspora if true give diaspora holidays.
+		 @return the hebrew holiday number
+		*)
+		function get_holyday (diaspora : cInt) : cInt;
+		
+		(**
+		 @brief get Gregorian day of the month
+		
+		 @return the Gregorian day of the month
+		*)
+		function get_gday : cInt;
+		
+		(**
+		 @brief get Gregorian month
+		
+		 @return the Gregorian month
+		*)
+		function get_gmonth : cInt;
+		
+		(**
+		 @brief get Gregorian year
+		
+		 @return the Gregorian year
+		*)
+		function get_gyear : cInt;
+		
+		(**
+		 @brief get Hebrew day of the month
+		
+		 @return the Hebrew day of the month
+		*)
+		function get_hday : cInt;
+		
+		(**
+		 @brief get Hebrew month
+		
+		 @return the Hebrew month
+		*)
+		function get_hmonth : cInt;
+		
+		(**
+		 @brief get Hebrew year
+		
+		 @return the Hebrew year
+		*)
+		function get_hyear : cInt;
+		
+		(**
+		 @brief get the day of the week
+		
+		 @return the day of the week
+		*)
+		function get_day_of_the_week : cInt;
+		
+		(**
+		 @brief get the size of the Hebrew year in days
+		
+		 @return the size of the Hebrew year in days
+		*)
+		function get_size_of_year : cInt;
+		
+		(**
+		 @brief get the day of the week of hebrew new years
+		
+		 @return the day of the week of hebrew new years
+		*)
+		function get_new_year_day_of_the_week : cInt;
+		
+		(**
+		 @brief get the Julian day number
+		
+		 @return the Julian day number
+		*)
+		function get_julian : cInt;
+		
+		(**
+		 @brief get the number of days sice Tishrey I
+		
+		 @return the the number of days sice Tishrey I
+		*)
+		function get_days : cInt;
+		
+		(**
+		 @brief get the number of weeks sice Tishrey I
+		
+		 @return the the number of weeks sice Tishrey I
+		*)
+		function get_weeks : cInt;
+		
+		////////////////////////////////////////
+		////////////////////////////////////////
+		
+		(**
+		 @brief sunrise time
+		
+		 @param longitude longitude to use in calculations
+			degrees, negative values are east
+		 @param latitude latitude to use in calculations
+			degrees, negative values are south
+		 @param tz time zone
+		 @return sunrise in minutes after midnight (00:00)
+		 *)
+		 function get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
+		
+		(**
+		 @brief sunset time
+		
+		 @param longitude longitude to use in calculations
+			degrees, negative values are east
+		 @param latitude latitude to use in calculations
+			degrees, negative values are south
+		 @param tz time zone
+		 @return sunset in minutes after midnight (00:00)
+		 *)
+		 function get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
+	end;
+
+implementation
+
+constructor THdate.Create;
+begin
+	h := new_hdate;
+end;
+
+destructor THdate.Destroy;
+begin
+	delete_hdate(h);
+  inherited Destroy;
+end;
+
+procedure THdate.set_gdate (d, m, y : cInt);
+begin
+	hdate_set_gdate (h, d, m, y);
+end;
+
+procedure THdate.set_hdate (d, m, y : cInt);
+begin
+  hdate_set_hdate (h, d, m, y);
+end;
+
+procedure THdate.set_jd (jd : cInt);
+begin
+	hdate_set_jd (h, jd);
+end;
+
+function THdate.get_format_date (diaspora, s : cInt) : String;
+begin
+	Result := StrPas (hdate_get_format_date (h, diaspora, s));
+end;
+
+function THdate.get_day_of_week_string (s : cInt) : String;
+begin
+	Result := StrPas (hdate_get_day_string (h^.hd_dw, s));
+end;
+
+function THdate.get_month_string (s : cInt) : String;
+begin
+	Result := StrPas (hdate_get_month_string (h^.gd_mon, s));
+end;
+
+function THdate.get_hebrew_month_string (s : cInt) : String;
+begin
+	Result := StrPas (hdate_get_hebrew_month_string (h^.hd_mon, s));
+end;
+
+function THdate.get_holyday_string (diaspora, s : cInt) : String;
+var
+  holyday : cInt;
+begin
+	holyday := hdate_get_holyday (h, diaspora);
+  Result  := StrPas (hdate_get_holyday_string (holyday, s));
+end;
+
+function THdate.get_holyday_type (diaspora : cInt) : cInt;
+var
+ holyday : cInt;
+begin
+	holyday := hdate_get_holyday (h, diaspora);
+	Result  := hdate_get_holyday_type (holyday);
+end;
+
+function THdate.get_parasha_string (diaspora, s : cInt) : String;
+var
+ parasha : cInt;
+begin
+	parasha := hdate_get_parasha (h, diaspora);
+	Result  := StrPas (hdate_get_parasha_string (parasha, s));
+end;
+
+function THdate.get_hebrew_year_string : String;
+begin
+	Result := StrPas (hdate_get_int_string (h^.hd_year));
+end;
+
+function THdate.get_hebrew_day_string : String;
+begin
+	Result := StrPas (hdate_get_int_string (h^.hd_day));
+end;
+
+function THdate.get_parasha (diaspora : cInt) : cInt;
+begin
+	Result := hdate_get_parasha (h, diaspora);
+end;
+
+function THdate.get_holyday (diaspora : cInt) : cInt;
+begin
+	Result := hdate_get_holyday (h, diaspora);
+end;
+
+function THdate.get_gday : cInt;
+begin
+	Result := hdate_get_gday (h);
+end;
+
+function THdate.get_gmonth : cInt;
+begin
+	Result := hdate_get_gmonth (h);
+end;
+
+function THdate.get_gyear : cInt;
+begin
+	Result := hdate_get_gyear (h);
+end;
+
+function THdate.get_hday : cInt;
+begin
+	Result := hdate_get_hday (h);
+end;
+
+function THdate.get_hmonth : cInt;
+begin
+	Result := hdate_get_hmonth (h);
+end;
+
+function THdate.get_hyear : cInt;
+begin
+	Result :=hdate_get_hyear (h);
+end;
+
+function THdate.get_day_of_the_week : cInt;
+begin
+	Result := hdate_get_day_of_the_week (h);
+end;
+
+function THdate.get_size_of_year : cInt;
+begin
+	Result := hdate_get_size_of_year (h);
+end;
+
+function THdate.get_new_year_day_of_the_week : cInt;
+begin
+	Result := hdate_get_new_year_day_of_the_week (h);
+end;
+
+function THdate.get_julian : cInt;
+begin
+	Result := hdate_get_julian (h);
+end;
+
+function THdate.get_days : cInt;
+begin
+	Result := hdate_get_days (h);
+end;
+
+function THdate.get_weeks : cInt;
+begin
+	Result := hdate_get_weeks (h);
+end;
+
+function THdate.get_sunrise (latitude, longitude : cDouble; tz : cInt) : cInt;
+var
+ sunrise,
+ sunset   : cInt;
+begin
+	hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
+	
+	Result := sunrise + tz * 60;
+end;
+
+function THdate.get_sunset (latitude, longitude : cDouble; tz : cInt) : cInt;
+var
+ sunrise,
+ sunset   : cInt;
+begin
+	hdate_get_utc_sun_time (h^.gd_day, h^.gd_mon, h^.gd_year, latitude, longitude, @sunrise, @sunset);
+	
+	Result := sunset + tz * 60;
+end;
+
+end.

Added: pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_pascal.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_pascal.pp?rev=726&op=file
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_pascal.pp (added)
+++ pkg/libhdate/branches/upstream/current/examples/bindings/pascal/hdate_pascal.pp Thu Jan 31 19:30:24 2008
@@ -1,0 +1,151 @@
+(* hdate_pascal.pp
+   example file for libhdate.
+
+   compile: fpc hdate_pascal.pp
+    
+   Copyright (C) 2005-2008  Ido Kaner
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*)
+
+{$MODE OBJFPC} {$H+}
+{$IFDEF MSWINDOWS}
+  {$APPTYPE CONSOLE} //Make sure that in Windows we will be in a console mode
+{$ENDIF}
+program hdate_demo;
+uses hdate_class, SysUtils, DateUtils;
+
+type
+  { A record to store city information regarding the Latitude, Longitude and it's name }
+  TCityDetauls = record
+                  { The latitude of a given city}
+                  Latitude  : Double;
+                  { The longitude of a given city}
+                  Longitude : Double;
+                  { The name of a city}
+                  Name      : ShortString;
+                 end;
+
+// Latitude and Longitude where Taken from from http://wwp.greenwichmeantime.com/time-zone/asia/israel/cities.htm
+const
+  { The cities in Israel that we have information regarding the Latitude and Longitude }
+  Cities : array[0..19] of TCityDetauls =
+    (
+{ 00 }  ( Latitude : 31.78;  Longitude : -35.22;  Name : 'Jerusalem'     ),
+{ 01 }  ( Latitude : 32.07;  Longitude : -34.77;  Name : 'Tel Aviv-Jafa' ),
+{ 02 }  ( Latitude : 32.82;  Longitude : -34.99;  Name : 'Hifa'          ),
+{ 03 }  ( Latitude : 31.96;  Longitude : -34.80;  Name : 'Rishon Lezion' ),
+{ 04 }  ( Latitude : 31.80;  Longitude : -34.64;  Name : 'Ashdod'        ),
+{ 05 }  ( Latitude : 31.25;  Longitude : -34.80;  Name : 'Be''er Sheva'  ),
+{ 06 }  ( Latitude : 32.09;  Longitude : -34.88;  Name : 'Petach Tiqva'  ),
+{ 07 }  ( Latitude : 32.33;  Longitude : -34.86;  Name : 'Netanya'       ),
+{ 08 }  ( Latitude : 32.02;  Longitude : -34.76;  Name : 'Holon'         ),
+{ 09 }  ( Latitude : 32.09;  Longitude : -34.85;  Name : 'B''ene Beraq'  ),
+{ 10 }  ( Latitude : 32.02;  Longitude : -34.75;  Name : 'Bat Yam'       ),
+{ 11 }  ( Latitude : 32.08;  Longitude : -34.80;  Name : 'Ramat Gan'     ),
+{ 12 }  ( Latitude : 31.67;  Longitude : -34.56;  Name : 'Ashqelon'      ),
+{ 13 }  ( Latitude : 31.89;  Longitude : -34.80;  Name : 'Rehovot'       ),
+{ 14 }  ( Latitude : 32.17;  Longitude : -34.84;  Name : 'Herzeliyya'    ),
+{ 15 }  ( Latitude : 32.19;  Longitude : -34.91;  Name : 'Kfar Saba'     ),
+{ 16 }  ( Latitude : 32.45;  Longitude : -34.92;  Name : 'Hadera'        ),
+{ 17 }  ( Latitude : 32.19;  Longitude : -34.88;  Name : 'Ra''anana'     ),
+{ 18 }  ( Latitude : 31.96;  Longitude : -34.90;  Name : 'Lod'           ),
+{ 19 }  ( Latitude : 31.93;  Longitude : -34.86;  Name : 'Ramla'         )
+    );
+
+{ Convert the given minutes into full TTime and retrun it as a string
+  Params:
+  minute - The number of minutes since the start of the day}
+function MinutesToHours(minute : Longint) : String;
+begin
+  MinutesToHours := TimeToStr(OneMinute * minute);
+end;
+
+var
+{ Our hdate class }
+ h           : THdateClass;
+{ A variable that saves the flag for Israel or the rest of the world }
+ diaspora    : Integer;
+{ Israel's time zone in hours, used to adjust utc times (GMT) to locale time }
+ time_zone   : Integer;
+{ Temporary Storing of the minutes for specific query }
+ tmp         : Longint;
+{ The degree of the sunrise/sunset that we are looking at, default is 90 }
+ deg         : Longint;
+{ The Longitude of a city }
+ Long        : Double;
+{ The Latitude of a city }
+ Lat         : Double;
+{ The name of a city }
+ LongLatName : String;
+{ The for loop counter }
+ i           : integer;
+ 
+begin
+ h        := THdateClass.Create;
+ diaspora := 0;
+ time_zone := 2;
+
+ try
+  // print gregorian date
+  writeln (Format('Today: %0.2d/%0.2d/%4d',[h.GregDay,h.GregMonth,h.GregYear]));
+ 
+  // print hebrew date
+  writeln (h.get_format_date (diaspora));
+  writeln;
+
+  writeln('Corrent Time: ', TimeToStr(Now));
+  writeln;
+
+  for i := Low(Cities) to High(Cities) do
+    begin
+     Long        := Cities[i].Longitude;
+     Lat         := Cities[i].Latitude;
+     LongLatName := Cities[i].Name;
+     
+     Writeln('City: ', LongLatName);
+     Writeln(#9'Latitude: ', FloatToStr(Lat));
+     Writeln(#9'Longitude: ', FloatToStr(Long));
+  
+     // print Time using a degree of sunrise/sunset
+     deg := 90;
+     writeln(#9'Degree: ', deg);
+     tmp := h.get_deg_sunrise(Now, Lat, Long, deg);
+     writeln (#9'hour of sunrise: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_deg_sunset(Now, Lat, Long, deg);
+     writeln(#9'hour of sunset: ', MinutesToHours(tmp + time_zone * 60));
+  
+     //print information
+     tmp := h.get_temporary_time(Now, Lat, Long);
+     writeln(#9'Temporary hour length: ', MinutesToHours(tmp));
+     tmp := h.get_first_light(Now, Lat, Long);
+     writeln(#9'first light: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_prayer_time(Now, Lat, Long);
+     writeln(#9'talit time: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_time_full_sunrise(Now, Lat, Long);
+     writeln(#9'full sunrise: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_time_full_midday(Now, Lat, Long);
+     writeln(#9'full midday: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_time_full_sunset(Now, Lat, Long);
+     writeln(#9'full sunset: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_time_full_first_stars(Now, Lat, Long);
+     writeln(#9'first stars: ', MinutesToHours(tmp + time_zone * 60));
+     tmp := h.get_time_full_three_stars(Now, Lat, Long);
+     writeln(#9'three stars: ', MinutesToHours(tmp + time_zone * 60));
+     writeln;
+    end;
+ finally
+  h.Free;
+ end;
+end.

Modified: pkg/libhdate/branches/upstream/current/examples/hcal/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/hcal/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/hcal/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/examples/hcal/Makefile.in Thu Jan 31 19:30:24 2008
@@ -154,12 +154,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -173,8 +178,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -203,7 +212,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/examples/hcal/hcal.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/hcal/hcal.c?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/hcal/hcal.c (original)
+++ pkg/libhdate/branches/upstream/current/examples/hcal/hcal.c Thu Jan 31 19:30:24 2008
@@ -7,20 +7,18 @@
  * 
  * Copyright:  2004 (c) Yaacov Zamir 
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
- * 02111-1307, USA.
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <stdio.h>		/* For printf */
@@ -173,7 +171,7 @@
 type=\"text/css\" media=\"screen\" href=\"colorful.css\">");
 	printf ("</style>\n\
 <link rel=\"alternate stylesheet\" title=\"Print\" \
-type=\"text/css\" media=\"all\" href=\"print.css\">");
+type=\"text/css\" media=\"all\" href=\"print.css\">\n");
 
 	printf ("\
 <title>Hebrew Calendar</title>\n\
@@ -292,7 +290,9 @@
 print_calendar (int month, int year, int opt_h, int opt_d)
 {
 	hdate_struct h;
+	hdate_struct today;
 	int jd;
+	int jd_today;
 	int i, j;
 	char type_char[] = { '/', '+', '*', '-' };
 	int holyday_type;
@@ -300,7 +300,11 @@
 	/* Find day to start calendar with */
 	hdate_set_gdate (&h, 1, month, year);
 
-	/* return print head to sunday */
+	/* Set today to today, so we know what day to highlight */
+	hdate_set_gdate (&today, 0, 0, 0);
+	jd_today = today.hd_jd;
+	
+	/* Return print head to sunday */
 	jd = h.hd_jd - h.hd_dw + 1;
 
 	/* Loop over all days in this month */
@@ -356,10 +360,22 @@
 				if (h.gd_mon == month)
 				{
 					/* Print a day */
-					printf ("%2d%c%3s", h.gd_day,
-						type_char[holyday_type],
-						hdate_get_int_string (h.
-								      hd_day));
+					if (jd != jd_today)
+					{
+						printf ("%2d%c%3s", h.gd_day,
+							type_char[holyday_type],
+							hdate_get_int_string (h.
+									      hd_day));
+					}
+					else /* It's today, lets print it in bold */
+					{
+						printf ("%c[1m", 27);
+						printf ("%2d%c%3s", h.gd_day,
+							type_char[holyday_type],
+							hdate_get_int_string (h.
+									      hd_day));
+						printf ("%c[m", 27);
+					}
 				}
 				if (j != 6)
 					printf ("\t");

Modified: pkg/libhdate/branches/upstream/current/examples/hcal/hdate.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/examples/hcal/hdate.c?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/examples/hcal/hdate.c (original)
+++ pkg/libhdate/branches/upstream/current/examples/hcal/hdate.c Thu Jan 31 19:30:24 2008
@@ -6,20 +6,18 @@
  * 
  * Copyright:  2004 (c) Yaacov Zamir 
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
- * 02111-1307, USA.
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 

Modified: pkg/libhdate/branches/upstream/current/po/es_MX.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/es_MX.gmo?rev=726&op=diff
==============================================================================
Binary files - no diff available.

Modified: pkg/libhdate/branches/upstream/current/po/es_MX.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/es_MX.po?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/es_MX.po (original)
+++ pkg/libhdate/branches/upstream/current/po/es_MX.po Thu Jan 31 19:30:24 2008
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: es_MX\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
 "Last-Translator: Peled Esti <esti at actcom.co.il>\n"
 "Language-Team: Spanish\n"

Modified: pkg/libhdate/branches/upstream/current/po/fr.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/fr.gmo?rev=726&op=diff
==============================================================================
Binary files - no diff available.

Modified: pkg/libhdate/branches/upstream/current/po/fr.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/fr.po?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/fr.po (original)
+++ pkg/libhdate/branches/upstream/current/po/fr.po Thu Jan 31 19:30:24 2008
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: fr\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
 "Last-Translator: Yaacov Zamir\n"
 "Language-Team: Franch\n"

Modified: pkg/libhdate/branches/upstream/current/po/he.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/he.gmo?rev=726&op=diff
==============================================================================
Binary files - no diff available.

Modified: pkg/libhdate/branches/upstream/current/po/he.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/he.po?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/he.po (original)
+++ pkg/libhdate/branches/upstream/current/po/he.po Thu Jan 31 19:30:24 2008
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"

Modified: pkg/libhdate/branches/upstream/current/po/libhdate.pot
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/libhdate.pot?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/libhdate.pot (original)
+++ pkg/libhdate/branches/upstream/current/po/libhdate.pot Thu Jan 31 19:30:24 2008
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: libhdate 1.4.10\n"
+"Project-Id-Version: libhdate 1.4.11\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"

Modified: pkg/libhdate/branches/upstream/current/po/ru.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/ru.gmo?rev=726&op=diff
==============================================================================
Binary files - no diff available.

Modified: pkg/libhdate/branches/upstream/current/po/ru.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/ru.po?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/ru.po (original)
+++ pkg/libhdate/branches/upstream/current/po/ru.po Thu Jan 31 19:30:24 2008
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: ru\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
 "PO-Revision-Date: 2005-03-08 22:44-0200\n"
 "Last-Translator: Boeis Peterberg\n"
 "Language-Team: Russian\n"

Modified: pkg/libhdate/branches/upstream/current/po/sv.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/sv.gmo?rev=726&op=diff
==============================================================================
Binary files - no diff available.

Modified: pkg/libhdate/branches/upstream/current/po/sv.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/po/sv.po?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/po/sv.po (original)
+++ pkg/libhdate/branches/upstream/current/po/sv.po Thu Jan 31 19:30:24 2008
@@ -7,9 +7,10 @@
 msgstr ""
 "Project-Id-Version: libhdate\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-01-05 10:30+0200\n"
-"PO-Revision-Date: 2006-03-19 16:53+0100\n"
-"Last-Translator: Daniel Nylander <po at danielnylander.se>\n"
+"POT-Creation-Date: 2008-01-11 18:45+0200\n"
+"PO-Revision-Date: 2008-01-10 10:26+0100\n"
+"Last-Translator: Patrik Nilsson <blambi at chebab.com>, Daniel Nylander "
+"<po at danielnylander.se>\n"
 "Language-Team: Swedish <tp-sv at listor.tp-sv.se>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
@@ -349,27 +350,27 @@
 
 #: src/hdate_strings.c:273 src/hdate_strings.c:310
 msgid "Family Day"
-msgstr ""
+msgstr "Familjedagen"
 
 #: src/hdate_strings.c:274 src/hdate_strings.c:311
 msgid "Memorial day for fallen whose place of burial is unknown"
-msgstr ""
+msgstr "Minnesdag för de fallena vars gravplats är okänd"
 
 #: src/hdate_strings.c:275
 msgid "Rabin memorial day"
-msgstr ""
+msgstr "Minnesdag för Y. Rabin"
 
 #: src/hdate_strings.c:276
 msgid "Zhabotinsky day"
-msgstr ""
+msgstr "Zhabotinksys dag"
 
 #: src/hdate_strings.c:312
 msgid "Yitzhak Rabin memorial day"
-msgstr ""
+msgstr "Minnesdag för Yitzhak Rabin"
 
 #: src/hdate_strings.c:313
 msgid "Zeev Zhabotinsky day"
-msgstr ""
+msgstr "Zeev Zhabotinksys dag"
 
 #: src/hdate_strings.c:346 src/hdate_strings.c:409
 msgid "none"
@@ -621,4 +622,4 @@
 
 #: src/hdate_strings.c:568 src/hdate_strings.c:572
 msgid "translator"
-msgstr "Daniel Nylander"
+msgstr "Daniel Nylander, Patrik Nilsson"

Modified: pkg/libhdate/branches/upstream/current/src/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/src/Makefile.in?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/src/Makefile.in (original)
+++ pkg/libhdate/branches/upstream/current/src/Makefile.in Thu Jan 31 19:30:24 2008
@@ -152,12 +152,17 @@
 PA_VERSION = @PA_VERSION@
 PE_CFLAGS = @PE_CFLAGS@
 PE_MODULES_PATH = @PE_MODULES_PATH@
+PH_CONFIG_PATH = @PH_CONFIG_PATH@
+PH_MODULES_PATH = @PH_MODULES_PATH@
 PKG_CONFIG = @PKG_CONFIG@
 POSUB = @POSUB@
 PY_CFLAGS = @PY_CFLAGS@
 PY_MODULES_PATH = @PY_MODULES_PATH@
 PY_VERSION = @PY_VERSION@
 RANLIB = @RANLIB@
+RU_CFLAGS = @RU_CFLAGS@
+RU_MODULES_PATH = @RU_MODULES_PATH@
+RU_VERSION = @RU_VERSION@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
@@ -171,8 +176,12 @@
 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
 WITH_PERL_FALSE = @WITH_PERL_FALSE@
 WITH_PERL_TRUE = @WITH_PERL_TRUE@
+WITH_PHP_FALSE = @WITH_PHP_FALSE@
+WITH_PHP_TRUE = @WITH_PHP_TRUE@
 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
+WITH_RUBY_FALSE = @WITH_RUBY_FALSE@
+WITH_RUBY_TRUE = @WITH_RUBY_TRUE@
 XGETTEXT = @XGETTEXT@
 XGETTEXT_015 = @XGETTEXT_015@
 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -201,7 +210,10 @@
 exec_prefix = @exec_prefix@
 have_pascal = @have_pascal@
 have_perl = @have_perl@
+have_php = @have_php@
+have_php_config = @have_php_config@
 have_python = @have_python@
+have_ruby = @have_ruby@
 have_swig = @have_swig@
 host = @host@
 host_alias = @host_alias@

Modified: pkg/libhdate/branches/upstream/current/src/hdate.h
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/src/hdate.h?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/src/hdate.h (original)
+++ pkg/libhdate/branches/upstream/current/src/hdate.h Thu Jan 31 19:30:24 2008
@@ -15,7 +15,13 @@
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
- 
+
+/** @file hdate.h
+    @brief libhdate C language header.
+    
+    libhdate - Hebrew calendar library, the C language header file.
+*/
+
 #ifndef __HDATE_H__
 #define __HDATE_H__
 
@@ -44,8 +50,8 @@
 */
 #define HDATE_LONG_FLAG 0
 
-/** Base structore for hebrew dates
-
+/** @struct hdate_struct
+  @brief libhdate Hebrew date struct
 */
 typedef struct
 {
@@ -337,15 +343,23 @@
 
 /**
  @brief utc sun times for altitude at a gregorian date
-  
- @parm day this day of month
- @parm month this month
- @parm year this year
- @parm longitude longitude to use in calculations
- @parm latitude latitude to use in calculations
- @parm deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
- @parm sunrise return the utc sunrise in minutes
- @parm sunset return the utc sunset in minutes
+
+ Returns the sunset and sunrise times in minutes from 00:00 (utc time)
+ if sun altitude in sunrise is deg degries.
+ This function only works for altitudes sun realy is.
+ If the sun never get to this altitude, the returned sunset and sunrise values 
+ will be negative. This can happen in low altitude when latitude is 
+ nearing the pols in winter times, the sun never goes very high in 
+ the sky there.
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+ @param latitude latitude to use in calculations
+ @param deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
+ @param sunrise return the utc sunrise in minutes
+ @param sunset return the utc sunset in minutes
 */
 void
 hdate_get_utc_sun_time_deg (int day, int month, int year, 
@@ -359,7 +373,7 @@
  @param year this year
  @param longitude longitude to use in calculations
 	degrees, negative values are east
-  @param latitude latitude to use in calculations
+ @param latitude latitude to use in calculations
 	degrees, negative values are south
  @param sunrise return the utc sunrise in minutes after midnight (00:00)
  @param sunset return the utc sunset in minutes after midnight (00:00)
@@ -371,19 +385,19 @@
 /**
  @brief utc sunrise/set time for a gregorian date
   
- @parm day this day of month
- @parm month this month
- @parm year this year
- @parm longitude longitude to use in calculations
- @parm latitude latitude to use in calculations
- @parm sun_hour return the length of shaa zaminit in minutes
- @parm first_light return the utc alut ha-shachar in minutes
- @parm talit return the utc tphilin and talit in minutes
- @parm sunrise return the utc sunrise in minutes
- @parm midday return the utc midday in minutes
- @parm sunset return the utc sunset in minutes
- @parm first_stars return the utc tzeit hacochavim in minutes
- @parm three_stars return the utc shlosha cochavim in minutes
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+ @param latitude latitude to use in calculations
+ @param sun_hour return the length of shaa zaminit in minutes
+ @param first_light return the utc alut ha-shachar in minutes
+ @param talit return the utc tphilin and talit in minutes
+ @param sunrise return the utc sunrise in minutes
+ @param midday return the utc midday in minutes
+ @param sunset return the utc sunset in minutes
+ @param first_stars return the utc tzeit hacochavim in minutes
+ @param three_stars return the utc shlosha cochavim in minutes
 */
 void
 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude, 

Modified: pkg/libhdate/branches/upstream/current/src/hdate_sun_time.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/src/hdate_sun_time.c?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/src/hdate_sun_time.c (original)
+++ pkg/libhdate/branches/upstream/current/src/hdate_sun_time.c Thu Jan 31 19:30:24 2008
@@ -25,6 +25,7 @@
 #include <time.h>
 #include <stdio.h>
 #include <math.h>
+#include <errno.h>
 
 #include "hdate.h"
 #include "support.h"
@@ -56,15 +57,23 @@
 
 /**
  @brief utc sun times for altitude at a gregorian date
-  
- @parm day this day of month
- @parm month this month
- @parm year this year
- @parm longitude longitude to use in calculations
- @parm latitude latitude to use in calculations
- @parm deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
- @parm sunrise return the utc sunrise in minutes
- @parm sunset return the utc sunset in minutes
+
+ Returns the sunset and sunrise times in minutes from 00:00 (utc time)
+ if sun altitude in sunrise is deg degries.
+ This function only works for altitudes sun realy is.
+ If the sun never get to this altitude, the returned sunset and sunrise values 
+ will be negative. This can happen in low altitude when latitude is 
+ nearing the pols in winter times, the sun never goes very high in 
+ the sky there.
+
+ @param day this day of month
+ @param month this month
+ @param year this year
+ @param longitude longitude to use in calculations
+ @param latitude latitude to use in calculations
+ @param deg degrees of sun's altitude (0 -  Zenith .. 90 - Horizon)
+ @param sunrise return the utc sunrise in minutes
+ @param sunset return the utc sunset in minutes
 */
 void
 hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)
@@ -97,8 +106,18 @@
 	latitude = M_PI * latitude / 180.0;
 	
 	/* the sun real time diff from noon at sunset/rise in radians */
+  errno = 0;
 	ha = acos (cos (sunrise_angle) / (cos (latitude) * cos (decl)) - tan (latitude) * tan (decl));
 	
+  /* check for too high altitudes and return negative values */
+  if (errno == EDOM)
+  {
+    *sunrise = -720;
+	  *sunset = -720;
+    
+    return;
+  }
+  
 	/* we use minutes, ratio is 1440min/2pi */
 	ha = 720.0 * ha / M_PI;
 	

Modified: pkg/libhdate/branches/upstream/current/src/hdatepp.h
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/branches/upstream/current/src/hdatepp.h?rev=726&op=diff
==============================================================================
--- pkg/libhdate/branches/upstream/current/src/hdatepp.h (original)
+++ pkg/libhdate/branches/upstream/current/src/hdatepp.h Thu Jan 31 19:30:24 2008
@@ -15,7 +15,13 @@
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
- 
+
+/** @file hdatepp.h
+    @brief libhdate C++ language header.
+    
+    libhdate - Hebrew calendar library, the C++ language header file.
+*/
+
 #ifndef __HDATE_PP_H__
 #define __HDATE_PP_H__
 




More information about the Debian-hebrew-package mailing list