commit:     eeede823412dfb823a3f8c08311019429f2a74a7
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 17 00:04:59 2018 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Jan 17 00:04:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeede823

www-apps/wordpress: 4.9.2

https://codex.wordpress.org/Version_4.9.2

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 www-apps/wordpress/Manifest               |  1 +
 www-apps/wordpress/wordpress-4.9.2.ebuild | 55 +++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
index d755eb188d3..267bb29883a 100644
--- a/www-apps/wordpress/Manifest
+++ b/www-apps/wordpress/Manifest
@@ -1,3 +1,4 @@
 DIST wordpress-4.8.3.tar.gz 8184961 BLAKE2B 
47e6195c44dd203cdfeadae0a8427f1d231f3cc3ef4487b4f9e9fb8662169f3b592caca23e1139dcf8bfd8334e451de8eafd4aa27be4b681dc4613f0857bdd05
 SHA512 
696be1c24dec869d896e22b408b17009e8c482545237156f17d4b5f2d726876a17c3cc5c3de632126229747589d74f7b188c06d2a79878efc800bd6db273d709
 DIST wordpress-4.9.1.tar.gz 9638827 BLAKE2B 
fb80f5b41df3abb9e28ab492c645c368b1f62b46ba78fc255b4eaa77e54d7801c51f85bdded809cce27027592ca0ccda0a88d8ff67afc0ad5183dd510d9f5d96
 SHA512 
1835d8fd0df9931487489d2e67285e7c73ec1783df39621cfbfe52aa8a0b3cba05fd3b842c7fd67ab2b76009f33337dae650f22dd6a3c4aa71eae100541b8a58
+DIST wordpress-4.9.2.tar.gz 8807744 BLAKE2B 
88c2c9decde312600548e03a14e3721dc82a3a57e59910f9ad85a323beb4ac8faba7de48f46bbc43c78e6862fb93c181b5b6bb690142f5e897c84dd621c9e58f
 SHA512 
013d49b7a7d478888937e1acb49b6543b820c8d1c5b5a3bd86f9629d44640a4c399e84b2604a359c26986bc0e29836094c8444e152c4aa5bcffe9f7a4620f731
 DIST wordpress-4.9.tar.gz 9638753 BLAKE2B 
98df805843f8f48c8678205e7fbdd5fa4d223ce0b772c02ff52d5f5d21559ae56f33023dd3881bdea244c46f8ae6c5ca31a7d6b0da75661d616f67d28253a673
 SHA512 
b7898730d42839406b9270b945c687e80bc1025dcf23dfa1455576f0fc9dffb3b8c082b6fc6d1b6915791ce33c7327c8ce28bbf2beafdc7154ab0e29660c4cc7

diff --git a/www-apps/wordpress/wordpress-4.9.2.ebuild 
b/www-apps/wordpress/wordpress-4.9.2.ebuild
new file mode 100644
index 00000000000..19231ee76d1
--- /dev/null
+++ b/www-apps/wordpress/wordpress-4.9.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit webapp
+
+DESCRIPTION="Wordpress PHP and MySQL based content management system (CMS)"
+HOMEPAGE="https://wordpress.org/";
+SRC_URI="https://wordpress.org/${P/_rc/-RC}.tar.gz";
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="virtual/httpd-php
+       || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
+
+S=${WORKDIR}/${PN}
+
+need_httpd_cgi
+
+IUSE="+akismet examples +themes vhosts"
+
+src_install() {
+       webapp_src_preinst
+
+       dodoc readme.html
+       rm readme.html license.txt || die
+
+       if ! use akismet ; then
+               rm -R wp-content/plugins/akismet/ || die
+       fi
+       if ! use examples ; then
+               rm wp-content/plugins/hello.php || die
+       fi
+       if ! use themes ; then
+               rm -R wp-content/themes/*/ || die
+       fi
+
+       [[ -f wp-config.php ]] || cp wp-config-sample.php wp-config.php
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       webapp_serverowned "${MY_HTDOCSDIR}"/index.php
+       webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/menu.php
+       webapp_serverowned "${MY_HTDOCSDIR}"
+
+       webapp_configfile  "${MY_HTDOCSDIR}"/wp-config.php
+
+       webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+       webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
+
+       webapp_src_install
+}

Reply via email to