svn commit: r386302 - head/www/moodle29
Wen Heping
wen at FreeBSD.org
Thu May 14 08:13:33 UTC 2015
Author: wen
Date: Thu May 14 08:13:31 2015
New Revision: 386302
URL: https://svnweb.freebsd.org/changeset/ports/386302
Log:
- Repocopy moodle28 --> moodle29
Added:
head/www/moodle29/
- copied from r386182, head/www/moodle28/
Replaced:
head/www/moodle29/Makefile
- copied unchanged from r386299, head/www/moodle28/Makefile
head/www/moodle29/distinfo
- copied unchanged from r386291, head/www/moodle28/distinfo
Copied: head/www/moodle29/Makefile (from r386299, head/www/moodle28/Makefile)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/moodle29/Makefile Thu May 14 08:13:31 2015 (r386302, copy of r386299, head/www/moodle28/Makefile)
@@ -0,0 +1,83 @@
+# Created by: Javier Martin Rueda <jmrueda at diatel.upm.es>
+# $FreeBSD$
+
+PORTNAME= moodle
+PORTVERSION= 2.8.6
+CATEGORIES= www
+MASTER_SITES= SF/moodle/Moodle/stable28/
+PKGNAMESUFFIX= ${PKGORIGIN:T:S/moodle//}
+
+MAINTAINER= wen at FreeBSD.org
+COMMENT= Course management system based on social constructionism
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/intl.so:${PORTSDIR}/devel/pecl-intl
+RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/intl.so:${PORTSDIR}/devel/pecl-intl
+
+CONFLICTS= moodle27-2.7.[0-9]* moodle29-2.9
+
+USES= tar:tgz
+USE_PHP= session gd pcre mbstring iconv tokenizer curl xml xmlrpc ctype \
+ soap openssl simplexml spl dom json zip zlib hash
+WRKSRC= ${WRKDIR}/moodle
+
+OPTIONS_DEFINE= MYSQL PGSQL MSSQL LDAP MIMETEX
+OPTIONS_DEFAULT=MYSQL
+MSSQL_DESC= MS SQL Server support
+MIMETEX_DESC= mimeTeX filter functionality support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMYSQL}
+USE_PHP+= mysqli
+.endif
+
+.if ${PORT_OPTIONS:MPGSQL}
+USE_PHP+= pgsql
+.endif
+
+.if ${PORT_OPTIONS:MMSSQL}
+USE_PHP+= mssql
+.endif
+
+.if ${PORT_OPTIONS:MLDAP}
+USE_PHP+= ldap
+.endif
+
+.if ${PORT_OPTIONS:MMIMETEX}
+RUN_DEPENDS+= ${LOCALBASE}/www/mimetex/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex
+.endif
+
+NO_BUILD= yes
+PLIST= ${WRKDIR}/plist
+SUB_FILES= pkg-message
+SUB_LIST= MOODLEDIR=${MOODLEDIR} \
+ MOODLEDATADIR=${MOODLEDATADIR}
+
+MOODLEDIR?= www/moodle
+MOODLEDATADIR?= moodledata
+
+pre-install:
+ @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
+ @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
+ @${ECHO_CMD} "@mode 755" >> ${PLIST}
+ @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >>${PLIST}
+ @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dir ${MOODLEDIR}?g" >> ${PLIST}
+ @${ECHO} @dir ${MOODLEDATADIR} >> ${PLIST}
+ @${ECHO_CMD} "@mode" >> ${PLIST}
+ @${ECHO_CMD} "@group" >> ${PLIST}
+ @${ECHO_CMD} "@owner" >> ${PLIST}
+
+do-install:
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MOODLEDIR}
+ @${INSTALL} -d ${STAGEDIR}${PREFIX}/${MOODLEDATADIR}
+.if ${PORT_OPTIONS:MMIMETEX}
+ ${LN} -sf ${PREFIX}/www/mimetex/cgi-bin/mimetex.cgi \
+ ${STAGEDIR}${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
Copied: head/www/moodle29/distinfo (from r386291, head/www/moodle28/distinfo)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/moodle29/distinfo Thu May 14 08:13:31 2015 (r386302, copy of r386291, head/www/moodle28/distinfo)
@@ -0,0 +1,2 @@
+SHA256 (moodle-2.8.6.tgz) = 54287a4417db6885ff7e327d61b167f298a5a4663130def0fbbb9186f4815eb7
+SIZE (moodle-2.8.6.tgz) = 35833782
More information about the svn-ports-all
mailing list