[Debian-hebrew-package] r728 - in /pkg/libhdate/trunk: ./ bindings/ bindings/pascal/ bindings/perl/ bindings/php/ bindings/python/ bindings/ruby/ debian/ 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:40:20 UTC 2008
Author: kzamir-guest
Date: Thu Jan 31 19:40:18 2008
New Revision: 728
URL: http://svn.debian.org/wsvn/debian-hebrew/?sc=1&rev=728
Log:
new upstream
Added:
pkg/libhdate/trunk/bindings/pascal/hdate_dyn_pascal.pp
- copied unchanged from r727, pkg/libhdate/branches/upstream/current/bindings/pascal/hdate_dyn_pascal.pp
pkg/libhdate/trunk/bindings/php/
- copied from r727, pkg/libhdate/branches/upstream/current/bindings/php/
pkg/libhdate/trunk/bindings/ruby/
- copied from r727, pkg/libhdate/branches/upstream/current/bindings/ruby/
pkg/libhdate/trunk/examples/bindings/hdate_php.php
- copied unchanged from r727, pkg/libhdate/branches/upstream/current/examples/bindings/hdate_php.php
pkg/libhdate/trunk/examples/bindings/hdate_ruby.rb
- copied unchanged from r727, pkg/libhdate/branches/upstream/current/examples/bindings/hdate_ruby.rb
pkg/libhdate/trunk/examples/bindings/pascal/
- copied from r727, pkg/libhdate/branches/upstream/current/examples/bindings/pascal/
Removed:
pkg/libhdate/trunk/bindings/pascal/hdate_class.pp
pkg/libhdate/trunk/examples/bindings/hdate_pascal.pp
Modified:
pkg/libhdate/trunk/ChangeLog
pkg/libhdate/trunk/Makefile.in
pkg/libhdate/trunk/bindings/Makefile.am
pkg/libhdate/trunk/bindings/Makefile.in
pkg/libhdate/trunk/bindings/pascal/Makefile.am
pkg/libhdate/trunk/bindings/pascal/Makefile.in
pkg/libhdate/trunk/bindings/pascal/Package.fpc
pkg/libhdate/trunk/bindings/pascal/changelog
pkg/libhdate/trunk/bindings/pascal/fpc_README
pkg/libhdate/trunk/bindings/pascal/hdate.pp
pkg/libhdate/trunk/bindings/perl/Makefile.in
pkg/libhdate/trunk/bindings/python/Makefile.in
pkg/libhdate/trunk/configure
pkg/libhdate/trunk/configure.in
pkg/libhdate/trunk/debian/changelog
pkg/libhdate/trunk/docs/Makefile.in
pkg/libhdate/trunk/docs/man/Makefile.in
pkg/libhdate/trunk/docs/man/man1/Makefile.in
pkg/libhdate/trunk/docs/man/man3/Makefile.in
pkg/libhdate/trunk/docs/man/man3/hdate.3
pkg/libhdate/trunk/docs/man/man3/hdate.h.3
pkg/libhdate/trunk/docs/man/man3/hdate_Hdate.3
pkg/libhdate/trunk/docs/man/man3/hdate_struct.3
pkg/libhdate/trunk/docs/man/man3/hdatepp.h.3
pkg/libhdate/trunk/examples/Makefile.in
pkg/libhdate/trunk/examples/bindings/Makefile.am
pkg/libhdate/trunk/examples/bindings/Makefile.in
pkg/libhdate/trunk/examples/bindings/hdate_cpp.cpp
pkg/libhdate/trunk/examples/bindings/hdate_perl.pl
pkg/libhdate/trunk/examples/bindings/hdate_python.py
pkg/libhdate/trunk/examples/hcal/Makefile.in
pkg/libhdate/trunk/examples/hcal/hcal.c
pkg/libhdate/trunk/examples/hcal/hdate.c
pkg/libhdate/trunk/po/es_MX.gmo
pkg/libhdate/trunk/po/es_MX.po
pkg/libhdate/trunk/po/fr.gmo
pkg/libhdate/trunk/po/fr.po
pkg/libhdate/trunk/po/he.gmo
pkg/libhdate/trunk/po/he.po
pkg/libhdate/trunk/po/libhdate.pot
pkg/libhdate/trunk/po/ru.gmo
pkg/libhdate/trunk/po/ru.po
pkg/libhdate/trunk/po/sv.gmo
pkg/libhdate/trunk/po/sv.po
pkg/libhdate/trunk/src/Makefile.in
pkg/libhdate/trunk/src/hdate.h
pkg/libhdate/trunk/src/hdate_sun_time.c
pkg/libhdate/trunk/src/hdatepp.h
Modified: pkg/libhdate/trunk/ChangeLog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/ChangeLog?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/ChangeLog (original)
+++ pkg/libhdate/trunk/ChangeLog Thu Jan 31 19:40:18 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/trunk/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/Makefile.in (original)
+++ pkg/libhdate/trunk/Makefile.in Thu Jan 31 19:40:18 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/trunk/bindings/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/Makefile.am?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/Makefile.am (original)
+++ pkg/libhdate/trunk/bindings/Makefile.am Thu Jan 31 19:40:18 2008
@@ -1,1 +1,1 @@
-SUBDIRS = python perl pascal
+SUBDIRS = python perl pascal ruby php
Modified: pkg/libhdate/trunk/bindings/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/Makefile.in (original)
+++ pkg/libhdate/trunk/bindings/Makefile.in Thu Jan 31 19:40:18 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/trunk/bindings/pascal/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/Makefile.am?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/Makefile.am (original)
+++ pkg/libhdate/trunk/bindings/pascal/Makefile.am Thu Jan 31 19:40:18 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/trunk/bindings/pascal/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/Makefile.in (original)
+++ pkg/libhdate/trunk/bindings/pascal/Makefile.in Thu Jan 31 19:40:18 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/trunk/bindings/pascal/Package.fpc
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/Package.fpc?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/Package.fpc (original)
+++ pkg/libhdate/trunk/bindings/pascal/Package.fpc Thu Jan 31 19:40:18 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/trunk/bindings/pascal/changelog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/changelog?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/changelog (original)
+++ pkg/libhdate/trunk/bindings/pascal/changelog Thu Jan 31 19:40:18 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/trunk/bindings/pascal/fpc_README
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/fpc_README?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/fpc_README (original)
+++ pkg/libhdate/trunk/bindings/pascal/fpc_README Thu Jan 31 19:40:18 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/trunk/bindings/pascal/hdate.pp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/pascal/hdate.pp?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/pascal/hdate.pp (original)
+++ pkg/libhdate/trunk/bindings/pascal/hdate.pp Thu Jan 31 19:40:18 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
Modified: pkg/libhdate/trunk/bindings/perl/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/perl/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/perl/Makefile.in (original)
+++ pkg/libhdate/trunk/bindings/perl/Makefile.in Thu Jan 31 19:40:18 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@
Modified: pkg/libhdate/trunk/bindings/python/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/python/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/bindings/python/Makefile.in (original)
+++ pkg/libhdate/trunk/bindings/python/Makefile.in Thu Jan 31 19:40:18 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@
Modified: pkg/libhdate/trunk/configure
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/configure?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/configure (original)
+++ pkg/libhdate/trunk/configure Thu Jan 31 19:40:18 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/trunk/configure.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/configure.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/configure.in (original)
+++ pkg/libhdate/trunk/configure.in Thu Jan 31 19:40:18 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/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/debian/changelog?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/debian/changelog (original)
+++ pkg/libhdate/trunk/debian/changelog Thu Jan 31 19:40:18 2008
@@ -1,3 +1,9 @@
+libhdate (1.4.11-1) UNRELEASED; urgency=low
+
+ * (NOT RELEASED YET) New upstream release
+
+ -- kobi <kobi at laptop5> Thu, 31 Jan 2008 21:30:35 +0200
+
libhdate (1.4.10-2) UNRELEASED; urgency=low
* NOT RELEASED YET
Modified: pkg/libhdate/trunk/docs/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/Makefile.in (original)
+++ pkg/libhdate/trunk/docs/Makefile.in Thu Jan 31 19:40:18 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/trunk/docs/man/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/Makefile.in (original)
+++ pkg/libhdate/trunk/docs/man/Makefile.in Thu Jan 31 19:40:18 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/trunk/docs/man/man1/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man1/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man1/Makefile.in (original)
+++ pkg/libhdate/trunk/docs/man/man1/Makefile.in Thu Jan 31 19:40:18 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/trunk/docs/man/man3/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/Makefile.in (original)
+++ pkg/libhdate/trunk/docs/man/man3/Makefile.in Thu Jan 31 19:40:18 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/trunk/docs/man/man3/hdate.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/hdate.3?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/hdate.3 (original)
+++ pkg/libhdate/trunk/docs/man/man3/hdate.3 Thu Jan 31 19:40:18 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/trunk/docs/man/man3/hdate.h.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/hdate.h.3?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/hdate.h.3 (original)
+++ pkg/libhdate/trunk/docs/man/man3/hdate.h.3 Thu Jan 31 19:40:18 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 \- Header for libhdate
+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/trunk/docs/man/man3/hdate_Hdate.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/hdate_Hdate.3?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/hdate_Hdate.3 (original)
+++ pkg/libhdate/trunk/docs/man/man3/hdate_Hdate.3 Thu Jan 31 19:40:18 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/trunk/docs/man/man3/hdate_struct.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/hdate_struct.3?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/hdate_struct.3 (original)
+++ pkg/libhdate/trunk/docs/man/man3/hdate_struct.3 Thu Jan 31 19:40:18 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 structure
+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/trunk/docs/man/man3/hdatepp.h.3
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/docs/man/man3/hdatepp.h.3?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/docs/man/man3/hdatepp.h.3 (original)
+++ pkg/libhdate/trunk/docs/man/man3/hdatepp.h.3 Thu Jan 31 19:40:18 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/trunk/examples/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/Makefile.in (original)
+++ pkg/libhdate/trunk/examples/Makefile.in Thu Jan 31 19:40:18 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/trunk/examples/bindings/Makefile.am
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/bindings/Makefile.am?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/bindings/Makefile.am (original)
+++ pkg/libhdate/trunk/examples/bindings/Makefile.am Thu Jan 31 19:40:18 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/trunk/examples/bindings/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/bindings/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/bindings/Makefile.in (original)
+++ pkg/libhdate/trunk/examples/bindings/Makefile.in Thu Jan 31 19:40:18 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/trunk/examples/bindings/hdate_cpp.cpp
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/bindings/hdate_cpp.cpp?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/bindings/hdate_cpp.cpp (original)
+++ pkg/libhdate/trunk/examples/bindings/hdate_cpp.cpp Thu Jan 31 19:40:18 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/trunk/examples/bindings/hdate_perl.pl
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/bindings/hdate_perl.pl?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/bindings/hdate_perl.pl (original)
+++ pkg/libhdate/trunk/examples/bindings/hdate_perl.pl Thu Jan 31 19:40:18 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;
Modified: pkg/libhdate/trunk/examples/bindings/hdate_python.py
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/bindings/hdate_python.py?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/bindings/hdate_python.py (original)
+++ pkg/libhdate/trunk/examples/bindings/hdate_python.py Thu Jan 31 19:40:18 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);
Modified: pkg/libhdate/trunk/examples/hcal/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/hcal/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/hcal/Makefile.in (original)
+++ pkg/libhdate/trunk/examples/hcal/Makefile.in Thu Jan 31 19:40:18 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/trunk/examples/hcal/hcal.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/hcal/hcal.c?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/hcal/hcal.c (original)
+++ pkg/libhdate/trunk/examples/hcal/hcal.c Thu Jan 31 19:40:18 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/trunk/examples/hcal/hdate.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/examples/hcal/hdate.c?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/examples/hcal/hdate.c (original)
+++ pkg/libhdate/trunk/examples/hcal/hdate.c Thu Jan 31 19:40:18 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/trunk/po/es_MX.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/es_MX.gmo?rev=728&op=diff
==============================================================================
Binary files - no diff available.
Modified: pkg/libhdate/trunk/po/es_MX.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/es_MX.po?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/es_MX.po (original)
+++ pkg/libhdate/trunk/po/es_MX.po Thu Jan 31 19:40:18 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/trunk/po/fr.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/fr.gmo?rev=728&op=diff
==============================================================================
Binary files - no diff available.
Modified: pkg/libhdate/trunk/po/fr.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/fr.po?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/fr.po (original)
+++ pkg/libhdate/trunk/po/fr.po Thu Jan 31 19:40:18 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/trunk/po/he.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/he.gmo?rev=728&op=diff
==============================================================================
Binary files - no diff available.
Modified: pkg/libhdate/trunk/po/he.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/he.po?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/he.po (original)
+++ pkg/libhdate/trunk/po/he.po Thu Jan 31 19:40:18 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/trunk/po/libhdate.pot
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/libhdate.pot?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/libhdate.pot (original)
+++ pkg/libhdate/trunk/po/libhdate.pot Thu Jan 31 19:40:18 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/trunk/po/ru.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/ru.gmo?rev=728&op=diff
==============================================================================
Binary files - no diff available.
Modified: pkg/libhdate/trunk/po/ru.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/ru.po?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/ru.po (original)
+++ pkg/libhdate/trunk/po/ru.po Thu Jan 31 19:40:18 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/trunk/po/sv.gmo
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/sv.gmo?rev=728&op=diff
==============================================================================
Binary files - no diff available.
Modified: pkg/libhdate/trunk/po/sv.po
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/po/sv.po?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/po/sv.po (original)
+++ pkg/libhdate/trunk/po/sv.po Thu Jan 31 19:40:18 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/trunk/src/Makefile.in
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/src/Makefile.in?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/src/Makefile.in (original)
+++ pkg/libhdate/trunk/src/Makefile.in Thu Jan 31 19:40:18 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/trunk/src/hdate.h
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/src/hdate.h?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/src/hdate.h (original)
+++ pkg/libhdate/trunk/src/hdate.h Thu Jan 31 19:40:18 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/trunk/src/hdate_sun_time.c
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/src/hdate_sun_time.c?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/src/hdate_sun_time.c (original)
+++ pkg/libhdate/trunk/src/hdate_sun_time.c Thu Jan 31 19:40:18 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/trunk/src/hdatepp.h
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/src/hdatepp.h?rev=728&op=diff
==============================================================================
--- pkg/libhdate/trunk/src/hdatepp.h (original)
+++ pkg/libhdate/trunk/src/hdatepp.h Thu Jan 31 19:40:18 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