Bug 189018 - [MAINTAINER] chinese/wordpress-zh_TW: update to 3.9
Summary: [MAINTAINER] chinese/wordpress-zh_TW: update to 3.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 14:20 UTC by joehorn
Modified: 2014-04-26 19:35 UTC (History)
0 users

See Also:


Attachments
wordpress-zh_TW-3.9.patch (803 bytes, patch)
2014-04-26 14:20 UTC, joehorn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description joehorn 2014-04-26 14:20:02 UTC
- Update to 3.9

Generated with FreeBSD Port Tools 1.01 (mode: update, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer 2014-04-26 14:20:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2014-04-26 19:13:05 UTC
Author: sunpoet
Date: Sat Apr 26 18:12:50 2014
New Revision: 352315
URL: http://svnweb.freebsd.org/changeset/ports/352315
QAT: https://qat.redports.org/buildarchive/r352315/

Log:
  - Update to 3.9
  - Simplify pre-install:
  - Remove .include <bsd.port.options.mk>
  - Remove unnecessary SUB_LISTS
  
  Changes:	http://tw.wordpress.org/2014/04/24/smith/
  PR:		ports/189018
  Submitted by:	Joe Horn <joehorn@gmail.com> (maintainer)

Modified:
  head/chinese/wordpress-zh_TW/Makefile
  head/chinese/wordpress-zh_TW/distinfo

Modified: head/chinese/wordpress-zh_TW/Makefile
==============================================================================
--- head/chinese/wordpress-zh_TW/Makefile	Sat Apr 26 18:12:45 2014	(r352314)
+++ head/chinese/wordpress-zh_TW/Makefile	Sat Apr 26 18:12:50 2014	(r352315)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	wordpress
-PORTVERSION=	3.8.1
+PORTVERSION=	3.9
 CATEGORIES=	chinese www
 MASTER_SITES=	http://tw.wordpress.org/ \
 		http://mirror.joehorn.idv.tw/wordpress/
@@ -27,8 +27,7 @@ PORTDOCS=	readme.html
 
 OPTIONS_DEFINE=	DOCS
 
-SUB_FILES+=	pkg-message
-SUB_LISTS+=	WWWDIR=${WWWDIR}
+SUB_FILES=	pkg-message
 
 pre-everything::
 	@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@@ -36,27 +35,20 @@ pre-everything::
 	@sleep 1
 
 pre-install:
-	cd ${WRKSRC} && ${FIND} -s * -type f | \
-		${SED} -e 's|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
-		&& ${FIND} -d * -type d | \
-		${SED} -e 's|^|@dirrm ${WWWDIR:S|${PREFIX}/||}/|' >> ${PLIST} \
-		&& ${ECHO_CMD} @dirrm ${WWWDIR:S|${PREFIX}/||} >> ${PLIST}
+	${ECHO_CMD} '@owner www' > ${PLIST}
+	${ECHO_CMD} '@group www' >> ${PLIST}
+	cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|' >> ${PLIST}
+	cd ${WRKSRC}/ && ${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|' >> ${PLIST}
+	${ECHO_CMD} '@owner' >> ${PLIST}
+	${ECHO_CMD} '@group' >> ${PLIST}
 	if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
 		${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
 
-.include <bsd.port.options.mk>
-
 do-install:
-	@${MKDIR} ${STAGEDIR}${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
-		>> ${TMPPLIST}
-	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST}
-	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
-.endfor
+	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
+	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
+	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>

Modified: head/chinese/wordpress-zh_TW/distinfo
==============================================================================
--- head/chinese/wordpress-zh_TW/distinfo	Sat Apr 26 18:12:45 2014	(r352314)
+++ head/chinese/wordpress-zh_TW/distinfo	Sat Apr 26 18:12:50 2014	(r352315)
@@ -1,2 +1,2 @@
-SHA256 (wordpress-3.8.1-zh_TW.tar.gz) = 6e84c653c86e36db9515166fe0955166a2a98647b960bc48c90e66a6ea140289
-SIZE (wordpress-3.8.1-zh_TW.tar.gz) = 6266728
+SHA256 (wordpress-3.9-zh_TW.tar.gz) = f789c5c4840e73c930ad53bf3d34e03c1ab38d4d78c6352b4c9901b5341aa093
+SIZE (wordpress-3.9-zh_TW.tar.gz) = 6198657
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Sunpoet Po-Chuan Hsieh freebsd_committer 2014-04-26 19:35:25 UTC
State Changed
From-To: open->closed

Committed. Thanks!