commit:     f9c3acec64afaf52017ecf10cb32ff064454b2b5
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 14 17:18:06 2018 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Feb 14 17:32:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9c3acec

dev-php/phar-io-manifest: minor ebuild and autoloader cleanup.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-php/phar-io-manifest/files/autoload.php            |  4 ++--
 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 256ec39e5b8..f604d8b1f92 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 a9bec3adf3c..c70be9f4ebe 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
 }

Reply via email to