Add yii 1.0.6.r1102, a high-performance component-based PHP framework.

PR:		ports/135650
Submitted by:	Yi-Jheng Lin <yzlin at cs.nctu.edu.tw>
Approved by:	lwhsu (mentor)
This commit is contained in:
Yi-Jheng Lin 2009-07-24 08:50:52 +00:00
parent 8d74ac0f62
commit fe7bfc1d17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=238320
6 changed files with 1643 additions and 0 deletions

View file

@ -1758,6 +1758,7 @@
SUBDIR += yahoo-ui
SUBDIR += yanopaste
SUBDIR += yaws
SUBDIR += yii
SUBDIR += youtube_dl
SUBDIR += yuicompressor
SUBDIR += zend-framework

86
www/yii/Makefile Normal file
View file

@ -0,0 +1,86 @@
# New ports collection makefile for: yii
# Date created: 2009-03-27
# Whom: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= yii
PORTVERSION= 1.0.6.r1102
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
SF
MAINTAINER= yzlin@FreeBSD.org
COMMENT= A high-performance component-based PHP framework
NO_BUILD= yes
USE_PHP= pcre spl
WANT_PHP_WEB= yes
IGNORE_WITH_PHP= 4
SUB_FILES= pkg-message
OPTIONS= MYSQL "Install MySQL PDO support" Off \
PGSQL "Install PostgreSQL PDO support" Off \
SQLITE "Install SQLite v3 PDO support" Off \
REQPHP "Install PHP dependencies required by plugins" On
PORTDOCS= CHANGELOG LICENSE README UPGRADE
INSTALL_DIRS= framework
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_REQPHP)
USE_PHP+= apc dom gd mcrypt memcache pdo soap
.endif
.if defined(WITH_MYSQL)
USE_PHP+= pdo_mysql
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
.endif
.if defined(WITH_SQLITE)
USE_PHP+= pdo_sqlite
.endif
post-patch:
@${SED} -i "" -e "s,dirname(__FILE__),'${DATADIR}/framework'," ${WRKSRC}/framework/yiic
do-install:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "${INSTALL_DIRS}" ${DATADIR})
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${DATADIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
@${INSTALL_SCRIPT} ${WRKSRC}/framework/yiic ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "demos requirements" ${EXAMPLESDIR})
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EXAMPLESDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${EXAMPLESDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

3
www/yii/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (yii-1.0.6.r1102.tar.gz) = 579e520b0a7a3b4581faf58268253fbc
SHA256 (yii-1.0.6.r1102.tar.gz) = 25d1565ec74b3c111d9119b2235dc29e6ae175cd8a9e1b575b0c758cff6d0e7f
SIZE (yii-1.0.6.r1102.tar.gz) = 1838140

View file

@ -0,0 +1,13 @@
***************************************************************
Now you need to adjust PHP's include_path to contain
`%%DATADIR%%/framework'
For example, insert:
include_path = ".:%%DATADIR%%/framework"
into `%%LOCALBASE%%/etc/php.ini'.
For more general information about the Yii, please
visit: http://www.yiiframework.com/
***************************************************************

9
www/yii/pkg-descr Normal file
View file

@ -0,0 +1,9 @@
Yii is a high-performance component-based PHP framework best for
developing large-scale Web applications. Yii comes with a full stack
of features, including MVC, DAO/ActiveRecord, I18N/L10N, caching,
jQuery-based AJAX support, authentication and role-based access control,
scaffolding, input validation, widgets, events, theming, Web services,
and so on. Written in strict OOP, Yii is easy to use and is extremely
flexible and extensible.
WWW: http://www.yiiframework.com/

1531
www/yii/pkg-plist Normal file

File diff suppressed because it is too large Load diff