Date: Fri, 28 Mar 2008 03:50:13 GMT From: Hiroto Kagotani <hiroto.kagotani@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/122178: www/moodle: enabling mimeTeX functionality Message-ID: <200803280350.m2S3oD7s024966@www.freebsd.org> Resent-Message-ID: <200803280400.m2S401HZ075586@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 122178 >Category: ports >Synopsis: www/moodle: enabling mimeTeX functionality >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 28 04:00:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Hiroto Kagotani >Release: 7.0-RELEASE >Organization: Okayama Univ. >Environment: FreeBSD myhost.mydomain 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: moodle has TeX filter functionality with built-in mimetex.freebsd binary, but the binary requires an old library based on FreeBSD 5.x and is not executable in the current installation. moodle should depend on the latest www/mimetex port for any version of FreeBSD. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ru moodle.orig/Makefile moodle/Makefile --- moodle.orig/Makefile 2008-03-08 03:48:58.000000000 +0900 +++ moodle/Makefile 2008-03-28 12:03:32.000000000 +0900 @@ -22,7 +22,8 @@ MSSQL "Add support for a MS SQL Server" Off \ ZLIB "Add zip/unzip functionality" On \ NETWORK "Add Moodle Network functionality" Off \ - LDAP "Add LDAP authentication functionality" Off + LDAP "Add LDAP authentication functionality" Off \ + MIMETEX "Add mimeTeX filter functionality" On .include <bsd.port.pre.mk> @@ -64,6 +65,10 @@ USE_PHP+= ldap .endif +.if !defined(WITHOUT_MIMETEX) +RUN_DEPENDS+= ${PREFIX}/www/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex +.endif + NO_BUILD= yes PLIST= ${WRKDIR}/plist SUB_FILES= pkg-message @@ -92,6 +97,9 @@ >> ${TMPPLIST} ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR} @${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}' >> ${TMPPLIST} +.if !defined(WITHOUT_MIMETEX) + ${LN} -sf ${PREFIX}/www/cgi-bin/mimetex.cgi ${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd +.endif post-install: @${CAT} ${PKGMESSAGE} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803280350.m2S3oD7s024966>