summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-04-03 07:08:25 +0300
committerViorel Munteanu <ceamac@gentoo.org>2024-04-03 07:08:25 +0300
commit6237e2dc80d533138eeadc9be397585cff4bbda2 (patch)
treeeebff7f5f618c5128bd45d904f8434b688ee0a8a /www-apps
parentdev-qt/qtwebengine: update patchset for 6.6 and 6.7 branches (diff)
downloadgentoo-6237e2dc80d533138eeadc9be397585cff4bbda2.tar.gz
gentoo-6237e2dc80d533138eeadc9be397585cff4bbda2.tar.bz2
gentoo-6237e2dc80d533138eeadc9be397585cff4bbda2.zip
www-apps/wordpress: add 6.5
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/wordpress/Manifest1
-rw-r--r--www-apps/wordpress/wordpress-6.5.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
index e15ea3e82a66..54ebc779e093 100644
--- a/www-apps/wordpress/Manifest
+++ b/www-apps/wordpress/Manifest
@@ -1 +1,2 @@
DIST wordpress-6.4.3.tar.gz 24482912 BLAKE2B bf48e86884342af021fa6fd01190f10e1a3d83718f818e6d5e4f1b1d67c3cc63c920eea850905ac406f4460e11312feb74b7deaf1b255b75eaa36439ce907a9c SHA512 a3602f1b7c046b6463d03d74a4f091434e5251518a4a11146675a5836f75a532d04e9b0fad9474bd9c53ed3e2adb06a2cfb0121fde017180e120ebb58cb643eb
+DIST wordpress-6.5.tar.gz 24696382 BLAKE2B f4cea5cf575161ff7d7c1e0c0f2176323374429b899ad64e84059578bb827ccb8a7668c36bbf48238c66b6006c0292cbf5f0866aa97858f78a012845184ebf46 SHA512 39ab557bfd4c2af7a5289f379cc4ee62a6720f2f41cefeb5328cf1a053a3f53d471ce081998debe7f4143ed11dcec6cc8c71da8867a3493c83d1b3742a99a9d4
diff --git a/www-apps/wordpress/wordpress-6.5.ebuild b/www-apps/wordpress/wordpress-6.5.ebuild
new file mode 100644
index 000000000000..aedc91ade73a
--- /dev/null
+++ b/www-apps/wordpress/wordpress-6.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+S=${WORKDIR}/${PN}
+
+LICENSE="GPL-2+"
+if [[ ${PV} != *_rc* ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+RDEPEND="virtual/httpd-php
+ || ( dev-lang/php[mysql] dev-lang/php[mysqli] )"
+
+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}"
+ # allows plugins update if allowed within WP
+ webapp_serverowned "${MY_HTDOCSDIR}"/wp-admin/includes/file.php
+
+ 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
+}