[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: docs updated, working copy of php draft now available online



Piotr Roszatycki escreveu:

On Friday 05 of August 2005 13:55, Jose Carlos do Nascimento wrote:
we can create packages,,  putting in debian/rules,,  somethink like
$(PEAR) install -n -R debian/$(package) $(pear_pkg)/package.xml;

I did it  in my pear packages;.
If someone would like to see :
http://www.psabs.com.br/debian/pool/main/p/php-soap/

But we need to pass a option to write  as  usr/share/php   and not
usr/local/share.

I'm using something like this:

pear \
    -v \
    -c $(pwd)/.pearrc \
    -d bin_dir=/usr/bin \
    -d doc_dir=/usr/share/php/docs \
    -d php_dir=/usr/share/php \
    -d data_dir=/usr/share/php/data \
    -d php_bin=/usr/bin/php \
    -d test_dir=/usr/share/php/tests \
    -d include_path=/usr/share/php \
    install --installroot=$(pwd)/tmp --force --nodeps package.xml

But... The PEAR policy is not compatible with Debian policy - I mean documentation, examples and tests location, so next step is real magic:

   mkdir -p $ROOT/usr/share/doc/$PACKAGE
   cp -a pear-build/tmp-pear/* $ROOT
test -d $ROOT/usr/share/php/5.1/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs test -d $ROOT/usr/share/php/5.1/docs/*/docs && cp -a $ROOT/usr/share/php/5.1/docs/*/docs $ROOT/usr /share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/5.1/docs/*/docs test -d $ROOT/usr/share/php/5.1/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/5.1/docs/* test -d $ROOT/usr/share/php/5.1/docs/* && cp -a $ROOT/usr/share/php/5.1/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/5.1/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/5.1/docs/* test -d $ROOT/usr/share/php/5.1/docs && cp -a $ROOT/usr/share/php/5.1/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/5.1/docs test -d $ROOT/usr/share/php/5.1/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests test -d $ROOT/usr/share/php/5.1/tests/*/tests && cp -a $ROOT/usr/share/php/5.1/tests/*/tests $ROOT /usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/5.1/tests/*/tests test -d $ROOT/usr/share/php/5.1/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/5.1/tests/* test -d $ROOT/usr/share/php/5.1/tests/* && cp -a $ROOT/usr/share/php/5.1/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/5.1/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/5.1/tests/* test -d $ROOT/usr/share/php/5.1/tests && cp -a $ROOT/usr/share/php/5.1/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/5.1/tests

I'm afraid that it is not possible to make easier this task.

ouch,, its  a lot of code :)

well,, we can create a archive .mk like in dpatch or we can create dh_php like in dh_perl,

what do you mean ?



Reply to: