--- php-imagick-2.0.0a2.orig/debian/php5-imagick.install +++ php-imagick-2.0.0a2/debian/php5-imagick.install @@ -0,0 +1 @@ +debian/imagick.ini etc/php5/conf.d/ --- php-imagick-2.0.0a2.orig/debian/php5-imagick.examples +++ php-imagick-2.0.0a2/debian/php5-imagick.examples @@ -0,0 +1 @@ +imagick-*/examples/* --- php-imagick-2.0.0a2.orig/debian/control +++ php-imagick-2.0.0a2/debian/control @@ -0,0 +1,21 @@ +Source: php-imagick +Section: web +Priority: optional +Maintainer: Jose Carlos Medeiros +Uploaders: Ola Lundqvist +Build-Depends: debhelper (>= 5), dpatch, bison, flex, php5-dev (>= 5.2.0-10), libmagick9-dev +Standards-Version: 3.7.2 + +Package: php5-imagick +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends} +Description: ImageMagick module for php5 + This package provides a wrapper for ImageMagick library + directly from PHP scripts. + . + PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed + from C, Java and Perl with a couple of unique PHP-specific features thrown + in. The goal of the language is to allow web developers to write + dynamically generated pages quickly. + . + Homepage: http://pecl.php.net/package/imagick --- php-imagick-2.0.0a2.orig/debian/php5-imagick.docs +++ php-imagick-2.0.0a2/debian/php5-imagick.docs @@ -0,0 +1,2 @@ +imagick-*/CREDITS +imagick-*/TODO --- php-imagick-2.0.0a2.orig/debian/rules +++ php-imagick-2.0.0a2/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +SOURCE_VERSION = $(shell dpkg-parsechangelog | grep ^Version | sed "s/Version: //") + +CFLAGS := -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2) +CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + +include /usr/share/dpatch/dpatch.make + +configure: patch-stamp configure-php5-stamp +configure-php5-stamp: + dh_testdir + rm -rf build-php5 && mkdir build-php5 + for i in config.m4 config.w32 imagick.c php_imagick.h;do \ + cp imagick-*/$$i build-php5/; \ + done; + -cd build-php5 && phpize5 + cd build-php5 && ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man + --infodir=\$${prefix}/share/info + --with-regex=system \ + --with-php-config=/usr/bin/php-config5 \ + --disable-rpath \ + --disable-static \ + --with-imagick=shared,/usr + cd build-php5 && sed -i 's/-Wl,-rpath,[^ ]* //g' Makefile + + touch configure-php5-stamp + +build: configure build-php5-stamp +build-php5-stamp: configure-php5-stamp + dh_testdir + # Add here commands to compile the package. + cd build-php5 && $(MAKE) CFLAGS="$(CFLAGS)" + + touch build-php5-stamp + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + rm -f configure-php5-stamp + rm -f build-php5-stamp + rm -f install-stamp + + # Add here commands to clean up after the build process. + rm -rf build-php5 + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/php5-imagick. + cd build-php5 && \ + $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/php5-imagick + chmod a+x debian/dh_pecl5 + DH_AUTOSCRIPTDIR=debian/ debian/dh_pecl5 -pphp5-imagick + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: + +# Build architecture-dependent files here. +binary-arch: DH_OPTIONS= +binary-arch: build install + # Need this version of debhelper for DH_OPTIONS to work. + dh_testdir + dh_testroot + dh_installdebconf + dh_installchangelogs debian/ChangeLog + dh_installdocs + dh_installexamples + dh_install + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps +# echo "php:Depends=phpapi-`php-config5 --phpapi`" >> debian/php5-imagick.substvars + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure --- php-imagick-2.0.0a2.orig/debian/watch +++ php-imagick-2.0.0a2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pecl.php.net/package/imagick /get/imagick-(.+)\.tgz --- php-imagick-2.0.0a2.orig/debian/changelog +++ php-imagick-2.0.0a2/debian/changelog @@ -0,0 +1,235 @@ +php-imagick (2.0.0a2-1) unstable; urgency=low + + * New upstream release. (Closes: #421786) + * Removed suport to php4 due php4 removal. (Closes: #418309) + * Removed debian/.template and debian/po files, as isnt no more necessary. + * Removed debian/.postrm and debian/.config files no more used. + * Added debian/imagick.ini file used by php5. + * Added debian/dh_pecl5 and changed rules to call it. + * Removed no more used 02_examples.dpatch. + * Removed no more used 03_nographicsmagickplease.dpatch. + * Removed no more used 04_Magick-config_to_php-config.dpatch. + * Removed build-dependence from libmagick-dev, as this package can call + graphicsmagick that isnt supported by php-imagick. + + -- Jose Carlos Medeiros Thu, 17 May 2007 19:21:15 -0300 + +php-imagick (0.9.13-1) unstable; urgency=low + + * New upstream release + * Build Depends on php4-dev (>= 4:4.4.4-9), php5-dev (>= 5.2.0-10), now + depends on phpapi-20050606+lfs. (Closes: #400527) + * Patched config.m4 (Magick-config_to_php-config.dpatch) to use php-config. + (Closes: #400786) + * Updated to use new config files schema with conf.d directory and + module.ini files. (Closes: #401631) + + -- Jose Carlos Medeiros Fri, 27 Apr 2007 20:48:42 -0300 + +php-imagick (0.9.11+1-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Sourcefull NMU to rebuild against php 5.2. Closes: #398585 + + -- Andreas Barth Tue, 28 Nov 2006 09:24:33 +0100 + +php-imagick (0.9.11+1-4) unstable; urgency=low + + * Bump Standards-Version: 3.7.2 + * Updated Japanese debconf translation, thanks to Kenshi Muto + . (Closes: #379941) + * Updated Danish debconf translation, thanks to Claus Hindsgaul + . (Closes: #382476) + * Updated Spanish debconf translation, thanks to Carlos Valdivia Yagüe + . + * Updated Vietnamese debconf translation, thanks to Clytie Siddall + . + * Updated Swedish debconf translation, thanks to Daniel Nylander + . + * Updated Czech debconf translation, thanks to Miroslav Kure + . (Closes: #382540) + * Updated French debconf translation, thanks to Florentin Duneau + . (Closes: #383043) + * Updated Portuguese debconf translation, thanks to Miguel Figueiredo + + * Updated German debconf translation, thanks to Alwin Meschede + + * Updated Turkish debconf translation, thanks to Osman Yüksel + + + -- Jose Carlos Medeiros Wed, 9 Aug 2006 17:45:27 -0300 + +php-imagick (0.9.11+1-3) unstable; urgency=low + + * Updated Debconf French translation. Thanks to Florentin Duneau + . (closes: #361609) + * Updated Debconf Czech translation. Thanks to Miroslav Kure + . (closes: #366739) + * Updated Debconf Russian translation. Thanks to Yuriy Talakan + . (closes: #367163) + + -- Jose Carlos Medeiros Thu, 11 May 2006 20:48:39 -0300 + +php-imagick (0.9.11+1-2) unstable; urgency=low + + * Updated debian po Danish translation, Thanks to Claus Hindsgaul + . (closes: #357987) + + -- Jose Carlos Medeiros Mon, 27 Mar 2006 16:56:49 -0300 + +php-imagick (0.9.11+1-1) unstable; urgency=low + + * Changed source name from php4-imagick to php-imagick. + * Build-Depends on debhelper >=5, removed compat file and put DH_COMPAT in + rules file. + + -- Jose Carlos Medeiros Fri, 17 Mar 2006 14:40:09 -0300 + +php4-imagick (0.9.11-5) unstable; urgency=low + + * Added suport to generate php5-imagick binary (files php5-imagick.* and + changed control file). (closes: #333388) + * Updated all debian/po/.* files to suport php5 binary. + * Updated debian/rules file based in php-imap. + * Changed 02_examples.dpatch to do not call imagick_setfillcolor function. + (closes: #337686) + + -- Jose Carlos Medeiros Wed, 28 Dec 2005 14:07:54 -0200 + +php4-imagick (0.9.11-4) unstable; urgency=low + + * New maintainer. (closes: #303616) + * Updated debian/CHANGELOG. + * Updated debian/README.Debian, debian/copyright, debian/php4-imagick.postinst + and debian/php4-imagick.prerm files. + + -- Jose Carlos Medeiros Thu, 6 Oct 2005 18:24:48 -0300 + +php4-imagick (0.9.11-3) unstable; urgency=low + + * QA upload. + * Build-depend on `libmagick9-dev | libmagick-dev'. Closes: #332460. + * debian/po/sv.po: Add translation by Daniel Nylander. Closes: #330760. + + -- Matej Vela Thu, 6 Oct 2005 18:32:27 +0200 + +php4-imagick (0.9.11-2) unstable; urgency=low + + * QA upload. + * Update for php4/php5 split (s/phpize/phpize4/; s/php-config/php-config4/). + * Recompile for phpapi-20050606. Closes: #317634, #324005, #272687. + * Update templates based on php4 4:4.4.0-1 (which includes a Vietnamese + translation). Closes: #316823. + * Update debconf dependency. + * debian/copyright: Update upstream URL. + * debian/watch: Add. + * Conforms to Standards version 3.6.2. + + -- Matej Vela Sun, 11 Sep 2005 08:34:04 +0200 + +php4-imagick (0.9.11-1) unstable; urgency=low + + * QA upload. + * Package is orphaned (see #303616); set maintainer to Debian QA Group. + * Use updated debconf translations from php4. + * debian/php4-imagick.prerm: s/@extname@/imagick/ + * debian/rules: + - Remove support for DEB_BUILD_OPTIONS=debug. + - Add support for DEB_BUILD_OPTIONS=noopt. + - Let dh_strip handle DEB_BUILD_OPTIONS=nostrip. + + -- Matej Vela Mon, 25 Apr 2005 22:57:49 +0200 + +php4-imagick (0.9.11-0.2) unstable; urgency=medium + + * NMU + * Bump the php4-dev build-dependency again, and switch back to + non-threaded phpapi since ZTS isn't happening for sarge + (closes: #301328). + * Drop support for caudium SAPI again, now that it's also been dropped + + -- Steve Langasek Tue, 29 Mar 2005 17:07:17 -0800 + +php4-imagick (0.9.11-0.1) unstable; urgency=medium + + * NMU + * Build-dep on php4-dev (>= 4:4.3.10-3) and make sure that we're also + depending on a threaded phpapi (closes: #294001) + * Add support for cli and caudium SAPIs + + -- Adam Conrad Sun, 13 Feb 2005 21:31:51 -0700 + +php4-imagick (0.9.11-0) unstable; urgency=low + + * New upstream versions (Closes: #266335) + * Acknowledge NMU (Closes: #246478, #249088, #262845, #224238) + (Closes: #226001, #226407, #224727) + * Updated postinst and config to reuse php4's debconf dialogs + * Remove RPATH from image.so (Closes: #266161) + + -- Bruno Rodrigues Tue, 17 Aug 2004 21:27:06 +0200 + +php4-imagick (0.9.7-1.3) unstable; urgency=medium + + * NMU + * Rebuild for libtiff4 transition (closes: #262845) + * Bump libmagick build-dep to libmagick6-dev (closes: #246478, #249088) + * Patched imagick.h to DTRT with libmagick6 headers. + + -- Adam Conrad Thu, 5 Aug 2004 00:03:26 -0600 + +php4-imagick (0.9.7-1.2) unstable; urgency=medium + + * NMU + * [debian/control] Tightened ImageMagick build dependency again to follow + libmagick's so name reversal. (Closes: #226001) + + -- J.H.M. Dassen (Ray) Sat, 3 Jan 2004 19:10:05 +0100 + +php4-imagick (0.9.7-1.1) unstable; urgency=medium + + * NMU + * [debian/control] Tightened ImageMagick build dependency to follow + libmagick's so name change. (Closes: #224238) + + -- J.H.M. Dassen (Ray) Sun, 21 Dec 2003 13:47:52 +0100 + +php4-imagick (0.9.7-1) unstable; urgency=low + + * Sponsored by Steve Langasek + * New upstream version. From upstream changelog: + - fixed to work with versions of ImageMagick >= 5.5.7 (Closes: #206960) + - test compiled against ImageMagick 5.5.3, 5.5.6 and 5.5.7 with success. + * Rebuild to get the right PHP dependencies (phpapi instead of zendapi). + (Closes: #208485) + * Run phpize in debian/rules instead of including a big patch with it + + -- Bruno Rodrigues Mon, 8 Sep 2003 20:24:31 +0100 + +php4-imagick (0.9.6-1) unstable; urgency=low + + * New upstream version + * Updated to Standards-Version: 3.5.10 + * Added upstream changelog converted from webpage + + -- Bruno Rodrigues Mon, 26 May 2003 17:39:54 +0000 + +php4-imagick (0.9.5-1) unstable; urgency=low + + * New package (Closes: #181169) + * Rewrite examples/*.php to output result images instead of writting files + + -- Bruno Rodrigues Tue, 18 Mar 2003 23:39:59 +0000 + +php4-imagick (0.9.5-0) unstable; urgency=low + + * New upstream version + + -- Bruno Rodrigues Wed, 12 Mar 2003 17:20:34 +0000 + +php4-imagick (0.9.4-1) unstable; urgency=low + + * Initial debianize + + -- Bruno Rodrigues Sat, 15 Feb 2003 23:21:25 +0000 + --- php-imagick-2.0.0a2.orig/debian/compat +++ php-imagick-2.0.0a2/debian/compat @@ -0,0 +1 @@ +5 --- php-imagick-2.0.0a2.orig/debian/README.Debian +++ php-imagick-2.0.0a2/debian/README.Debian @@ -0,0 +1,20 @@ +php4-imagick for Debian +----------------------- + +ChangeLog file was generated taking and cleaning this html file: + http://pecl.php.net/package-changelog.php?package=imagick +And after converted to text by this command: + html2text -nobs change > ChangeLog + +Example php files was changed to reply back the image instead of writting +to current directory, which by default won't have permissions +(/usr/share/doc/php[45]-imagick) + +Some examples aren't working: + +* animatedgif2jpgs: + this will create a file for each frame "new_image.jpg.[0-9]" + You can change this program to generate files in /tmp directory. + + -- Bruno Rodrigues Sat, 15 Feb 2003 23:21:25 +0000 + --- php-imagick-2.0.0a2.orig/debian/php5-imagick.postinst +++ php-imagick-2.0.0a2/debian/php5-imagick.postinst @@ -0,0 +1,54 @@ +#! /bin/sh +# postinst script for php5-imagick +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +# Source debconf library. +. /usr/share/debconf/confmodule + +case "$1" in + configure) + if [ "$2" ] && dpkg --compare-versions "$2" lt "0.9.13"; then + extension_re='^[[:space:]]*extension[[:space:]]*=[[:space:]]*imagick\.so$' + for SAPI in apache apache2 cgi cli; do + ini_file="/etc/php5/$SAPI/php.ini" + if [ -f "$ini_file" ]; then + if grep -q "$extension_re" $ini_file; then + sed -i -e "/$extension_re/d" $ini_file + fi + fi + done + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- php-imagick-2.0.0a2.orig/debian/imagick.ini +++ php-imagick-2.0.0a2/debian/imagick.ini @@ -0,0 +1,2 @@ +# configuration for php imagick module +extension=imagick.so --- php-imagick-2.0.0a2.orig/debian/copyright +++ php-imagick-2.0.0a2/debian/copyright @@ -0,0 +1,88 @@ +This package was debianized by Bruno Rodrigues on +Sat, 15 Feb 2003 23:21:25 +0000. + +It was downloaded from: + http://pecl.php.net/package/imagick + +Copyright Holder: + Christian Stocker + Michael C. Montero + +License: + +-------------------------------------------------------------------- + The PHP License, version 2.02 +Copyright (c) 1999 - 2002 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 permission from the + PHP Group. This does not apply to add-on libraries or tools + that work in conjunction with PHP. In such a case the PHP + name may be used to indicate that the product supports PHP. + + 4. 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. + + 5. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes PHP, freely available from + http://www.php.net/". + + 6. The software incorporates the Zend Engine, a product of Zend + Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the + PHP Association (pursuant to a grant from Zend that can be + found at http://www.php.net/license/ZendGrant/) for + distribution to you under this license agreement, only as a + part of PHP. In the event that you separate the Zend Engine + (or any portion thereof) from the rest of the software, or + modify the Zend Engine, or any portion thereof, your use of the + separated or modified Zend Engine software shall not be governed + by this license, and instead shall be governed by the license + set forth at http://www.zend.com/license/ZendLicense/. + + + +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@php.net. + +For more information on the PHP Group and the PHP project, +please see . + --- php-imagick-2.0.0a2.orig/debian/dh_pecl5 +++ php-imagick-2.0.0a2/debian/dh_pecl5 @@ -0,0 +1,145 @@ +#!/usr/bin/perl -w + +=head1 NAME + +dh_pecl - calculate zendapi dependencies and adds postinst and prerm scripts + +=cut + +use strict; +use File::Find; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] [B<-n>] [I] + +=head1 DESCRIPTION + +dh_pecl is a debhelper program that is responsible for generating +${misc:Depends} substitutions and adding them to substvars files. It +will also add a postinst and a prerm script if required. + +The program will look at any PECL modules in your package, and +will use this information to generate a dependency on a specific version of +the Zend API, and install the module into the right place. +The dependency will be substituted into your +package's control file wherever you place the token "${misc:Depends}". + +If you use this program, your package should build-depend on php4-dev. + +=head1 OPTIONS + +=over 4 + +=item I + +A list of modules, relative to the build root directory, that you want to +install into the PHP modules directory. + +=item B<-n>, B<--noscripts> + +Do not modify postinst/postrm scripts. + +=back + +=head1 CONFORMS TO + +Debian policy, version 3.6.1 + +=cut + +# Dh_Lib initialiser +init(); + +# Determine the current phpapi version. We need to support the new (php +# 4.4.0 and later) method, as well as the older, hackier method. + +my $phpapiver = `php-config5 --phpapi`; +my $apivirtpkgs; + +if ($phpapiver =~ /^Usage:/) +{ + # php-config obviously doesn't support --phpapi yet, so we'll just + # go and work the answers out for ourselves. + + # The current Zend API version + my $zendapiver = `grep \'#define ZEND_MODULE_API_NO \' /usr/include/php4/Zend/zend_modules.h | sed 's/#define ZEND_MODULE_API_NO //'`; + chomp($zendapiver); + $phpapiver = `grep \'#define PHP_API_VERSION \' /usr/include/php4/main/php.h | sed 's/#define PHP_API_VERSION //'`; + chomp($phpapiver); + + if ($zendapiver eq "") + { + die "Could not determine Zend API version. Is php4-dev installed?\n"; + } + + if ($phpapiver eq "") + { + die "Could not determine PHP API version. Is php4-dev installed?\n"; + } + + $apivirtpkgs = "phpapi-$phpapiver | zendapi-$zendapiver"; +} +else +{ + # Yay for the new method! + chomp($phpapiver); + + $apivirtpkgs = "phpapi-$phpapiver"; +} + +chomp(my $moduledir = `/usr/bin/php-config5 --extension-dir`); + +foreach my $package (@{$dh{DOPACKAGES}}) +{ + my $tmp = tmpdir($package); + my $mfile = pkgfile($package, "pecl"); + + my @modules = []; + if ($mfile) + { + @modules = filearray($mfile, "."); + } + else + { + @modules = @ARGV; + } + + if (@modules) + { + # Create me a module directory + doit("install", "-g", 0, "-o", 0, "-d", "$tmp/$moduledir"); + + foreach my $mod (@modules) + { + doit("install", "-g", 0, "-o", 0, $mod, "$tmp/$moduledir"); + chmod 0644, "$tmp/$moduledir/$mod"; + my $modbase = `basename $mod`; + chomp($modbase); + + # debhelper script snippets, once per module because we have + # to add and/or remove each module separately + my $subst = "s/#PECLMOD#/$modbase/"; + autoscript($package, "postinst", "postinst-pecl", $subst); + autoscript($package, "prerm", "prerm-pecl", $subst); + } + } + + # Add the Zend API dependency + addsubstvar($package, "misc:Depends", $apivirtpkgs); +} + +=head1 SEE ALSO + +L + +This program is a part of debhelper. + +=head1 AUTHOR + +Matthew Palmer + +Based on dh_python by Josselin Mouette + +=cut --- php-imagick-2.0.0a2.orig/debian/ChangeLog +++ php-imagick-2.0.0a2/debian/ChangeLog @@ -0,0 +1,393 @@ +Changelog for imagick +Release What has changed? +2.0.0a2 - Fixed segfaults in ImagickDraw::getFont(), + ImagickDraw::getFontFamily(), ImagickDraw:: + getTextEncoding() and ImagickDraw:: + getClipPath() + - Added a PHP version check to config.m4 +2.0.0a1 - Initial Release +0.9.13 - Fixed compile error with newer versions of + GraphicsMagick and ImageMagick + - Fixed assertion when using + imagick_setfillcolor + - Fixed segfault when an empty blob is loaded + - Use new API for fetching support image + formats / fonts +0.9.11 - Fix some segfaults on errors (by Andrei + Nigmatulin) + - EXPERIMENTAL support for ImageMagick >= + 6.0.0 (hint by Stanislav Yadykin). Please + report successes or failures. +0.9.10 - A ./configure change release only. + - Changed config.m4 for checking for correct + ImageMagick Version. + ImageMagick >= 5.5.3 and < 6.6.0 or + GraphicsMagick >= 1.0.0 + are needed. + - ImageMagick >= 6.0.0 does not work + currently. Patches are welcome ;) +0.9.9 - added function imagick_set_image_comment() + for setting the comment attribute + of an image. + - function imagick_setcompressiontype() was + not setting the correct structure. + This was identified and tested by Sergio + Salvatore (sergio@cucinalogica.com). + - added function imagick_transparent() for + setting a particular color to be + transparent within an image. + - changed how certain errors are handled in + _php_imagick_is_error() to be + less restrictive. This apparently helps fix + issues with certain types + of images that otherwise appear corrupt. + Thanks to Hien Duy Nguyenxi + (hdn@umich.edu) for finding this, + recommending the change and testing it. + - added imagick_set_image_quality() for + manipulating the quality of the + resultant image. + - added examples/set_image_quality.php for + testing the + imagick_set_image_quality() function. Thanks + to Derrick DeLoreno Threatt + (dthreatt@digitalcreations.net) for bringing + up the need for this function + and testing it. +0.9.8 - fixed critical error in call to strlen() in + _php_imagick_set_last_error(). + I strongly recommend you upgrade. +0.9.7 - fixed bug in imagick_free() that would + cause it to SEGFAULT everytime + it's called. + - fixed to work with versions of ImageMagick + >= 5.5.7 - special thanks to + James Huston (hustonjs@itadevelopment.com) + for helping make this happen. + - test compiled against ImageMagick 5.5.3, + 5.5.6 and 5.5.7 with success. + - test compiled against GraphicsMagick 1.0.1 + with success. +0.9.6 - functions added: + imagick_getcolorspace() + imagick_error() + - added a new example called + transparent_1x1.html and some explanatory + text. + I can think of many uses for this code. + - thanks to James Huston + (hustonjs@itadevelopment.com) for suggesting + imagick_getcolorspace() and testing it out. + - added GraphicsMagick (http:// + www.graphicsmagick.org) support to configure + script (enable it with --with-imagick-gm) + - imagick_readimage() now returns false if + ImageMagick ReadImage() fails. + - imagick_error() returns 1 string + representing any errors that have occurred + on an operation. IT IS LARGELY UNTESTED! + Beware! However, you can now + do things like: + $handle = imagick_readimage( "image.jpg" ) or + die( imagick_error() ) ; + - fixed configure script. It honours now + values returned by Magick-config. +0.9.5 - functions added: + imagick_newimagelist() + imagick_pushlist() + imagick_poplist() + imagick_mosaic() + imagick_setcompressiontype() + imagick_setcompressionquality() + - modified how all functions check to see if + ImageMagick has been initialized. + - added a number of new examples for + demonstrating how to use image lists. + - fixed bugs in _php_imagick_alloc_handle() + and _php_imagick_clear_errors() + causing core dump when working with image + lists. I wasn't checking to make + sure the structures I was examining were + allocated. + - thanks to James Huston + (hustonjs@itadevelopment.com) for suggesting + imagick_setcompressiontype() and + imagick_setcompressionquality() and + testing them. + - added supporting IMAGICK_COMPRESSION_* + constants for use with + imagick_setcompressiontype(). + - renamed imagick_setcompression() to + imagick_setcompressiontype(). + (note: this was done before the new version + was released so no users should + be impacted.) +0.9.4 - functions added: + imagick_flatten() + imagick_getmagick() + imagick_setfillopacity() + - fixed bad code in these functions: + imagick_despeckle() + imagick_edge() + imagick_emboss() + imagick_enhance() + imagick_gaussianblur() + imagick_medianfilter() + imagick_motionblur() + imagick_reducenoise() + imagick_shade() + imagick_sharpen() + imagick_spread() + imagick_unsharpmask() + - for the above functions, if call to + corresponding ImageMagick + function the module would probably core dump. + If it didn't the + results would be really buddy and weird. + - setfillopacity() thanks to Allen Condit, + condit@isri.unlv.edu. +0.9.3 - functions added: + imagick_zoom() + - the difference between imagick_zoom() and + imagick_resize() is + that zoom applies the blur and filter that + are defined by + the image. It is a much simpler way of + resizing an image. + - added imagick.dsp and modifications for + compiling under Windows. + - changed all instances of le_handle to + le_imagick_handle to avoid + future conflicts. +0.9.2 - functions added: + imagick_profile() + - created IMAGICK_PROFILE_* to support + imagick_profile(). + - this release is significant because of the + issue with Microsoft IE + where the image's profile causes the browser + to not properly render + images (you only get red X's). See this + posting: + http://studio.imagemagick.org/pipermail/ + magick-users/2002-September/005072.html + - added this filter IMAGICK_FILTER_UNKNOWN. + If the user specifies + this filter to imagick_resize(), the resize + function will take + whatever filter is defined by the image. + - modified imagick_resize() to take 6th + optional parameter that is + the modifier to the geometry to facility + building geometries such + as 800x600+200+200! or 450x230>. + - modified imagick_scale() to take 4th + optional parameter that is + the modifier to the geometry to facility + building geometries such + as 800x600+200+200! or 450x230>. + - modified imagick_sample() to take 4th + optional parameter that is + the modifier to the geometry to facility + building geometries such + as 800x600+200+200! or 450x230>. +0.9.1 - functions added: + imagick_chop() + imagick_crop() + imagick_flip() + imagick_flop() + imagick_roll() + imagick_getimagedepth() + imagick_getnumbercolors() + imagick_isgrayimage() + imagick_ismonochromeimage() + imagick_isopaqueimage() + imagick_ispaletteimage() + imagick_ordereddither() + imagick_composite() + - Added IMAGICK_COMPOSITE_OP_* for use with + imagick_composite(). +0.9.0.1 IMPORTANT!!! + This release breaks Backwards Compatibility + with the 0.1.x series of ext/imagick. read + the examples for more information (in + $doc_dir/imagick/examples). + + Big Credits go to Michael C. Montero, who + wrote the whole extension from scratch. + Without him, we would still be at 0.1.x. He + will be the future lead for this package (as + soon as he has an account on pear). + + 0.2-0.5 were never released within PEAR. + + version 0.9.0.1: + - more appropriate changelog/notes, no + changes in code. + + version 0.9: + - functions added: + imagick_next() + imagick_prev() + imagick_first() + imagick_goto() + imagick_getlistsize() + imagick_getlistindex() + imagick_getimagefromlist() + imagick_blob2image() + imagick_reducenoise() + imagick_shade() + imagick_sharpen() + imagick_spread() + imagick_threshold() + imagick_unsharpmask() + - cut over deprecation reporting to a more + standized and easier to use method + - cut over all php_error calls to standard + method + - added Christian's code to info function for + displaying a list of supported image formats + - rewrote all code to use proper parameter + parsing function + - fixed minor issue with a number of example + files; was nothing critical + + version: 0.5a + - functions added: + imagick_getcanvas() + imagick_blur() + imagick_despeckle() + imagick_edge() + imagick_emboss() + imagick_enhance() + imagick_gaussianblur() + imagick_medianfilter() + imagick_motionblur() + - one major change - renamed everything to + imagick*; I've joined my efforts with + Christian Stocker who had a previously + written but smaller extension + - magick_getcanvas() allows you to create a + blank image to draw on + - changed comment header in imagick.h to + match the one in imagick.c + - added Christian Stocker to credits + - moved over to Christian Stocker's + config.m4, removed the need for gen_configm4 + - rewrote INSTALL to reflect new config.m4 + - slight modifications to config.m4 to get it + to work properly + - added package.xml + - removed ChangeLog, everything is now in + package.xml + - removed imagick_free_reason() and + imagick_free_description() since they are no + longer necessary + - preceded all internal functions with _php_ + - created imagick_read() for backward + compatibility with old extension + - created imagick_write() for backward + compatibility with old extension + + version 0.4a + - functions added: + magick_writeimages() + magick_destroyhandle() + magick_image2blob() + magick_drawarc() + magick_drawcircle() + magick_drawpoint() + magick_border() + magick_frame() + magick_raise() + magick_getwidth() + magick_getheight() + magick_getmimetype() + magick_setfillcolor() + magick_setfontface() + magick_charcoal() + magick_implode() + magick_oilpaint() + magick_solarize() + magick_swirl() + magick_wave() + - more preparation for image lists + - fixed incorrect comments in some examples + - fixed incorrect calls to + magick_failedreason() and + magick_faileddescription() in most examples + - a number of examples weren't exiting + properly on errors, that's been fixed + - phpinfo() now displays available font + family and font names + - coolest function so far: magick_oilpaint(). + The output is awesome! + - added MaxRGB to phpinfo() section + + version 0.2a + - functions added: + magick_rotate() + magick_shear() + magick_contrast() + magick_equalize() + magick_gamma() + magick_level() + magick_modulate() + magick_negate() + magick_normalize() + magick_drawellipse() + - slight changes to output of gen_configm4 + - fixed comments in all examples after the + initial magick_readimage(), they were wrong + - fixed all examples so they exit properly on + errors + - fixed all examples so they work as either + standalone script or web page; they do better + output as well + - fixed output of magick info. when calling + phpinfo() + - more commenting + - significantly better error handling +0.9 IMPORTANT!!! + This release breaks BC with the 0.1.x series + of ext/imagick. + read the examples for more information (in + $doc_dir/imagick/examples) + + 0.2-0.5 were never released within PEAR. + + - functions added: + imagick_next() + imagick_prev() + imagick_first() + imagick_goto() + imagick_getlistsize() + imagick_getlistindex() + imagick_getimagefromlist() + imagick_blob2image() + imagick_reducenoise() + imagick_shade() + imagick_sharpen() + imagick_spread() + imagick_threshold() + imagick_unsharpmask() + - cut over deprecation reporting to a more + standized and easier + to use method + - cut over all php_error calls to standard + method + - added Christian's code to info function for + displaying a list of + supported image formats + - rewrote all code to use proper parameter + parsing function + - fixed minor issue with a number of example + files; was nothing + critical +0.1.2 - Added imagick_border(). (pierre-alain joye) + - Fixed return of annotate and rotate (true + on success). (pierre-alain joye) +0.1.1 - Make it compatible with ImageMagick 5.4.5 + (and this is also the needed version now) + - adjust package.xml to the new "pear build" + command