www-apps/wordpress: 4.9.1
authorSebastian Pipping <sping@gentoo.org>
Wed, 29 Nov 2017 22:18:08 +0000 (23:18 +0100)
committerSebastian Pipping <sping@gentoo.org>
Wed, 29 Nov 2017 22:19:52 +0000 (23:19 +0100)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

www-apps/wordpress/Manifest
www-apps/wordpress/wordpress-4.9.1.ebuild [new file with mode: 0644]

index 747b9d1804dc2bf458a2bcac028684b25b483594..d755eb188d3133061e18cd4b0657c06c3a4a5f12 100644 (file)
@@ -1,2 +1,3 @@
-DIST wordpress-4.8.3.tar.gz 8184961 SHA256 166fee52dff183b5bb08a5256aca3c5341a0eeb769fb171ff08023d4f50e2326 SHA512 696be1c24dec869d896e22b408b17009e8c482545237156f17d4b5f2d726876a17c3cc5c3de632126229747589d74f7b188c06d2a79878efc800bd6db273d709 WHIRLPOOL 7dd4a356a5627b5705b3f2d7e237c56731b5464b8a9fc5f2c30ee0dfe2c2cb632502e7acfd6c73bb052787877dbe55373fd843c41a90369be04ff7e9fa60c508
-DIST wordpress-4.9.tar.gz 9638753 SHA256 e20dc8d14a62aea05a6eba0a37cabf0b83282746242dab2bd6b9728fc12c28be SHA512 b7898730d42839406b9270b945c687e80bc1025dcf23dfa1455576f0fc9dffb3b8c082b6fc6d1b6915791ce33c7327c8ce28bbf2beafdc7154ab0e29660c4cc7 WHIRLPOOL d980f581992700fc0be18ffe0f0424572791967fa2d142e33e04f3daa639fec3a3548bec88ff75a407411ba007d445148d4e02342d6abccabc23c3bb0c397dfb
+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.tar.gz 9638753 BLAKE2B 98df805843f8f48c8678205e7fbdd5fa4d223ce0b772c02ff52d5f5d21559ae56f33023dd3881bdea244c46f8ae6c5ca31a7d6b0da75661d616f67d28253a673 SHA512 b7898730d42839406b9270b945c687e80bc1025dcf23dfa1455576f0fc9dffb3b8c082b6fc6d1b6915791ce33c7327c8ce28bbf2beafdc7154ab0e29660c4cc7
diff --git a/www-apps/wordpress/wordpress-4.9.1.ebuild b/www-apps/wordpress/wordpress-4.9.1.ebuild
new file mode 100644 (file)
index 0000000..c7283f8
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 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
+}