1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
UPSTREAM := $(DEB_VERSION_UPSTREAM)
%:
dh $@
execute_before_dh_auto_build:
phpabtpl composer.json > debian/autoload.php.tpl
phpab \
--tolerant \
--output src/autoload.php \
--template debian/autoload.php.tpl \
src
mkdir --parents vendor data/Doctrine Doctrine
ln -s ../../doctrine-mapping.xsd data/Doctrine/
cp -r src Doctrine/ORM
phpab \
--tolerant \
--exclude tests/Tests/Models/DDC3597/DDC3597Image.php \
--exclude tests/Tests/Models/DDC4006/DDC4006User.php \
--exclude tests/Tests/Models/Enums/Product.php \
--exclude tests/Tests/ORM/Functional/Ticket/DDC3303Test.php \
--exclude tests/Tests/ORM/Functional/Ticket/DDC3582Test.php \
--exclude tests/Tests/ORM/Functional/Ticket/DDC6460Test.php \
--exclude tests/Tests/ORM/Functional/Ticket/GH5804Test.php \
--exclude tests/Tests/ORM/Functional/ValueObjectsTest.php \
--exclude tests/Tests/ORM/Mapping/MappingDriverTestCase.php \
--output vendor/autoload.php \
--template debian/autoload.tests.php.tpl \
tests
override_dh_auto_test:
phpunit
execute_after_dh_install:
sed -i "s/@VERSION@/$(UPSTREAM)/;s/\+dfsg//" \
$(CURDIR)/debian/php-doctrine-orm/usr/share/php/Doctrine/ORM/Version.php
override_dh_installchangelogs:
dh_installchangelogs debian/upstream/changelog
|