pkgsrc/www/wordpress/Makefile
schmonz a62f9e3aa4 Update to 5.2.2. From the changelog:
5.2:
- Site Health
- PHP Error Protection
- Accessibility Updates
- New Dashboard Icons
- Plugin Compatibility Checks
- Privacy Updates
- New Body Hook
- Building JavaScript

5.2.1:
- 47180: An issue typing in the block editor while using a RTL language
  has been fixed.
- 47186: An bug causing 32-bit systems to run out of memory when using
  sodium_compat was fixed.
- 47189: The "Update your plugins" link in Site Health now links to the
  correct page in multisite installs.
- 47185: An issue in wp_delete_file_from_directory() where files were
  not deleting on Windows systems has been fixed.
- 47205: A bug was fixed where spaces could not be added in the Classic
  Editor after pressing shift+enter.
- 47265: 2 fatal errors on the error protection page when a PHP error
  was encountered in a drop-in (such as advanced-cache.php) were fixed.
- 47244: wp_targeted_link_rel() has been improved to prevent instances
  where single and double quotation marks were incorrectly staggered.
- 47169: PHP/MySQL minimum version requirement checks now return proper
  error codes when requirements are not met in test environments.
- 47177: The backwards compatibility of get_search_form() was improved.
- 47297: The accuracy of the HTTP requests test in Site Health was improved.
- 47229: TinyMCE has been updated to version 4.9.4.
- 47323: Prevents a fatal error that occurs when upgrading to 5.2.1 from
  WordPress < 5.2.
- 47304: Fixes a regression that can affect the accuracy of
  <lastBuildDate> in feeds.
- 47312: Changes the string used on the About page for 5.2.1 to one that
  is already translated.

5.2.2:
- 45094: Dashboard elements don't always have clear focus states, tab order
- 46289: RTL Bug – wrong navigation arrows in media modal
- 46749: Extra border is displaying at bottom of Help section in Firefox
  (Responsive : 778 * 841)
- 46881: Site Health: improve the header elements horizontal centering
- 46957: Site Health: Make site health page access be filterable
- 46960: Site Health: Table design issue in small devices (iphone 5/SE).
- 46997: Theme update links show in Customizer and don't work
- 47070: Recovery Mode Exit button not visible in responsive view
- 47158: Merge similar strings introduced in WP 5.2
- 47227: I18n: Merge similar translation strings – site health tabs
- 47475: I18n: Merge similar strings and fix typo
- 47429: Editor: Update packages for WordPress 5.2.2
- 47457: Fix the mediaelements player controls bar sizing
2019-07-16 19:31:21 +00:00

77 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.87 2019/07/16 19:31:21 schmonz Exp $
DISTNAME= wordpress-${VERSION}
VERSION= 5.2.2
CATEGORIES= www
MASTER_SITES= https://wordpress.org/
MAINTAINER= morr@NetBSD.org
HOMEPAGE= https://wordpress.org/
COMMENT= Blogging tool written in php
LICENSE= gnu-gpl-v2
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"
.include "options.mk"
NO_BUILD= yes
WRKSRC= ${WRKDIR}/wordpress
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
PKG_GROUPS_VARS= WWW_GROUP
PKG_USERS_VARS= WWW_USER
BUILD_DEFS+= WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP
EGDIR= ${PREFIX}/share/examples/wordpress
DOCDIR= ${PREFIX}/share/doc/wordpress
WPHOME= ${PREFIX}/share/wordpress
FILES_SUBST+= WPHOME=${WPHOME}
MESSAGE_SUBST+= DOCDIR=${DOCDIR}
CONF_FILES+= ${EGDIR}/wordpress.conf ${PKG_SYSCONFDIR}/wordpress.conf
OWN_DIRS_PERMS+= ${WPHOME}/wp-content/uploads \
${WWW_USER} ${WWW_GROUP} 0750
INSTALLATION_DIRS+= ${DOCDIR} ${WPHOME} ${EGDIR}
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.6.20:../../databases/php-mysqli
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.6.20:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.6.20:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.6.20:../../archivers/php-zip
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.6.20:../../archivers/php-zlib
SUBST_CLASSES+= conf
SUBST_MESSAGE.conf= Fixing pathnames in configuration file.
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= ../wordpress.conf
SUBST_VARS.conf= WPHOME
.if !empty(PKG_OPTIONS:Map-php) && ${PKG_APACHE} == "apache24"
SUBST_SED.conf+= -e "/Order allow,deny/d"
SUBST_SED.conf+= -e "s,Allow from all,Require all granted,g"
.endif
post-extract:
${CP} ${FILESDIR}/wordpress.conf ${WRKDIR}/wordpress.conf
do-install:
${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${DOCDIR}
# ${INSTALL_DATA} ${WRKSRC}/wp-config-sample.php ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKDIR}/wordpress.conf ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/readme.html
${RM} ${WRKSRC}/license.txt
# ${RM} ${WRKSRC}/wp-config-sample.php
cd ${WRKSRC} && pax -rw -pmp . ${DESTDIR}${WPHOME}
${TOUCH} ${DESTDIR}${WPHOME}/wp-content/plugins/index.html
${FIND} ${DESTDIR}${WPHOME} \
-type d -exec ${CHMOD} ${PKGDIRMODE} "{}" \;
${FIND} ${DESTDIR}${WPHOME} \
-type f -exec ${CHMOD} ${SHAREMODE} "{}" \;
.include "../../mk/bsd.pkg.mk"