Skip to content

fix debian rules,control for php7.0 #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ Source: php-tarantool
Priority: optional
Maintainer: Dmitry E. Oboukhov <[email protected]>
Build-Depends: debhelper (>= 8),
php5-dev | php-all-dev,
php7.0-dev | php-all-dev,
pkg-config
Section: php
Standards-Version: 3.9.4
Homepage: https://github.com/tarantool/tarantool-php
VCS-Browser: https://github.com/tarantool/tarantool-php
VCS-Git: git://github.com/tarantool/tarantool-php.git

Package: php5-tarantool
Package: php7.0-tarantool
Architecture: any
Priority: optional
Conflicts: libtarantool-php
Expand Down
16 changes: 8 additions & 8 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

include /usr/share/cdbs/1/rules/debhelper.mk

phpapi = $(shell php-config5 --phpapi)
phpapi = $(shell php-config7.0 --phpapi)
version = $(shell dpkg-parsechangelog \
|grep ^Version|awk '{print $$2}'|sed 's/-.*//')

makebuilddir/php5-tarantool::
makebuilddir/php7.0-tarantool::
phpize
./configure
make
echo "php:Depends=phpapi-$(phpapi)" > debian/php5-tarantool.substvars
echo "php:Depends=phpapi-$(phpapi)" > debian/php7.0-tarantool.substvars

install/php5-tarantool::
install -m 0755 -d debian/php5-tarantool/usr/lib/php5/$(phpapi)/
install -m 0755 -d debian/php5-tarantool/etc/php5/mods-available/
install/php7.0-tarantool::
install -m 0755 -d debian/php7.0-tarantool/usr/lib/php/$(phpapi)/
install -m 0755 -d debian/php7.0-tarantool/etc/php/7.0/mods-available/
install -m 0755 modules/tarantool.so \
debian/php5-tarantool/usr/lib/php5/$(phpapi)/
debian/php7.0-tarantool/usr/lib/php/$(phpapi)/
echo extension=tarantool.so \
> debian/php5-tarantool/etc/php5/mods-available/tarantool.ini
> debian/php7.0-tarantool/etc/php/7.0/mods-available/tarantool.ini

clean::
phpize --clean
Expand Down