--- libgd-text-perl-0.86.orig/debian/control +++ libgd-text-perl-0.86/debian/control @@ -0,0 +1,14 @@ +Source: libgd-text-perl +Section: perl +Priority: extra +Build-Depends-indep: cdbs, debhelper (>= 4.1), perl (>= 5.6.0-16), libgd-gd2-noxpm-perl | libgd-gd2-perl | libgd-gd1-noxpm-perl | libgd-gd1-perl, libtest-simple-perl +Maintainer: Jonas Smedegaard +Standards-Version: 3.5.10 + +Package: libgd-text-perl +Architecture: all +Depends: ${perl:Depends}, libgd-gd2-noxpm-perl | libgd-gd2-perl | libgd-gd1-noxpm-perl | libgd-gd1-perl +Conflicts: libgd-perl (<< 1.33-2.1) +Description: Text utilities for use with GD + This module provides a font-independent way of dealing with text in + GD, for use with the GD::Text::* modules and GD::Graph. --- libgd-text-perl-0.86.orig/debian/changelog +++ libgd-text-perl-0.86/debian/changelog @@ -0,0 +1,108 @@ +libgd-text-perl (0.86-1) unstable; urgency=low + + * New upstream release. + * Improved (bleeding-edge) cdbs included. + + -- Jonas Smedegaard Mon, 23 Jun 2003 05:35:28 +0200 + +libgd-text-perl (0.85-1) unstable; urgency=low + + * New upstream release. + * Include new font Dustismo Sans as example only (for now...). Add its + license info and reference to GPL v2 to debian/copyright. + * Change section to perl. + * Set standards-version to 3.5.10. + * Lower build-dependency on perl a bit to match policy. + * Repackage using cdbs (with local perl additions). + + -- Jonas Smedegaard Sat, 31 May 2003 05:39:50 +0200 + +libgd-text-perl (0.83+0.84nofont-1) unstable; urgency=medium + + * New upstream release. + * Repackage upstream tarball to not include the truetype font: It + lacks copyright and license info, and is therefore not allowed + within Debian. + + Make a note in debian/copyright about it. + + Disable tests - some of them depend on the font. + * Set urgency=medium for the above reason. + * Build-depend on libtest-simple-perl for 'make test' to actually do + something (sometimes it is worthwhile to RTFM). + * Change to new default compilation options according to policy 3.5.7. + * Claim to comply with policy version 3.5.8. + + -- Jonas Smedegaard Sun, 16 Feb 2003 04:51:13 +0100 + +libgd-text-perl (0.83-4) unstable; urgency=low + + * Depend on all variants of libgd-perl, and favor libgd-gd2-noxpm-perl + (GD 2.x is no longer considered beta by upstream). + + -- Jonas Smedegaard Tue, 12 Nov 2002 04:48:32 +0100 + +libgd-text-perl (0.83-3) unstable; urgency=low + + * Depend on either libgd-perl or libgd-gd2-perl. + + -- Jonas Smedegaard Thu, 29 Aug 2002 06:42:52 +0200 + +libgd-text-perl (0.83-2) unstable; urgency=low + + * Build the package using binary-indep build-target (closes: #157483). + * Use unversioned depend and versioned conflict on libgd-perl, now + that that is a virtual package. + * Skip 7 tests failing when built against libgd-gd1-perl. + * Build-depend-indep on either libgd-perl or libgd-gd2-perl. + + -- Jonas Smedegaard Thu, 29 Aug 2002 05:50:14 +0200 + +libgd-text-perl (0.83-1) unstable; urgency=low + + * Newer upstream version. + * Run 'make test' when building. Build-depend on libgd-perl. + + -- Jonas Smedegaard Wed, 3 Jul 2002 22:27:54 +0200 + +libgd-text-perl (0.82-1) unstable; urgency=low + + * New upstream release. + * Friendly takeover (Thanks, Piotr!): Change Maintainer field. + * Repackaged using make-dh-perl. + * Rewrite copyright. + * Bump up libgd-perl dependency to the first version mentioning + freetype support. + + -- Jonas Smedegaard Mon, 25 Mar 2002 21:30:06 +0100 + +libgd-text-perl (0.80-3) unstable; urgency=low + + * Build-Depends-Indep field in debian/control + + -- Piotr Roszatycki Wed, 17 Oct 2001 15:42:15 +0200 + +libgd-text-perl (0.80-2) unstable; urgency=low + + * woody release. + + -- Piotr Roszatycki Mon, 30 Jul 2001 11:39:28 +0200 + +libgd-text-perl (0.80-1) unstable; urgency=low + + * New upstream release + * Moved out from contrib to main + + -- Piotr Roszatycki Wed, 31 Jan 2001 11:27:28 +0000 + +libgd-text-perl (0.75-1) unstable; urgency=low + + * Depends: ${perl:Depends} + * debian/watch + * New upstream release + + -- Piotr Roszatycki Wed, 3 May 2000 16:16:44 +0200 + +libgd-text-perl (0.71-1) unstable; urgency=low + + * Initial Debian version. + + -- Piotr Roszatycki Fri, 7 Apr 2000 12:06:07 +0200 --- libgd-text-perl-0.86.orig/debian/rules +++ libgd-text-perl-0.86/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Jonas Smedegaard + +# Bleeding-edge CDBS included... +_cdbs_rules_path := debian/cdbs/rules +_cdbs_class_path := debian/cdbs/class + +# Put perlmodule.mk last to dh_clean temporary files not in MANIFEST +include $(_cdbs_rules_path)/debhelper.mk +include $(_cdbs_class_path)/perlmodule.mk + +DEB_INSTALL_EXAMPLES_libgd-text-perl := demo Dustismo_Sans.ttf --- libgd-text-perl-0.86.orig/debian/copyright +++ libgd-text-perl-0.86/debian/copyright @@ -0,0 +1,41 @@ +This is the Debian prepackaged version of perl GD::Graph. +It was originally Debianised by Piotr Roszatycki . + +Repackaged march 25, 2002 by Jonas Smedegaard . + +Source: + + http://www.cpan.org/modules/by-module/GD/ + +Authors: + + Martien Verbruggen + +Copyright and licensing terms: + + Copyright (c) 1999 Martien Verbruggen + mgjv@comdyn.com.au + + This package is free software; you can redistribute it and/or + modify it under the same terms as Perl itself. + +Copyright and licensing terms, Dustismo font: + + Dustismo is Copyright (C) 2002 Dustin Norlander + Homepage: http://www.cheapskatefonts.com + email: nutso@cheapskatefonts.com + + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + +On Debian GNU systems, the complete text of both the Artistic License and +the GNU Public License can be found below "/usr/share/common-licenses/". --- libgd-text-perl-0.86.orig/debian/watch +++ libgd-text-perl-0.86/debian/watch @@ -0,0 +1 @@ +http://www.cpan.org /modules/by-module/GD/ GDTextUtil-(.*)\.tar.gz debian --- libgd-text-perl-0.86.orig/debian/compat +++ libgd-text-perl-0.86/debian/compat @@ -0,0 +1 @@ +4 --- libgd-text-perl-0.86.orig/debian/cdbs/class/makefile-vars.mk +++ libgd-text-perl-0.86/debian/cdbs/class/makefile-vars.mk @@ -0,0 +1,56 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Defines useful variables for packages which have a Makefile +# +# 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, 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. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_makefile_vars +_cdbs_class_makefile_vars := 1 + +include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix) + +DEB_MAKE_ENVVARS = +DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) CFLAGS=$(if $(CFLAGS_$(cdbs_curpkg)),"$(CFLAGS_$(cdbs_curpkg))","$(CFLAGS)") CXXFLAGS=$(if $(CXXFLAGS_$(cdbs_curpkg)),"$(CXXFLAGS_$(cdbs_curpkg))","$(CXXFLAGS)") + +# This variable is deprecated. +DEB_BUILD_MAKE_TARGET = +# New in 0.2.8. +DEB_MAKE_BUILD_TARGET = $(DEB_BUILD_MAKE_TARGET) + +# If your Makefile provides an "install" target, you need to give the requisite commands +# here to install it into the staging directory. For automake-using programs, this +# looks like: install DESTDIR=$(DEB_DESTDIR) +# If you're using automake though, you likely want to be including autotools.mk instead +# of this file. + +# This variable is deprecated. +DEB_CLEAN_MAKE_TARGET = clean +# New in 0.2.8. +DEB_MAKE_CLEAN_TARGET = $(DEB_CLEAN_MAKE_TARGET) + +# This variable is deprecated. +DEB_MAKE_TEST_TARGET = check +# New in 0.4.2. +DEB_MAKE_CHECK_TARGET = $(DEB_MAKE_TEST_TARGET) + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/class/langcore.mk +++ libgd-text-perl-0.86/debian/cdbs/class/langcore.mk @@ -0,0 +1,44 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Sets core language variables, such as CFLAGS and CXXFLAGS +# +# 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, 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. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_langcore +_cdbs_class_langcore := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +DEB_C_DEFAULT_OPT = -O2 +DEB_CXX_DEFAULT_OPT = $(DEB_C_DEFAULT_OPT) +CFLAGS = -g -Wall +CXXFLAGS = -g -Wall +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += $(DEB_C_DEFAULT_OPT) + CXXFLAGS += $(DEB_CXX_DEFAULT_OPT) +endif + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/class/makefile.mk +++ libgd-text-perl-0.86/debian/cdbs/class/makefile.mk @@ -0,0 +1,59 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Builds and cleans packages which have a Makefile +# +# 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, 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. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_makefile +_cdbs_class_makefile := 1 + +include $(_cdbs_class_path)/makefile-vars.mk$(_cdbs_makefile_suffix) + +common-build-arch common-build-indep:: common-build-impl +common-build-impl:: + $(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET) + +clean:: + $(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET) || true + +common-install-arch common-install-indep:: common-install-impl +common-install-impl:: + @if test -n "$(DEB_MAKE_INSTALL_TARGET)"; then \ + echo $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) $(DEB_MAKE_INSTALL_TARGET); \ + $(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET); \ + else \ + echo "DEB_MAKE_INSTALL_TARGET unset, skipping default makefile.mk common-install target"; \ + fi + +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) +common-post-build-arch common-post-build-indep:: common-post-build-impl +common-post-build-impl:: + @if test -n "$(DEB_MAKE_CHECK_TARGET)"; then \ + echo $(DEB_MAKE_INVOKE) $(DEB_MAKE_CHECK_TARGET); \ + $(DEB_MAKE_INVOKE) $(DEB_MAKE_CHECK_TARGET); \ + else \ + echo "DEB_MAKE_CHECK_TARGET unset, not running checks"; \ + fi +endif + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/class/perlmodule-vars.mk +++ libgd-text-perl-0.86/debian/cdbs/class/perlmodule-vars.mk @@ -0,0 +1,43 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Colin Walters and Jonas +# Smedegaard +# Description: Defines useful variables for Perl modules +# +# 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, 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. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_perlmodule_vars +_cdbs_class_perlmodule_vars := 1 + +include $(_cdbs_class_path)/makefile-vars.mk$(_cdbs_makefile_suffix) + +# Override optimizations to follow Perl Policy 3.3 +DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) OPTIMIZE="$(CFLAGS)" + +# Set some MakeMaker defaults +DEB_MAKE_BUILD_TARGET = all +DEB_MAKE_CLEAN_TARGET = distclean +DEB_MAKE_CHECK_TARGET = test +DEB_MAKE_INSTALL_TARGET = install PREFIX=$(DEB_DESTDIR)/usr +DEB_MAKEMAKER_INVOKE = /usr/bin/perl Makefile.PL INSTALLDIRS=vendor + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/class/perlmodule.mk +++ libgd-text-perl-0.86/debian/cdbs/class/perlmodule.mk @@ -0,0 +1,43 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Colin Walters and Jonas +# Smedegaard +# Description: Configures, builds, and cleans Perl modules +# +# 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, 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. + + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_class_perlmodule +_cdbs_class_perlmodule := 1 + +include $(_cdbs_class_path)/perlmodule-vars.mk$(_cdbs_makefile_suffix) + +include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix) + +ifneq ($(DEB_BUILDDIR),$(DEB_SRCDIR)) +$(error DEB_BUILDDIR and DEB_SRCDIR must be the same for Perl builds.) +endif + +common-configure-arch common-configure-indep:: Makefile +Makefile: + (cd $(DEB_BUILDDIR) && $(DEB_MAKEMAKER_INVOKE) $(DEB_MAKEMAKER_USER_FLAGS) ) + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/rules/debhelper.mk +++ libgd-text-perl-0.86/debian/cdbs/rules/debhelper.mk @@ -0,0 +1,205 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Uses Debhelper to implement the binary package building stage +# Note that we require debhelper (>= 4.1.0). +# +# 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, 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. + +#### +# General variables implemented by this rule file: +# +# DEB_INSTALL_DIRS_ALL +# Subdirectories to create in installation staging directory for every package +# DEB_INSTALL_DIRS_ +# Like the above, but for a particular package . +# DEB_INSTALL_DOCS_ALL +# Files which should go in /usr/share/doc/ for every package +# DEB_INSTALL_DOCS_ +# Files which should go in /usr/share/doc/ for package +# DEB_INSTALL_CHANGELOGS_ALL +# File which should be interpreted as upstream changelog +# DEB_COMPRESS_EXCLUDE +# Shell wildcards matching files which should not be compressed. +# DEB_FIXPERMS_EXCLUDE +# Shell wildcards matching files which should not have their permissions changed. +# DEB_SHLIBDEPS_LIBRARY_package +# The name of the current library package +# DEB_SHLIBDEPS_INCLUDE +# A space-separated list of library paths to search for dependency info +# DEB_SHLIBDEPS_INCLUDE_package +# Like the above, but for a particular package. +# DEB_PERL_INCLUDE +# A space-separated list of paths to search for perl modules +# DEB_PERL_INCLUDE_package +# Like the above, but for a particular package. +# DEB_UPDATE_RCD_PARAMS +# Arguments to pass to update-rc.d in init scripts +#### +# Special variables used by this rule file: +# +# DEB_DH_MAKESHLIBS_ARGS_ALL +# Arguments passed directly to dh_makeshlibs, for all packages +# DEB_DH_MAKESHLIBS_ARGS_ +# Arguments passed directly to dh_makeshlibs, for a particular package +# DEB_DH_MAKESHLIBS_ARGS +# Completely override argument passing to dh_makeshlibs. +# DEB_DH_SHLIBDEPS_ARGS +# Completely override argument passing to dh_shlibdeps. +# DEB_DH_PERL_ARGS +# Completely override argument passing to dh_perl. +#### + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_rules_debhelper +_cdbs_rules_debhelper := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +DH_COMPAT=4 + +DEB_INSTALL_DIRS_ALL = +DEB_INSTALL_DOCS_ALL = $(shell for f in README NEWS TODO BUGS AUTHORS; do if test -s $$f; then echo $$f; fi; done) +DEB_INSTALL_CHANGELOGS_ALL = $(if $(DEB_ISNATIVE),,$(shell for f in ChangeLog Changelog Changes CHANGES; do if test -s $$f; then echo $$f; break; fi; done)) + +cdbs_add_dashx = $(foreach i,$(1),$(patsubst %,-X %,$(i))) + +DEB_DH_MAKESHLIBS_ARGS = $(DEB_DH_MAKESHLIBS_ARGS_ALL) $(DEB_DH_MAKESHLIBS_ARGS_$(cdbs_curpkg)) +DEB_DH_SHLIBDEPS_ARGS = $(if $(DEB_SHLIBDEPS_LIBRARY_$(cdbs_curpkg)),-L $(DEB_SHLIBDEPS_LIBRARY_$(cdbs_curpkg))) $(if $(DEB_SHLIBDEPS_INCLUDE_$(cdbs_curpkg))$(DEB_SHLIBDEPS_INCLUDE),-l $(shell echo $(DEB_SHLIBDEPS_INCLUDE_$(cdbs_curpkg)):$(DEB_SHLIBDEPS_INCLUDE) | perl -pe 's/ /:/g;')) + +DEB_DH_PERL_ARGS = $(if $(DEB_PERL_INCLUDE_$(cdbs_curpkg))$(DEB_PERL_INCLUDE),$(shell echo $(DEB_PERL_INCLUDE_$(cdbs_curpkg)) $(DEB_PERL_INCLUDE))) + +pre-build:: + if ! test -f debian/compat; then echo $(DH_COMPAT) > debian/compat; fi + +clean:: + dh_clean + +common-install-prehook-arch common-install-prehook-indep:: common-install-prehook-impl +common-install-prehook-impl:: + dh_clean -k + dh_installdirs -A $(DEB_INSTALL_DIRS_ALL) + +$(patsubst %,install/%,$(DEB_ALL_PACKAGES)) :: install/%: + dh_installdirs -p$(cdbs_curpkg) $(DEB_INSTALL_DIRS_$(cdbs_curpkg)) + +# Create .debs or .udebs as we see fit +$(patsubst %,binary/%,$(DEB_PACKAGES)) :: binary/% : binary-makedeb/% +$(patsubst %,binary/%,$(DEB_UDEB_PACKAGES)) :: binary/% : binary-makeudeb/% + +#### +# General Debian package creation rules. +#### + +# This rule is called once for each (non-udeb) package. It does the work +# of installing to debian/; this includes running +# dh_install to split the source from debian/tmp, as well as installing +# ChangeLogs and the like. +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + dh_installdocs -p$(cdbs_curpkg) $(DEB_INSTALL_DOCS_ALL) $(DEB_INSTALL_DOCS_$(cdbs_curpkg)) + dh_installexamples -p$(cdbs_curpkg) $(DEB_INSTALL_EXAMPLES_$(cdbs_curpkg)) + dh_installman -p$(cdbs_curpkg) $(DEB_INSTALL_MANPAGES_$(cdbs_curpkg)) + dh_installinfo -p$(cdbs_curpkg) $(DEB_INSTALL_INFO_$(cdbs_curpkg)) + dh_installmenu -p$(cdbs_curpkg) $(DEB_DH_INSTALL_MENU_ARGS) + dh_installcron -p$(cdbs_curpkg) $(DEB_DH_INSTALL_CRON_ARGS) + dh_installinit -p$(cdbs_curpkg) $(if $(DEB_UPDATE_RCD_PARAMS),--update-rcd-params=$(DEB_UPDATE_RCD_PARAMS)) $(DEB_DH_INSTALLINIT_ARGS) + dh_installdebconf -p$(cdbs_curpkg) $(DEB_DH_INSTALLDEBCONF_ARGS) + dh_installemacsen -p$(cdbs_curpkg) $(if $(DEB_EMACS_PRIORITY),--priority=$(DEB_EMACS_PRIORITY)) $(if $(DEB_EMACS_FLAVOR),--flavor=$(DEB_EMACS_FLAVOR)) $(DEB_DH_INSTALLEMACSEN_ARGS) + dh_installpam -p$(cdbs_curpkg) $(DEB_DH_INSTALLPAM_ARGS) + dh_installchangelogs -p$(cdbs_curpkg) $(DEB_INSTALL_CHANGELOGS_ALL) $(DEB_INSTALL_CHANGELOGS_$(cdbs_curpkg)) + dh_install -p$(cdbs_curpkg) $(if $(DEB_DH_INSTALL_SOURCEDIR),--sourcedir=$(DEB_DH_INSTALL_SOURCEDIR)) $(DEB_DH_INSTALL_ARGS) + dh_link -p$(cdbs_curpkg) $(DEB_DH_LINK_ARGS) + +# This rule is called after all packages have been installed, and their +# post-install hooks have been run. +common-binary-post-install-arch:: $(patsubst %,binary-post-install/%,$(DEB_ARCH_PACKAGES)) +common-binary-post-install-indep:: $(patsubst %,binary-post-install/%,$(DEB_INDEP_PACKAGES)) + +# This rule is called once for each package; it's a general hook +# to do things like remove files, etc. +$(patsubst %,binary-post-install/%,$(DEB_PACKAGES)) :: binary-post-install/%: binary-install/% + +# This rule is called after installation and the post-install hooks, +# to strip files. +$(patsubst %,binary-strip/%,$(DEB_ARCH_PACKAGES)) :: binary-strip/%: common-binary-post-install-arch binary-strip-IMPL/% +$(patsubst %,binary-strip/%,$(DEB_INDEP_PACKAGES)) :: binary-strip/%: common-binary-post-install-indep binary-strip-IMPL/% +$(patsubst %,binary-strip-IMPL/%,$(DEB_PACKAGES)) :: binary-strip-IMPL/%: + dh_strip -p$(cdbs_curpkg) $(foreach entry,$(DEB_STRIP_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_STRIP_ARGS) + +# This rule is called after stripping; it compresses, fixes permissions, +# and sets up shared library information. +$(patsubst %,binary-fixup/%,$(DEB_PACKAGES)) :: binary-fixup/%: binary-strip/% + dh_compress -p$(cdbs_curpkg) $(foreach entry,$(DEB_COMPRESS_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_COMPRESS_ARGS) + dh_fixperms -p$(cdbs_curpkg) $(foreach entry,$(DEB_FIXPERMS_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_FIXPERMS_ARGS) + dh_makeshlibs -p$(cdbs_curpkg) $(DEB_DH_MAKESHLIBS_ARGS) + +# This rule is called right before building the binary .deb packages +# for each package, but after the binary-predeb hooks have been run. +common-binary-predeb-arch:: $(patsubst %,binary-predeb/%,$(DEB_ARCH_PACKAGES)) +common-binary-predeb-indep:: $(patsubst %,binary-predeb/%,$(DEB_INDEP_PACKAGES)) + +# This rule is called right before a packages' .deb file is made. +# It is a good place to make programs setuid, etc. +$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) :: binary-predeb/%: binary-fixup/% + +# This rule is called to create a package. Generally it's not going to be +# useful to hook things onto this rule. +$(patsubst %,binary-makedeb/%,$(DEB_ARCH_PACKAGES)) :: binary-makedeb/% : common-binary-predeb-arch binary-makedeb-IMPL/% +$(patsubst %,binary-makedeb/%,$(DEB_INDEP_PACKAGES)) :: binary-makedeb/% : common-binary-predeb-indep binary-makedeb-IMPL/% +$(patsubst %,binary-makedeb-IMPL/%,$(DEB_PACKAGES)) :: binary-makedeb-IMPL/% : + dh_installdeb -p$(cdbs_curpkg) $(DEB_DH_INSTALLDEB_ARGS) + dh_perl -p$(cdbs_curpkg) $(DEB_DH_PERL_ARGS) + dh_shlibdeps -p$(cdbs_curpkg) $(DEB_DH_SHLIBDEPS_ARGS) + dh_gencontrol -p$(cdbs_curpkg) $(DEB_DH_GENCONTROL_ARGS) + dh_md5sums -p$(cdbs_curpkg) $(DEB_DH_MD5SUMS_ARGS) + dh_builddeb -p$(cdbs_curpkg) $(DEB_DH_BUILDDEB_ARGS) + +## Deprecated +common-binary-post-install:: common-binary-post-install-arch common-binary-post-install-indep +common-binary-predeb:: common-binary-predeb-arch common-binary-predeb-indep + +#### +# The special .udeb building rules. Note they don't handle the arch/indep +# split yet. +#### + +$(patsubst %,binary-install-udeb/%,$(DEB_UDEB_PACKAGES)) :: binary-install-udeb/%: + dh_installcron -p$(cdbs_curpkg) $(DEB_DH_INSTALLCRON_ARGS) + dh_installdebconf -p$(cdbs_curpkg) $(DEB_DH_INSTALLDEBCONF_ARGS) + dh_installpam -p$(cdbs_curpkg) $(DEB_DH_INSTALLPAM_ARGS) + dh_installinit -p$(cdbs_curpkg) $(DEB_DH_INSTALLINIT_ARGS) + dh_install -p$(cdbs_curpkg) $(DEB_DH_INSTALL_ARGS) + +common-binary-post-install-udeb:: $(patsubst %,binary-post-install-udeb/%,$(DEB_UDEB_PACKAGES)) + +$(patsubst %,binary-post-install-udeb/%,$(DEB_UDEB_PACKAGES)) :: binary-post-install-udeb/%: binary-install-udeb/% + +$(patsubst %,binary-makeudeb/%,$(DEB_UDEB_PACKAGES)) :: binary-makeudeb/% : common-binary-post-install-udeb + dh_compress -p$(cdbs_curpkg) $(foreach entry,$(DEB_COMPRESS_EXCLUDE),$(patsubst %,-X %,$(entry))) + dh_fixperms -p$(cdbs_curpkg) $(foreach entry,$(DEB_FIXPERMS_EXCLUDE),$(patsubst %,-X %,$(entry))) + dh_makeshlibs -p$(cdbs_curpkg) $(DEB_DH_MAKESHLIBS_ARGS) + dh_installdeb -p$(cdbs_curpkg) $(DEB_DH_INSTALLDEB_ARGS) + dh_perl -p$(cdbs_curpkg) $(DEB_DH_PERL_ARGS) + dh_shlibdeps -p$(cdbs_curpkg) $(DEB_DH_SHLIBDEPS_ARGS) + dh_gencontrol -p$(cdbs_curpkg) -- -fdebian/files~ + dpkg-distaddfile $(cdbs_curpkg)_$(DEB_VERSION)_$(DEB_ARCH).udeb debian-installer optional + dh_builddeb -p$(cdbs_curpkg) --filename=$(cdbs_curpkg)_$(DEB_VERSION)_$(DEB_ARCH).udeb + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/rules/buildcore.mk +++ libgd-text-perl-0.86/debian/cdbs/rules/buildcore.mk @@ -0,0 +1,137 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Defines the rule framework +# +# 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, 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. + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_rules_buildcore +_cdbs_rules_buildcore := 1 + +include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix) + +# Can we change this to cdbs_curpkg = $(notdir $@) ? +cdbs_curpkg = $(filter-out %/,$(subst /,/ ,$@)) + +testdir: + test -x debian/rules + +testroot: + test `id -u` = 0 + +makebuilddir:: + if [ ! -d $(DEB_BUILDDIR) ]; then \ + mkdir -p $(DEB_BUILDDIR); \ + fi + +cleanbuilddir:: + -if test "$(DEB_BUILDDIR)" != "$(DEB_SRCDIR)"; then rmdir $(DEB_BUILDDIR); fi + +# This target is called before almost anything else happens. It's a good place +# to do stuff like unpack extra source tarballs, apply patches, and stuff. In +# the future it will be a good place to generate debian/control, but right +# now we don't support that very well. +pre-build:: testdir makebuilddir + +# This target is called after patches are applied. Right now it's only used +# by the patch system. +post-patches:: pre-build + +# This target should be used to configure the package before building. Typically +# this involves running things like ./configure. +common-configure-arch:: post-patches +common-configure-indep:: post-patches +$(patsubst %,configure/%,$(DEB_ARCH_PACKAGES)) :: configure/% : common-configure-arch +$(patsubst %,configure/%,$(DEB_INDEP_PACKAGES)) :: configure/% : common-configure-indep + +# This is a required Debian target. It is not however useful in +# all cases, so it doesn't do anything by default. +build: build-arch build-indep + +# This target should take care of actually compiling the package from source. +# Most often this involves invoking "make". +common-build-arch:: testdir $(patsubst %,configure/%,$(DEB_ARCH_PACKAGES)) +common-build-indep:: testdir $(patsubst %,configure/%,$(DEB_INDEP_PACKAGES)) +$(patsubst %,build/%,$(DEB_ARCH_PACKAGES)) :: build/% : common-build-arch configure/% +$(patsubst %,build/%,$(DEB_INDEP_PACKAGES)) :: build/% : common-build-indep configure/% + +# This rule is for stuff to run after the build process. Typically +# this will be things like 'make check'. +common-post-build-arch:: common-build-arch $(patsubst %,build/%,$(DEB_ARCH_PACKAGES)) +common-post-build-indep:: common-build-indep $(patsubst %,build/%,$(DEB_INDEP_PACKAGES)) + +# Required Debian targets. +build-arch: $(patsubst %,build/%,$(DEB_ARCH_PACKAGES)) +build-indep: $(patsubst %,build/%,$(DEB_INDEP_PACKAGES)) + +# This rule is used to prepare the source package before a diff is generated. +# Typically you will invoke upstream's "make clean" rule here, although you +# can also hook in other stuff here. Many of the included rules and classes +# add stuff to this rule. +clean:: testdir testroot reverse-patches cleanbuilddir + +# This rule is called before the common-install target. It's currently only +# used by debhelper.mk, to run dh_clean -k. +common-install-prehook-arch:: +common-install-prehook-indep:: + +# This target should do all the work of installing the package into the +# staging directory (debian/packagename or debian/tmp). +common-install-arch:: testdir common-install-prehook common-post-build-arch +common-install-indep:: testdir common-install-prehook common-post-build-indep + +# Required Debian targets. +install-arch: $(patsubst %,install/%,$(DEB_ARCH_PACKAGES)) +install-indep: $(patsubst %,install/%,$(DEB_INDEP_PACKAGES)) + +# These rules should do any installation work specific to a particular package. +$(patsubst %,install/%,$(DEB_ARCH_PACKAGES)) :: install/% : testdir testroot common-install-arch build/% +$(patsubst %,install/%,$(DEB_INDEP_PACKAGES)) :: install/% : testdir testroot common-install-indep build/% + +# This rule is called after all packages are installed. +common-binary-arch:: testdir testroot $(patsubst %,install/%,$(DEB_ARCH_PACKAGES)) common-install-arch +common-binary-indep:: testdir testroot $(patsubst %,install/%,$(DEB_INDEP_PACKAGES)) common-install-indep + +# Required Debian targets +binary-indep: common-binary $(patsubst %,binary/%,$(DEB_INDEP_PACKAGES)) +binary-arch: common-binary $(patsubst %,binary/%,$(DEB_ARCH_PACKAGES)) + +# These rules should do all the work of actually creating a .deb from the staging +# directory. +$(patsubst %,binary/%,$(DEB_ARCH_PACKAGES)) :: binary/% : testdir testroot common-binary-arch install/% +$(patsubst %,binary/%,$(DEB_INDEP_PACKAGES)) :: binary/% : testdir testroot common-binary-indep install/% + +# Required Debian target +binary: binary-indep binary-arch + +## +# Deprecated targets. You should use the -arch and -indep targets instead. +## +common-configure:: common-configure-arch common-configure-impl +common-build:: common-build-arch common-build-indep +common-post-build:: common-post-build-arch common-post-build-indep +common-install-prehook:: common-install-prehook-arch common-install-prehook-indep +common-install:: common-install-arch common-install-indep +common-binary:: common-binary-arch common-binary-indep + +.PHONY: pre-build apply-patches reverse-patches post-patches common-configure-arch common-configure-indep $(patsubst %,configure/%,$(DEB_ALL_PACKAGES)) build common-build-arch common-build-indep $(patsubst %,build/%,$(DEB_ALL_PACKAGES)) build-arch build-indep clean common-install-arch common-install-indep install-arch install-indep $(patsubst %,install/%,$(DEB_ALL_PACKAGES)) common-binary-arch common-binary-indep $(patsubst %,binary/%,$(DEB_ALL_PACKAGES)) binary-indep binary-arch binary $(DEB_PHONY_RULES) + +endif --- libgd-text-perl-0.86.orig/debian/cdbs/rules/buildvars.mk +++ libgd-text-perl-0.86/debian/cdbs/rules/buildvars.mk @@ -0,0 +1,68 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2002,2003 Colin Walters +# Description: Defines some useful variables, but no rules +# +# 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, 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. + +ifndef _cdbs_bootstrap +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class +endif + +ifndef _cdbs_rules_buildvars +_cdbs_rules_buildvars := 1 + +# Common useful variables +DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':')) +DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') +DEB_ISNATIVE := $(shell dpkg-parsechangelog | egrep '^Version:' | perl -ne 'print if not /^Version:\s*.*-/;') + +# Split into arch/indep packages +ifneq ($(_cdbs_bootstrap),level0) +DEB_INDEP_PACKAGES := $(strip $(shell $(_cdbs_scripts_path)/list-packages indep)) +DEB_ARCH_PACKAGES := $(filter-out $(DEB_INDEP_PACKAGES),$(strip $(shell $(_cdbs_scripts_path)/list-packages same))) + +# Split into normal and udeb packages +DEB_PACKAGES = $(filter-out %-udeb, $(DEB_ARCH_PACKAGES) $(DEB_INDEP_PACKAGES)) +DEB_UDEB_PACKAGES = $(filter %-udeb, $(DEB_ARCH_PACKAGES) $(DEB_INDEP_PACKAGES)) +# Too much bother for now. If someone complains we'll fix it. +#DEB_ARCH_UDEB_PACKAGES = $(filter %-udeb, $(DEB_ARCH_PACKAGES)) +#DEB_INDEP_UDEB_PACKAGES = $(filter %-udeb, $(DEB_INDEP_PACKAGES)) + +# A handy list of every package, udeb or not +DEB_ALL_PACKAGES = $(DEB_PACKAGES) $(DEB_UDEB_PACKAGES) +endif + +# Some support for srcdir != builddir builds. +# These are relative to the root of the package +DEB_SRCDIR ?= . +DEB_BUILDDIR ?= $(strip $(DEB_SRCDIR)) + +# Miscellaneous bits +DEB_ARCH = $(shell dpkg --print-architecture) +DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +ifeq ($(words $(DEB_PACKAGES)),1) + DEB_DESTDIR = $(CURDIR)/debian/$(strip $(DEB_PACKAGES)) +else + DEB_DESTDIR = $(CURDIR)/debian/tmp +endif + +endif