From: Michael Wallner Date: Fri, 4 Sep 2015 10:50:20 +0000 (+0200) Subject: fix packaging X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ee69aa5f36ccc63ef92888e345cfee1a36ac6d4b;p=pharext%2Fpharext.org fix packaging --- diff --git a/app/Pharext/Package.php b/app/Pharext/Package.php index 342a103..0f2e2f4 100644 --- a/app/Pharext/Package.php +++ b/app/Pharext/Package.php @@ -44,10 +44,12 @@ class Package "name" => $this->name, "release" => $this->release, "license" => $this->source->getLicense(), - "stub" => "pharext_installer.php", "type" => $this->zend ? "zend_extension" : "extension", ]; - $this->file = (new Task\PharBuild($this->source, $meta))->run(); + /* needed for the packager, so the pharstub task can find includes */ + set_include_path(__DIR__."/../../vendor/m6w6/pharext/src:".get_include_path()); + $stub = __DIR__."/../../vendor/m6w6/pharext/src/pharext_installer.php"; + $this->file = (new Task\PharBuild($this->source, $stub, $meta))->run(); return sprintf("%s-%s.ext.phar", $this->name, $this->release); }