summaryrefslogtreecommitdiff
path: root/www/trac-math/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/trac-math/files')
-rw-r--r--www/trac-math/files/patch-tracmath_tracmath.py21
-rw-r--r--www/trac-math/files/pkg-message.in17
2 files changed, 0 insertions, 38 deletions
diff --git a/www/trac-math/files/patch-tracmath_tracmath.py b/www/trac-math/files/patch-tracmath_tracmath.py
deleted file mode 100644
index f0b37da150da..000000000000
--- a/www/trac-math/files/patch-tracmath_tracmath.py
+++ /dev/null
@@ -1,21 +0,0 @@
---- tracmath/tracmath.py.orig 2008-04-04 08:58:46 UTC
-+++ tracmath/tracmath.py
-@@ -4,8 +4,8 @@ This has currently been tested only on t
- """
-
- import codecs
-+import hashlib
- import re
--import sha
- from cStringIO import StringIO
- import os
- import sys
-@@ -142,7 +142,7 @@ class TracMathPlugin(Component):
- if m:
- label = m.group(1)
-
-- key = sha.new(content.encode('utf-8')).hexdigest()
-+ key = hashlib.sha1(content.encode('utf-8')).hexdigest()
-
- imgname = key + '.png'
- imgpath = os.path.join(self.cacheDirectory, imgname)
diff --git a/www/trac-math/files/pkg-message.in b/www/trac-math/files/pkg-message.in
deleted file mode 100644
index bb0738e10587..000000000000
--- a/www/trac-math/files/pkg-message.in
+++ /dev/null
@@ -1,17 +0,0 @@
-[
-{ type: install
- message: <<EOM
-To use the plugin, you must add at least the following to your trac.ini.
-
- [tracmath]
- latex_cmd = %%LOCALBASE%%/bin/latex
- dvipng_cmd = %%LOCALBASE%%/bin/dvipng
-
-You may also wish to set:
-
- cache_dir = <cache directory>
- max_png = <max number of pngs in cache - defaults to 500>
- use_dollars = enabled
-EOM
-}
-]