mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
www-apps/wordpress: add 6.5
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user