ports/122178: www/moodle: enabling mimeTeX functionality

Hiroto Kagotani hiroto.kagotani at gmail.com
Fri Mar 28 04:00:02 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list