Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/wordpress/
Date: Mon, 06 Mar 2017 21:22:40
Message-Id: 1488835343.56e77a421b0794392839a87934f6cfa8de9edc37.sping@gentoo
1 commit: 56e77a421b0794392839a87934f6cfa8de9edc37
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 6 21:22:23 2017 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 6 21:22:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e77a42
7
8 www-apps/wordpress: 4.7.3
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 www-apps/wordpress/Manifest | 1 +
13 www-apps/wordpress/wordpress-4.7.3.ebuild | 55 +++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
17 index 0efe0534a26..3a519f3e4fe 100644
18 --- a/www-apps/wordpress/Manifest
19 +++ b/www-apps/wordpress/Manifest
20 @@ -1 +1,2 @@
21 DIST wordpress-4.7.2.tar.gz 7997959 SHA256 6c376183f5d7ffad024712cb140fa3d1b621a97e3961e3206a8cff40b7e9ed44 SHA512 610a820cf2eea39a60100515f68e95a7194a4e20df9c8158111b1978d5bc7c606dd2b7adf2f4019e9108a136e12eb2db7ae5ed75681cec23ffb901f8cc7fb83a WHIRLPOOL 237824a99058243e11b097829475d573a0d1c1218bbb497a984495a3503d57a5dd75acb03cf7d966ef74e404c1c3e3d3ca7f68ce8b69e3365714ad81d7caff8c
22 +DIST wordpress-4.7.3.tar.gz 8008833 SHA256 e715069fdab049ec668cd74e57cabcb23583dc4a84c5e330c430cbe8998f6d89 SHA512 071df65c3a43557faf351838a661a83e26d8de37c8633dc17a59d773cc91caef640a625b0719606df1fc563fd18af71ba1da22a5b6f345339e73761754484dc5 WHIRLPOOL c44593fe9d88c8f188d69cc0a3a7c0350045891d37e8fd7a33d27751980541f951d85fb154f894a52886574bc4967febbf03e825b5b1c38d1ece7f7bf849b35f
23
24 diff --git a/www-apps/wordpress/wordpress-4.7.3.ebuild b/www-apps/wordpress/wordpress-4.7.3.ebuild
25 new file mode 100644
26 index 00000000000..c7283f88735
27 --- /dev/null
28 +++ b/www-apps/wordpress/wordpress-4.7.3.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit webapp
36 +
37 +DESCRIPTION="Wordpress PHP and MySQL based content management system (CMS)"
38 +HOMEPAGE="https://wordpress.org/"
39 +SRC_URI="https://wordpress.org/${P/_rc/-RC}.tar.gz"
40 +
41 +LICENSE="GPL-2+"
42 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
43 +
44 +RDEPEND="virtual/httpd-php
45 + || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
46 +
47 +S=${WORKDIR}/${PN}
48 +
49 +need_httpd_cgi
50 +
51 +IUSE="+akismet examples +themes vhosts"
52 +
53 +src_install() {
54 + webapp_src_preinst
55 +
56 + dodoc readme.html
57 + rm readme.html license.txt || die
58 +
59 + if ! use akismet ; then
60 + rm -R wp-content/plugins/akismet/ || die
61 + fi
62 + if ! use examples ; then
63 + rm wp-content/plugins/hello.php || die
64 + fi
65 + if ! use themes ; then
66 + rm -R wp-content/themes/*/ || die
67 + fi
68 +
69 + [[ -f wp-config.php ]] || cp wp-config-sample.php wp-config.php
70 +
71 + insinto "${MY_HTDOCSDIR}"
72 + doins -r .
73 +
74 + webapp_serverowned "${MY_HTDOCSDIR}"/index.php
75 + webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/menu.php
76 + webapp_serverowned "${MY_HTDOCSDIR}"
77 +
78 + webapp_configfile "${MY_HTDOCSDIR}"/wp-config.php
79 +
80 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
81 + webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
82 +
83 + webapp_src_install
84 +}