[Pkg-php-commits] r904 - in php-timezonedb/trunk: . debian

Raphael Geissert atomo64-guest at alioth.debian.org
Thu Oct 18 23:01:32 UTC 2007


tags 447192 pending
thanks

Author: atomo64-guest
Date: 2007-10-18 23:01:32 +0000 (Thu, 18 Oct 2007)
New Revision: 904

Added:
   php-timezonedb/trunk/debian/
   php-timezonedb/trunk/debian/changelog
   php-timezonedb/trunk/debian/changelog.xsl
   php-timezonedb/trunk/debian/compat
   php-timezonedb/trunk/debian/control
   php-timezonedb/trunk/debian/copyright
   php-timezonedb/trunk/debian/docs
   php-timezonedb/trunk/debian/pecl
   php-timezonedb/trunk/debian/php5-timezonedb.dirs
   php-timezonedb/trunk/debian/rules
   php-timezonedb/trunk/debian/timezonedb.ini
   php-timezonedb/trunk/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: php-timezonedb/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: php-timezonedb/trunk/debian/changelog
===================================================================
--- php-timezonedb/trunk/debian/changelog	                        (rev 0)
+++ php-timezonedb/trunk/debian/changelog	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,6 @@
+php-timezonedb (2007.8-1) UNRELEASED; urgency=low
+
+  * Initial Release (Closes: #447192).
+
+ -- Raphael Geissert <atomo64 at gmail.com>  Thu, 18 Oct 2007 15:01:04 -0500
+

Added: php-timezonedb/trunk/debian/changelog.xsl
===================================================================
--- php-timezonedb/trunk/debian/changelog.xsl	                        (rev 0)
+++ php-timezonedb/trunk/debian/changelog.xsl	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:util="urn:xslt:functions:util" xmlns:func="http://exslt.org/functions" xmlns:str="http://exslt.org/strings" extension-element-prefixes="func str">
+<xsl:output method="text"/>
+
+  <func:function name="util:maximize">
+    <xsl:param name="string"/>
+    <xsl:param name="line-length"/>
+
+    <func:result>
+      <xsl:variable name="tmp" select="string-length(substring-before($string,' '))"/>
+      <xsl:choose>
+	<xsl:when test="($tmp &gt; $line-length) or (not(contains($string, ' ')))">0</xsl:when>
+        <xsl:when test="(substring($string,$line-length,1) = ' ')">
+	  <xsl:value-of select="$line-length"/>
+	</xsl:when>
+	<xsl:otherwise>
+	  <xsl:value-of select="util:maximize(substring-after($string, ' '), $line-length - $tmp - 1) + 1 + $tmp"/>
+	</xsl:otherwise>
+      </xsl:choose>
+    </func:result>
+  </func:function>
+
+  <func:function name="util:format">
+    <xsl:param name="string"/>
+    <xsl:param name="indent" select="2"/>
+    <xsl:param name="line-length" select="76"/>
+
+    <func:result>
+      <xsl:choose>
+        <xsl:when test="contains($string,'&#xA;') or contains($string,'&#xD;')">
+          <xsl:for-each select="str:tokenize($string,'&#xA;&#xD;')">
+	    <xsl:value-of select="util:format(., $indent, $line-length)"/>
+          </xsl:for-each>	    
+	</xsl:when>
+	<xsl:when test="string-length($string) &gt; $line-length">
+	  <xsl:variable name="tmp" select="util:maximize($string, $line-length)"/>
+	  <xsl:value-of select="str:padding($indent,' ')"/>
+	  <xsl:value-of select="substring($string, 1, $tmp)"/>
+	  <xsl:text>&#xA;</xsl:text>
+	  <xsl:value-of select="util:format(substring($string, $tmp + 1))"/>
+	</xsl:when>
+	<xsl:otherwise>
+	  <xsl:value-of select="str:padding($indent,' ')"/>
+	  <xsl:value-of select="$string"/>
+	  <xsl:text>&#xA;</xsl:text>
+	</xsl:otherwise>
+      </xsl:choose>
+    </func:result>
+  </func:function>
+
+  <func:function name="util:norm">
+    <xsl:param name="num"/>
+    <xsl:param name="length" select="4"/>
+
+    <xsl:choose>
+      <xsl:when test="$length &gt; string-length($num)">
+        <func:result select="concat('0',util:norm($num, $length - 1))"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <func:result select="$num"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </func:function>
+
+  <func:function name="util:extractnum">
+    <xsl:param name="string"/>
+
+    <xsl:choose>
+      <xsl:when test="$string = ''">
+        <func:result select="0"/>
+      </xsl:when>
+      <xsl:when test="$string &lt;= '9' and $string &gt;= '0'">
+        <func:result select="$string"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <func:result select="util:extractnum(substring($string,1,string-length($string)-1))"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </func:function>
+
+  <func:function name="util:ver2num">
+    <xsl:param name="version"/>
+
+    <xsl:choose>
+      <xsl:when test="contains($version,'.')">
+        <func:result select="concat(util:norm(substring-before($version,'.')), util:ver2num(substring-after($version,'.')))"/>
+      </xsl:when>
+      <xsl:when test="$version = number($version)">
+        <func:result select="concat(util:norm($version), util:norm(0))"/>
+      </xsl:when>
+      <xsl:otherwise>
+	<xsl:variable name="tmp" select="util:extractnum($version)"/>
+        <func:result select="concat(util:norm($tmp),' ', substring($version, string-length($tmp) + 1))"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </func:function>
+
+  <xsl:template match="package">
+    <xsl:apply-templates select="release">
+      <xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
+    </xsl:apply-templates>
+    <xsl:apply-templates select="changelog/release">
+      <xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
+    </xsl:apply-templates>
+  </xsl:template>
+
+  <xsl:template match="release">
+    <xsl:text>Version </xsl:text>
+    <xsl:value-of select="version"/>
+    <xsl:text> - </xsl:text>
+    <xsl:value-of select="date"/>
+    <xsl:if test="state">
+      <xsl:text> (</xsl:text>
+      <xsl:value-of select="state"/>
+      <xsl:text>)</xsl:text>
+    </xsl:if>
+    <xsl:text>&#xA;----------------------------------------&#xA;Notes:&#xA;</xsl:text>
+    <xsl:value-of select="util:format(notes)"/>
+    <xsl:text>&#xA;</xsl:text>
+  </xsl:template>
+
+</xsl:stylesheet>

Added: php-timezonedb/trunk/debian/compat
===================================================================
--- php-timezonedb/trunk/debian/compat	                        (rev 0)
+++ php-timezonedb/trunk/debian/compat	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1 @@
+5

Added: php-timezonedb/trunk/debian/control
===================================================================
--- php-timezonedb/trunk/debian/control	                        (rev 0)
+++ php-timezonedb/trunk/debian/control	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,23 @@
+Source: php-timezonedb
+Section: web
+Priority: optional
+Maintainer: Debian PHP Maintainers <pkg-php-maint at lists.alioth.debian.org>
+Uploaders: Raphael Geissert <atomo64 at gmail.com>
+Build-Depends: debhelper (>= 5), po-debconf, xsltproc , php5-dev | php4-dev
+Standards-Version: 3.7.2
+Homepage: http://pecl.php.net/package/timezonedb
+
+Package: php5-timezonedb
+Architecture: any
+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
+Description: Independent timezone database for PHP
+ Timezone Database to be used with PHP's date and time functions
+ .
+ This extension is a drop-in replacement for the builtin timezone 
+ database that comes with PHP.
+ You should only install this extension in case you  need to get
+ a later version of the timezone database than the one shipped with PHP.
+ .
+ The data that this extension uses comes from the "Olson" database, 
+ which is located at ftp://elsie.nci.nih.gov/pub/.
+

Added: php-timezonedb/trunk/debian/copyright
===================================================================
--- php-timezonedb/trunk/debian/copyright	                        (rev 0)
+++ php-timezonedb/trunk/debian/copyright	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,83 @@
+This package was debianized by Raphael Geissert <atomo64 at gmail.com>
+on Thu, 18 Oct 2007 15:01:03 -0500.
+
+It was downloaded from http://pecl.php.net/package/timezonedb
+
+Upstream Author: Derick Rethans <derick at php.net>
+
+Copyright:
+
+  Copyright (c) 1997-2005 The PHP Group
+
+  License: PHP
+
+-------------------------------------------------------------------- 
+                  The PHP License, Version 3.0
+Copyright (c) 1999 - 2005 The PHP Group. All rights reserved.
+-------------------------------------------------------------------- 
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+ 
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in
+     the documentation and/or other materials provided with the
+     distribution.
+ 
+  3. The name "PHP" must not be used to endorse or promote products
+     derived from this software without prior written permission. For
+     written permission, please contact group at php.net.
+  
+  4. Products derived from this software may not be called "PHP", nor
+     may "PHP" appear in their name, without prior written permission
+     from group at php.net.  You may indicate that your software works in
+     conjunction with PHP by saying "Foo for PHP" instead of calling
+     it "PHP Foo" or "phpfoo"
+ 
+  5. The PHP Group may publish revised and/or new versions of the
+     license from time to time. Each version will be given a
+     distinguishing version number.
+     Once covered code has been published under a particular version
+     of the license, you may always continue to use it under the terms
+     of that version. You may also choose to use such covered code
+     under the terms of any subsequent version of the license
+     published by the PHP Group. No one other than the PHP Group has
+     the right to modify the terms applicable to covered code created
+     under this License.
+
+  6. Redistributions of any form whatsoever must retain the following
+     acknowledgment:
+     "This product includes PHP, freely available from
+     <http://www.php.net/>".
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND 
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
+PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-------------------------------------------------------------------- 
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group at php.net.
+
+For more information on the PHP Group and the PHP project, 
+please see <http://www.php.net>.
+
+This product includes the Zend Engine, freely available at
+<http://www.zend.com>.
+
+

Added: php-timezonedb/trunk/debian/docs
===================================================================
--- php-timezonedb/trunk/debian/docs	                        (rev 0)
+++ php-timezonedb/trunk/debian/docs	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1 @@
+timezonedb-2007.8/CREDITS

Added: php-timezonedb/trunk/debian/pecl
===================================================================
--- php-timezonedb/trunk/debian/pecl	                        (rev 0)
+++ php-timezonedb/trunk/debian/pecl	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1 @@
+modules/timezonedb.so

Added: php-timezonedb/trunk/debian/php5-timezonedb.dirs
===================================================================
--- php-timezonedb/trunk/debian/php5-timezonedb.dirs	                        (rev 0)
+++ php-timezonedb/trunk/debian/php5-timezonedb.dirs	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1 @@
+usr/lib/php5

Added: php-timezonedb/trunk/debian/rules
===================================================================
--- php-timezonedb/trunk/debian/rules	                        (rev 0)
+++ php-timezonedb/trunk/debian/rules	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+EXTN=timezonedb
+BUILD=$(CURDIR)/debian/php5-$(EXTN)
+PHP_EX=$(shell /usr/bin/php-config5 --extension-dir)
+SOURCE_DIR=$(shell ls -d $(EXTN)*-*)
+
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE    ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS += -O2 -Wall -fno-strict-aliasing
+LFSFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+
+# Enable IEEE-conformant floating point math on alphas (not the default)
+ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE))
+	CFLAGS += -mieee
+endif
+
+ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux-gnu powerpc64-linux-gnu))
+	CFLAGS += -g
+else
+	CFLAGS += -gstabs
+endif
+
+
+build-stamp:
+	dh_testdir
+	xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/ChangeLog
+	(cd $(SOURCE_DIR); \
+	phpize5; \
+	./configure --disable-rpath --prefix=$(BUILD)/usr \
+		--mandir=\$${prefix}/share/man \
+		--infodir=\$${prefix}/share/info \
+		--with-php-config=/usr/bin/php-config5 ;\
+	$(MAKE) DESTDIR=$(BUILD); )
+	
+	touch build-stamp
+
+build: build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -rf build-stamp
+	(cd $(SOURCE_DIR); \
+	[ ! -f Makefile ] || $(MAKE) clean; \
+	phpize5 --clean ;)
+	rm -rf $(CURDIR)/debian/ChangeLog
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_installdirs
+	(cd $(SOURCE_DIR); \
+	install -D -m 644 modules/$(EXTN).so $(CURDIR)/debian/php5-$(EXTN)$(PHP_EX)/$(EXTN).so; )
+	install -D -m 644 debian/$(EXTN).ini debian/php5-$(EXTN)/etc/php5/conf.d/$(EXTN).ini
+
+binary-indep:
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs $(CURDIR)/debian/ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	echo "php:Depends=phpapi-`php-config5 --phpapi`" >> debian/php5-$(EXTN).substvars
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build-php clean binary-indep binary-arch binary install


Property changes on: php-timezonedb/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: php-timezonedb/trunk/debian/timezonedb.ini
===================================================================
--- php-timezonedb/trunk/debian/timezonedb.ini	                        (rev 0)
+++ php-timezonedb/trunk/debian/timezonedb.ini	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1 @@
+extension=timezonedb.so

Added: php-timezonedb/trunk/debian/watch
===================================================================
--- php-timezonedb/trunk/debian/watch	                        (rev 0)
+++ php-timezonedb/trunk/debian/watch	2007-10-18 23:01:32 UTC (rev 904)
@@ -0,0 +1,3 @@
+version=3
+http://pecl.php.net/package/timezonedb \
+  /get/timezonedb-([\d\.]*).tgz  debian  uupdate




More information about the Pkg-php-commits mailing list