source: trunk/dports/www/moodle/Portfile

Last change on this file was 122382, checked in by devans@…, 3 years ago

moodle: update to intermediate version 2.2.11 to preserve data from an earlier installation. See notes for details.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- 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
2# $Id: Portfile 122382 2014-07-21 20:39:43Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    moodle
7version                 2.2.11
8set branch              [join [lrange [split ${version} .] 0 1] {}]
9categories              www
10platforms               darwin freebsd
11maintainers             nomaintainer
12license                 GPL-2
13supported_archs         noarch
14homepage                http://moodle.org/
15master_sites            http://download.moodle.org/download.php/direct/stable${branch}
16extract.suffix          .tgz
17worksrcdir              ${name}
18
19description             Course management system based on social constructionism
20
21long_description        Moodle is a course management system (CMS) - a free, Open Source software \
22                        package designed using sound pedagogical principles, to help educators \
23                        create effective online learning communities. You can use it on any \
24                        computer you have handy (including webhosts), yet it can scale from a \
25                        single-teacher site to a 40,000-student University.
26
27checksums               rmd160  6087f94e27290753e23d5e43bb0a033bd006fda3 \
28                        sha256  6760dc478253718cfa92a71fae100fd8918e40c9e3e73fe623502a40bcc25c32
29
30depends_lib             port:php5-web
31
32depends_run             path:bin/latex:texlive-latex \
33                        path:bin/dvips:texlive-basic \
34                        path:bin/convert:ImageMagick
35
36post-extract {
37    # Remove pre-compiled binaries of mimetex; if mimetex is desired, make a port for it.
38    foreach f {mimetex.darwin mimetex.exe mimetex.freebsd mimetex.linux} {
39        delete ${worksrcpath}/filter/tex/${f}
40    }
41}
42
43patchfiles              patch-prefix.diff
44post-patch {
45    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/filter/tex/filtersettings.php
46}
47
48use_configure           no
49build                   {}
50
51destroot {
52    file copy ${worksrcpath} ${destroot}${prefix}/www/moodle
53}
54
55variant mysql description {Use MySQL} {
56    depends_lib-append  port:php5-mysql
57}
58
59variant postgresql description {Use PostgreSQL} {
60    depends_lib-append  port:php5-postgresql
61}
62
63if {![variant_isset mysql] && ![variant_isset postgresql]} {
64    default_variants    +mysql
65}
66
67notes "
68This is version ${version} of ${name}.  The current version is 2.7+ but if you are
69upgrading from a version of ${name} earlier than version 2.2 you must upgrade to
70this version first to preserve your existing data. After doing so you can update
71directly from this version to the current one.
72
73For more information see http://docs.moodle.org/22/en/Upgrading_to_Moodle_2.2
74"
75
76livecheck.type          regex
77livecheck.url           http://download.moodle.org/
78livecheck.regex         ${name}-(\[0-9.\]+)\\${extract.suffix}
Note: See TracBrowser for help on using the repository browser.