[pkg-php-pear] deb packages looking for sponsorship

Robin Gustafsson robin at rgson.se
Sun Jun 12 15:22:21 BST 2022


Hi,

> >>> Let's start with php-league-csv. It should be ready for a new review now:
> >>> * https://salsa.debian.org/php-team/pear/php-league-csv
> […]
> >> You should not install the testsuite (src/*Test.php files).
> >
> > Is there a way to prevent their installation without listing in d/install one
> > by one only the files to install? I haven't found any such thing except making
> > d/install an executable.
>
> Welcome in real world where every upstream do it there own way… One way
> to handle such case could be to copy the src directory into another
> directory (e.g., “cp -a src real_src”), from there move the testfiles
> into yet another directory (e.g., “mkdir tests && mv real_src/*Test.php
> tests/”) and only then, create the {src_real,vendor}/autoload.php files.

I think dh_install's -X option would be sufficient (in debian/rules):

    override_dh_install:
            dh_install -XTest.php

That's what I did for php-league-mime-type-detection.

Regards,
Robin



More information about the pkg-php-pear mailing list