summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2018-02-12 20:17:45 -0500
committerMichael Orlitzky <mjo@gentoo.org>2018-02-12 20:51:45 -0500
commit80632fdf6a91a00ce6cae230676f915ec6f816b1 (patch)
treea5c186d0fa0307d7de7f4edd09cb31376063b279 /dev-php/phar-io-version
parentdev-php/phar-io-version: new package (diff)
downloadgentoo-80632fdf6a91a00ce6cae230676f915ec6f816b1.tar.gz
gentoo-80632fdf6a91a00ce6cae230676f915ec6f816b1.tar.bz2
gentoo-80632fdf6a91a00ce6cae230676f915ec6f816b1.zip
dev-php/phar-io-version: minor autoload and ebuild cleanup.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-php/phar-io-version')
-rw-r--r--dev-php/phar-io-version/files/autoload.php4
-rw-r--r--dev-php/phar-io-version/phar-io-version-1.0.1.ebuild10
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 6072d5990663..0036ced557a9 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 1ec43b1fdaf8..6a4c90ec3d51 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
}