X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FPharext%2FPackage.php;h=0f2e2f4f108280308fa0dbe1ebcd7ba55918fd0d;hb=ee69aa5f36ccc63ef92888e345cfee1a36ac6d4b;hp=342a103aa16e1fa828ef021efed6b3a51920b517;hpb=4f16e19be96eb707ea1bc440aab7c821829b70ee;p=pharext%2Fpharext.org 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); }