Package: dh-make-php
Version: 0.0.10-1
Severity: wishlist
Tags: patch
Hey Uwe,
I just realized that it would be very helpful if you based your
dh-make-php packages off of CDBS. First of all, it could simplify the
debian/rules files.
Second, and potentially most useful, you could actually move most of
your current debian/rules files into CDBS scripts. For example, you
could create a /usr/share/cdbs/1/rules/pearpackage.mk that automatically
did everything! A nice advantage of this would be that you could make
improvements that would help all of us, rather than the current
situation where we all have to modify our rules files whenever something
needs to be fixed.
As a point of reference, here is my new debian/rules using CDBS. You
could initially use this for your template, but eventually most of it
could be integrated into a common pearpackage.mk.
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
PEAR_PKG=Pager
DEBIAN_PKG=php-pager
PEAR=/usr/bin/pear
PEAR_PHP_DIR=/usr/share/php
SOURCE_DIR=`ls -d $(PEAR_PKG)-*`
common-configure-indep::
ln -f -s ../package.xml $(SOURCE_DIR)
xsltproc --nonet --novalid debian/changelog.xsl package.xml >
debian/Changelog
clean::
rm -f debian/pearrc debian/Changelog $(SOURCE_DIR)/package.xml
common-install-indep::
$(PEAR) install --nodeps -R debian/$(DEBIAN_PKG)
$(SOURCE_DIR)/package.xml
# remove unwanted files
rm -f debian/pearrc \
debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/.lock \
debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/.filemap
cheers,
Charles
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (900, 'testing'), (800, 'stable'), (70, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages dh-make-php depends on:
ii xsltproc 1.1.15-1 XSLT command line processor
dh-make-php recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]