Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/cphplib/, dev-php/cphplib/files/
Date: Thu, 27 Jul 2017 15:06:59
Message-Id: 1501167975.b9a07f96a78cd0b05b05fe1082c914b0b2cf8a6f.grknight@gentoo
1 commit: b9a07f96a78cd0b05b05fe1082c914b0b2cf8a6f
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 27 15:06:15 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 27 15:06:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9a07f96
7
8 dev-php/cphplib: Revbump for EAPI upgrade and constructor patch
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-php/cphplib/cphplib-0.51-r1.ebuild | 29 +++++++++++++++++++++++
13 dev-php/cphplib/files/constructor.patch | 42 +++++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/dev-php/cphplib/cphplib-0.51-r1.ebuild b/dev-php/cphplib/cphplib-0.51-r1.ebuild
17 new file mode 100644
18 index 00000000000..c79a4a61209
19 --- /dev/null
20 +++ b/dev-php/cphplib/cphplib-0.51-r1.ebuild
21 @@ -0,0 +1,29 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +KEYWORDS="~amd64 ~x86"
28 +
29 +DESCRIPTION="Cute PHP Library (cphplib)"
30 +HOMEPAGE="http://cphplib.sourceforge.net/"
31 +SRC_URI="mirror://sourceforge/cphplib/${P}.tar.bz2"
32 +LICENSE="LGPL-2.1"
33 +SLOT="0"
34 +IUSE="doc"
35 +
36 +DEPEND=">=dev-php/PEAR-DB-1.7.6-r1"
37 +RDEPEND="${DEPEND}"
38 +PATCHES=( "${FILESDIR}/constructor.patch" )
39 +
40 +src_install() {
41 + local DOCS=( ChangeLog README TODO )
42 + local -a HTML_DOCS
43 + insinto "/usr/share/php/${PN}"
44 + doins -r i18n cphplib_formular.inc cphplib.inc
45 + use doc && HTML_DOCS=( doc/packages.html doc/blank.html
46 + doc/classtrees_cphplib.html doc/index.html doc/cphplib/
47 + doc/errors.html doc/__filesource/ doc/elementindex.html
48 + doc/li_cphplib.html doc/elementindex_cphplib.html doc/media/ )
49 + einstalldocs
50 +}
51
52 diff --git a/dev-php/cphplib/files/constructor.patch b/dev-php/cphplib/files/constructor.patch
53 new file mode 100644
54 index 00000000000..1ab88d212c1
55 --- /dev/null
56 +++ b/dev-php/cphplib/files/constructor.patch
57 @@ -0,0 +1,42 @@
58 +diff -uarN a/cphplib_formular.inc b/cphplib_formular.inc
59 +--- a/cphplib_formular.inc 2006-05-25 05:03:44.000000000 -0400
60 ++++ b/cphplib_formular.inc 2017-07-27 10:49:10.928727081 -0400
61 +@@ -130,6 +130,11 @@
62 +
63 + function cphplib_formular($locale="de_DE")
64 + {
65 ++ __construct($locale);
66 ++ }
67 ++
68 ++ function __construct($locale="de_DE")
69 ++ {
70 + parent::cphplib($locale);
71 +
72 + $this->os_type = $this->os_type();
73 +@@ -1390,4 +1395,3 @@
74 + }
75 + }
76 +
77 +-?>
78 +\ No newline at end of file
79 +diff -uarN a/cphplib.inc b/cphplib.inc
80 +--- a/cphplib.inc 2006-05-25 05:03:58.000000000 -0400
81 ++++ b/cphplib.inc 2017-07-27 10:59:51.910098156 -0400
82 +@@ -215,6 +215,11 @@
83 + */
84 + function cphplib($locale="de_DE")
85 + {
86 ++ __construct($locale);
87 ++ }
88 ++
89 ++ function __construct($locale="de_DE")
90 ++ {
91 + if (!empty($locale))
92 + {
93 + $this->locale = $locale;
94 +@@ -4539,4 +4544,3 @@
95 + }
96 + }
97 +
98 +-?>
99 +\ No newline at end of file