Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/phar-io-manifest/files/, dev-php/phar-io-manifest/
Date: Wed, 14 Feb 2018 17:36:31
Message-Id: 1518629565.f9c3acec64afaf52017ecf10cb32ff064454b2b5.mjo@gentoo
1 commit: f9c3acec64afaf52017ecf10cb32ff064454b2b5
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 17:18:06 2018 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 17:32:45 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9c3acec
7
8 dev-php/phar-io-manifest: minor ebuild and autoloader cleanup.
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-php/phar-io-manifest/files/autoload.php | 4 ++--
13 dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild | 15 +++++++--------
14 2 files changed, 9 insertions(+), 10 deletions(-)
15
16 diff --git a/dev-php/phar-io-manifest/files/autoload.php b/dev-php/phar-io-manifest/files/autoload.php
17 index 256ec39e5b8..f604d8b1f92 100644
18 --- a/dev-php/phar-io-manifest/files/autoload.php
19 +++ b/dev-php/phar-io-manifest/files/autoload.php
20 @@ -1,6 +1,6 @@
21 <?php
22 -/* Autoloader for dev-php/phar-io-manifest */
23 -require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
24 +
25 +require_once 'Fedora/Autoloader/autoload.php';
26
27 \Fedora\Autoloader\Autoload::addClassMap(
28 [
29
30 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
31 index a9bec3adf3c..c70be9f4ebe 100644
32 --- a/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild
33 +++ b/dev-php/phar-io-manifest/phar-io-manifest-1.0.1.ebuild
34 @@ -3,26 +3,25 @@
35
36 EAPI=6
37
38 -MY_PN="manifest"
39 -
40 -DESCRIPTION="Component for reading phar.io manifest information from a PHP Archive (PHAR)"
41 +DESCRIPTION="Reading phar.io manifest information from a PHP Archive (PHAR)"
42 HOMEPAGE="https://github.com/phar-io/manifest"
43 -SRC_URI="https://github.com/phar-io/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45
46 LICENSE="BSD"
47 SLOT="0"
48 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
49 -IUSE=""
50 +IUSE="examples"
51
52 -S="${WORKDIR}/${MY_PN}-${PV}"
53 +S="${WORKDIR}/manifest-${PV}"
54
55 RDEPEND="dev-php/fedora-autoloader
56 - >=dev-php/phar-io-version-1.0.1
57 - >=dev-lang/php-5.6[phar]"
58 + dev-php/phar-io-version
59 + dev-lang/php:*[phar]"
60
61 src_install() {
62 insinto /usr/share/php/PharIo/Manifest
63 doins -r src/*
64 doins "${FILESDIR}/autoload.php"
65 dodoc README.md
66 + use examples && dodoc -r examples
67 }