Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F131573
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/debian/control b/debian/control
index ff2a702f..7fbd4e63 100644
--- a/debian/control
+++ b/debian/control
@@ -1,24 +1,27 @@
Source: php-mongodb
Section: php
Priority: optional
Maintainer: Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>
Uploaders: Ondřej Surý <ondrej@debian.org>
Build-Depends: debhelper (>= 9~),
dh-php,
libpcre3-dev,
libsasl2-dev,
+ libbson-dev,
+ libmongoc-dev,
+ libmongoc-priv-dev,
php-all-dev
Standards-Version: 3.9.6
Homepage: https://pecl.php.net/package/mongodb
Package: php-mongodb
Architecture: any
Depends: ucf,
${misc:Depends},
${php:Depends},
${shlibs:Depends}
Description: MongoDB driver for PHP
The purpose of this driver is to provide exceptionally thin glue
between MongoDB and PHP, implementing only fundemental and
performance-critical components necessary to build a fully-functional
MongoDB driver.
diff --git a/debian/rules b/debian/rules
index 95f63f08..0e49cc8e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,40 @@
#!/usr/bin/make -f
+SHELL=/bin/sh -e
+
PECL_NAME := $(shell dpkg-parsechangelog -SSource | sed -e s/php-//)
SOURCE_DIR := $(shell ls -1d $(PECL_NAME)-*)
INSTALL_ROOT := $(CURDIR)/debian/php-$(PECL_NAME)
+PHP_VERSIONS := $(shell /usr/sbin/phpquery -V)
+
%:
dh $@ --with php --sourcedirectory=$(SOURCE_DIR)
-override_dh_auto_install:
- dh_auto_install --sourcedirectory=$(SOURCE_DIR) -- INSTALL_ROOT=$(INSTALL_ROOT)
-
override_dh_auto_configure:
+ for v in $(PHP_VERSIONS); do \
+ cp -a $(CURDIR)/$(SOURCE_DIR) $(CURDIR)/build-$$v; \
+ cd $(CURDIR)/build-$$v; \
+ phpize$$v; \
+ done
cd $(SOURCE_DIR) && phpize
- dh_auto_configure --sourcedirectory=$(SOURCE_DIR) -- --enable-$(PECL_NAME)
+ for v in $(PHP_VERSIONS); do \
+ dh_auto_configure --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR) -- --enable-$(PECL_NAME) --with-php-config=/usr/bin/php-config$$v --with-libbson --with-libmongoc; \
+ done
+
+override_dh_auto_build:
+ for v in $(PHP_VERSIONS); do \
+ dh_auto_build --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR); \
+ done
+
+override_dh_auto_install:
+ for v in $(PHP_VERSIONS); do \
+ dh_auto_install --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR) -- INSTALL_ROOT=$(INSTALL_ROOT); \
+ done
override_dh_auto_clean:
- dh_auto_clean --sourcedirectory=$(SOURCE_DIR)
+ for v in $(PHP_VERSIONS); do \
+ dh_auto_clean --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR); \
+ rm -rf $(CURDIR)/build-$$v; \
+ done
cd $(SOURCE_DIR) && phpize --clean
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jun 16, 12:16 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71043
Default Alt Text
(2 KB)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline