summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2016-04-25 23:42:08 +0000
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2016-04-25 23:42:41 +0000
commit1cdff93ba3920c4193a134e67245d48c14074498 (patch)
tree0386c0a32e04d60af52f5baba729cdc9dbe0be5f /www-apps/wordpress
parentdev-ruby/ritex: Remove ruby19 (diff)
downloadgentoo-1cdff93ba3920c4193a134e67245d48c14074498.tar.gz
gentoo-1cdff93ba3920c4193a134e67245d48c14074498.tar.bz2
gentoo-1cdff93ba3920c4193a134e67245d48c14074498.zip
www-apps/wordpress Bump to version 4.5.
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Diffstat (limited to 'www-apps/wordpress')
-rw-r--r--www-apps/wordpress/Manifest1
-rw-r--r--www-apps/wordpress/wordpress-4.5.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
index 9d7f09d068d1..d3a8925bcfa4 100644
--- a/www-apps/wordpress/Manifest
+++ b/www-apps/wordpress/Manifest
@@ -1 +1,2 @@
DIST wordpress-4.4.2.tar.gz 7099520 SHA256 c8a74c0f7cfc0d19989d235759e70cebd90f42aa0513bd9bc344230b0f79e08b SHA512 dfced463ece13f266c15e1b45d8e7882e58ce9cd3b7146c81a4671bc51c58998ae318bd6e45b1f7bc657e2d49d7d39f971d814998e074375129c8dff7cfcac63 WHIRLPOOL c74b1b6d303bbdb3c66c432838e12528f06c124475c3258ccbc6472143e4a9cf56bda4293d7556564eb878d0f701f0853f46f3be7a37b9a2eb035bc08815e6d4
+DIST wordpress-4.5.tar.gz 7762865 SHA256 d99c9599d982c3e42e917e03628c2ced6b6b87b2a6fd05b38ebb724b4057faf0 SHA512 2d3b5f0629be434e5e0785e373ca4e8d53171ecdde8720e26d70df661afcf0e2475087a54c3b3629a4d6101e11c1840ab90db38608eca4470436b34908d4c5a7 WHIRLPOOL fa0ea4833c2237d343ebec510f966c57d5cb960bdd93abd746b25b2954adb7b103971112c7f101821fa74bb727e15ec5c1452c6a066cff6f8f9fd9f2aec71eca
diff --git a/www-apps/wordpress/wordpress-4.5.ebuild b/www-apps/wordpress/wordpress-4.5.ebuild
new file mode 100644
index 000000000000..3f425a51116b
--- /dev/null
+++ b/www-apps/wordpress/wordpress-4.5.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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
+
+ dohtml 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
+}