commit:     80632fdf6a91a00ce6cae230676f915ec6f816b1
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 13 01:17:45 2018 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Feb 13 01:51:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80632fdf

dev-php/phar-io-version: minor autoload and ebuild cleanup.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-php/phar-io-version/files/autoload.php           |  4 +---
 dev-php/phar-io-version/phar-io-version-1.0.1.ebuild | 10 ++++------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/dev-php/phar-io-version/files/autoload.php 
b/dev-php/phar-io-version/files/autoload.php
index 6072d599066..0036ced557a 100644
--- a/dev-php/phar-io-version/files/autoload.php
+++ b/dev-php/phar-io-version/files/autoload.php
@@ -1,8 +1,6 @@
 <?php
 /* Autoloader for dev-php/phar-io-version */
 
-if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
-       require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
-}
+require_once 'Fedora/Autoloader/autoload.php';
 
 \Fedora\Autoloader\Autoload::addPsr4('PharIo\\Version\\', __DIR__);

diff --git a/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild 
b/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild
index 1ec43b1fdaf..6a4c90ec3d5 100644
--- a/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild
+++ b/dev-php/phar-io-version/phar-io-version-1.0.1.ebuild
@@ -3,25 +3,23 @@
 
 EAPI=6
 
-MY_PN="version"
-
 DESCRIPTION="Library for handling version information and constraints"
 HOMEPAGE="https://github.com/phar-io/version";
-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=""
 
-S="${WORKDIR}/${MY_PN}-${PV}"
+S="${WORKDIR}/version-${PV}"
 
 RDEPEND="dev-php/fedora-autoloader
-       >=dev-lang/php-5.6"
+       dev-lang/php:*"
 
 src_install() {
        insinto /usr/share/php/PharIo/Version
-       doins -r src/*
+       doins src/*.php
        doins "${FILESDIR}/autoload.php"
        dodoc README.md
 }

Reply via email to