forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/PEAR-Text_Figlet: new EAPI=6 revision sans the php-pear-r1 ec…
…lass. This new revision updates to EAPI=6, and drops the php-pear-r1 eclass. Dropping an eclass is motivation in itself, but along with that reduction in complexity comes a fix: we now install the documentation and examples in the correct place. Package-Manager: portage-2.3.0
- Loading branch information
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
MY_PN="${PN/PEAR-/}" | ||
MY_P="${MY_PN}-${PV}" | ||
|
||
DESCRIPTION="Render text using FIGlet fonts" | ||
HOMEPAGE="http://pear.php.net/package/${MY_PN}" | ||
SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" | ||
LICENSE="PHP-3.01 | ||
examples? ( GPL-2+ OFL-1.1 )" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="examples" | ||
|
||
RDEPEND="dev-lang/php:* | ||
dev-php/PEAR-PEAR" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
src_install() { | ||
dodoc docs/README.TXT | ||
|
||
if use examples; then | ||
dodoc -r docs/examples | ||
|
||
# Earlier versions of this ebuild installed this font under | ||
# /usr/share/php/data, which is obviously the wrong place for | ||
# them, but is where we have configured PEAR's data_dir. The | ||
# fonts can be referenced by absolute path, however, and not | ||
# just by name. Since this font is used in the example -- and as | ||
# long as no one expects this *particular* font to work out of | ||
# the box -- installing it with the docs will suffice. | ||
# | ||
# The one consumer of this in the tree is PEAR-Text_CAPTCHA, and | ||
# it loads its fonts using an absolute path. | ||
dodoc fonts/makisupa.flf | ||
fi | ||
|
||
insinto /usr/share/php | ||
doins -r Text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>PHP</name> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>PHP</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">pear/Text_Figlet</remote-id> | ||
</upstream> | ||
</pkgmetadata> |