Skip to content

Commit

Permalink
dev-php/phar-io-version: minor autoload and ebuild cleanup.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
orlitzky committed Feb 13, 2018
1 parent 9db6441 commit 80632fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions dev-php/phar-io-version/files/autoload.php
Original file line number Diff line number Diff line change
@@ -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__);
10 changes: 4 additions & 6 deletions dev-php/phar-io-version/phar-io-version-1.0.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 80632fd

Please sign in to comment.