[70600] trunk/dports/www/moodle

ryandesign at macports.org ryandesign at macports.org
Sat Aug 14 19:13:02 PDT 2010


Revision: 70600
          http://trac.macports.org/changeset/70600
Author:   ryandesign at macports.org
Date:     2010-08-14 19:13:00 -0700 (Sat, 14 Aug 2010)
Log Message:
-----------
moodle: fix tex filter's settings to default to MacPorts versions of latex, dvips and convert, not Fink's, and add dependencies on the ports that provide these programs

Modified Paths:
--------------
    trunk/dports/www/moodle/Portfile

Added Paths:
-----------
    trunk/dports/www/moodle/files/
    trunk/dports/www/moodle/files/patch-prefix.diff

Modified: trunk/dports/www/moodle/Portfile
===================================================================
--- trunk/dports/www/moodle/Portfile	2010-08-15 02:01:38 UTC (rev 70599)
+++ trunk/dports/www/moodle/Portfile	2010-08-15 02:13:00 UTC (rev 70600)
@@ -4,6 +4,7 @@
 
 name                    moodle
 version                 1.9.9
+revision                1
 set branch              [join [lrange [split ${version} .] 0 1] {}]
 categories              www
 platforms               darwin freebsd
@@ -29,6 +30,10 @@
 
 depends_lib             port:php5-web
 
+depends_run             path:bin/latex:texlive-latex \
+                        path:bin/dvips:texlive-bin \
+                        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} {
@@ -36,6 +41,11 @@
     }
 }
 
+patchfiles              patch-prefix.diff
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/filter/tex/filtersettings.php
+}
+
 use_configure           no
 build                   {}
 

Added: trunk/dports/www/moodle/files/patch-prefix.diff
===================================================================
--- trunk/dports/www/moodle/files/patch-prefix.diff	                        (rev 0)
+++ trunk/dports/www/moodle/files/patch-prefix.diff	2010-08-15 02:13:00 UTC (rev 70600)
@@ -0,0 +1,16 @@
+--- filter/tex/filtersettings.php.orig	2010-04-10 19:03:41.000000000 -0500
++++ filter/tex/filtersettings.php	2010-08-14 21:07:11.000000000 -0500
+@@ -15,10 +15,9 @@
+     $default_filter_tex_pathconvert = "/usr/bin/convert";
+ 
+ } else if (PHP_OS=='Darwin') {
+-    // most likely needs a fink install (fink.sf.net)
+-    $default_filter_tex_pathlatex   = "/sw/bin/latex";
+-    $default_filter_tex_pathdvips   = "/sw/bin/dvips";
+-    $default_filter_tex_pathconvert = "/sw/bin/convert";
++    $default_filter_tex_pathlatex   = "@PREFIX@/bin/latex";
++    $default_filter_tex_pathdvips   = "@PREFIX@/bin/dvips";
++    $default_filter_tex_pathconvert = "@PREFIX@/bin/convert";
+ 
+ } else if (PHP_OS=='WINNT' or PHP_OS=='WIN32' or PHP_OS=='Windows') {
+     // note: you need Ghostscript installed (standard), miktex (standard)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100814/7526ea31/attachment.html>


More information about the macports-changes mailing list