diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2018-02-14 12:18:06 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2018-02-14 12:32:45 -0500 |
commit | f9c3acec64afaf52017ecf10cb32ff064454b2b5 (patch) | |
tree | 8385a9ecb104ce5a500927cb20deec47e7bd175f /dev-php/phar-io-manifest | |
parent | dev-php/phar-io-manifest: new package (diff) | |
download | gentoo-f9c3acec64afaf52017ecf10cb32ff064454b2b5.tar.gz gentoo-f9c3acec64afaf52017ecf10cb32ff064454b2b5.tar.bz2 gentoo-f9c3acec64afaf52017ecf10cb32ff064454b2b5.zip |
dev-php/phar-io-manifest: minor ebuild and autoloader cleanup.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-php/phar-io-manifest')
-rw-r--r-- | dev-php/phar-io-manifest/files/autoload.php | 4 | ||||
-rw-r--r-- | dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild | 15 |
2 files changed, 9 insertions, 10 deletions
diff --git a/dev-php/phar-io-manifest/files/autoload.php b/dev-php/phar-io-manifest/files/autoload.php index 256ec39e5b84..f604d8b1f924 100644 --- a/dev-php/phar-io-manifest/files/autoload.php +++ b/dev-php/phar-io-manifest/files/autoload.php @@ -1,6 +1,6 @@ <?php -/* Autoloader for dev-php/phar-io-manifest */ -require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; + +require_once 'Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addClassMap( [ diff --git a/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild b/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild index a9bec3adf3c4..c70be9f4ebe4 100644 --- a/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild +++ b/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild @@ -3,26 +3,25 @@ EAPI=6 -MY_PN="manifest" - -DESCRIPTION="Component for reading phar.io manifest information from a PHP Archive (PHAR)" +DESCRIPTION="Reading phar.io manifest information from a PHP Archive (PHAR)" HOMEPAGE="https://github.com/phar-io/manifest" -SRC_URI="https://github.com/phar-io/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="" +IUSE="examples" -S="${WORKDIR}/${MY_PN}-${PV}" +S="${WORKDIR}/manifest-${PV}" RDEPEND="dev-php/fedora-autoloader - >=dev-php/phar-io-version-1.0.1 - >=dev-lang/php-5.6[phar]" + dev-php/phar-io-version + dev-lang/php:*[phar]" src_install() { insinto /usr/share/php/PharIo/Manifest doins -r src/* doins "${FILESDIR}/autoload.php" dodoc README.md + use examples && dodoc -r examples } |