# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 122382 2014-07-21 20:39:43Z devans@macports.org $ PortSystem 1.0 name moodle version 2.2.11 set branch [join [lrange [split ${version} .] 0 1] {}] categories www platforms darwin freebsd maintainers nomaintainer license GPL-2 supported_archs noarch homepage http://moodle.org/ master_sites http://download.moodle.org/download.php/direct/stable${branch} extract.suffix .tgz worksrcdir ${name} description Course management system based on social constructionism long_description Moodle is a course management system (CMS) - a free, Open Source software \ package designed using sound pedagogical principles, to help educators \ create effective online learning communities. You can use it on any \ computer you have handy (including webhosts), yet it can scale from a \ single-teacher site to a 40,000-student University. checksums rmd160 6087f94e27290753e23d5e43bb0a033bd006fda3 \ sha256 6760dc478253718cfa92a71fae100fd8918e40c9e3e73fe623502a40bcc25c32 depends_lib port:php5-web depends_run path:bin/latex:texlive-latex \ path:bin/dvips:texlive-basic \ path:bin/convert:ImageMagick post-extract { # Remove pre-compiled binaries of mimetex; if mimetex is desired, make a port for it. foreach f {mimetex.darwin mimetex.exe mimetex.freebsd mimetex.linux} { delete ${worksrcpath}/filter/tex/${f} } } patchfiles patch-prefix.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/filter/tex/filtersettings.php } use_configure no build {} destroot { file copy ${worksrcpath} ${destroot}${prefix}/www/moodle } variant mysql description {Use MySQL} { depends_lib-append port:php5-mysql } variant postgresql description {Use PostgreSQL} { depends_lib-append port:php5-postgresql } if {![variant_isset mysql] && ![variant_isset postgresql]} { default_variants +mysql } notes " This is version ${version} of ${name}. The current version is 2.7+ but if you are upgrading from a version of ${name} earlier than version 2.2 you must upgrade to this version first to preserve your existing data. After doing so you can update directly from this version to the current one. For more information see http://docs.moodle.org/22/en/Upgrading_to_Moodle_2.2 " livecheck.type regex livecheck.url http://download.moodle.org/ livecheck.regex ${name}-(\[0-9.\]+)\\${extract.suffix}