diff options
author | Kris Moore <kmoore@FreeBSD.org> | 2015-09-12 13:36:35 +0000 |
---|---|---|
committer | Kris Moore <kmoore@FreeBSD.org> | 2015-09-12 13:36:35 +0000 |
commit | c2762ac6247b1cc02f7eca1da141b5ba5c25b544 (patch) | |
tree | dc08ec0c757d01ec871eb6b7b33007401651f3dc /textproc/py-sphinx_numfig | |
parent | 250b7f148ca301fa1aaf96bfc14f017bebc08c58 (diff) |
This is a Sphinx package for autonumbering figures. With numfig you can
have numbered figures in your Sphinx documents and refer to them by number.
WWW: https://bitbucket.org/arjones6/sphinx-numfig/wiki/Home
Notes
Notes:
svn path=/head/; revision=396745
Diffstat (limited to 'textproc/py-sphinx_numfig')
-rw-r--r-- | textproc/py-sphinx_numfig/Makefile | 27 | ||||
-rw-r--r-- | textproc/py-sphinx_numfig/distinfo | 2 | ||||
-rw-r--r-- | textproc/py-sphinx_numfig/files/patch-setup.py | 20 | ||||
-rw-r--r-- | textproc/py-sphinx_numfig/pkg-descr | 4 |
4 files changed, 53 insertions, 0 deletions
diff --git a/textproc/py-sphinx_numfig/Makefile b/textproc/py-sphinx_numfig/Makefile new file mode 100644 index 000000000000..3abb74783d4e --- /dev/null +++ b/textproc/py-sphinx_numfig/Makefile @@ -0,0 +1,27 @@ +# Created by: Dru Lavigne <dru@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= sphinx_numfig +PORTVERSION= r13 +CATEGORIES= textproc +MASTER_SITES= http://sourceforge.net/projects/numfig/files/latest/download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kris@FreeBSD.org +COMMENT= Autonumbering figures in Sphinx + +LICENSE= BSD3CLAUSE + +RUN_DEPENDS= ${PKGNAMEPREFIX}sphinx>=1.3.1:${PORTSDIR}/textproc/py-sphinx + +USES= python tar:tgz +NO_BUILD= yes +SPHINXDIR= ${PYTHON_LIBDIR}/site-packages/sphinx +PLIST_FILES= ${SPHINXDIR}/ext/numfig.py ${SPHINXDIR}/ext/numfig.pyc + +do-install: + cd ${WRKDIR}/sphinx_numfig-r13 && \ + ${MKDIR} ${STAGEDIR}${SPHINXDIR}/ext && \ + ${PYTHON_CMD} setup.py install ${STAGEDIR}${SPHINXDIR} ${SPHINXDIR}/ext + +.include <bsd.port.mk> diff --git a/textproc/py-sphinx_numfig/distinfo b/textproc/py-sphinx_numfig/distinfo new file mode 100644 index 000000000000..ae09d5a0b816 --- /dev/null +++ b/textproc/py-sphinx_numfig/distinfo @@ -0,0 +1,2 @@ +SHA256 (sphinx_numfig-r13.tgz) = 00bd28edc5d91e3fc17a35163cd2426a22364d4760691f730b22e309c4e6ed25 +SIZE (sphinx_numfig-r13.tgz) = 2053 diff --git a/textproc/py-sphinx_numfig/files/patch-setup.py b/textproc/py-sphinx_numfig/files/patch-setup.py new file mode 100644 index 000000000000..4fabd7b7e034 --- /dev/null +++ b/textproc/py-sphinx_numfig/files/patch-setup.py @@ -0,0 +1,20 @@ +--- setup.py.orig 2012-10-08 16:34:53 UTC ++++ setup.py +@@ -19,7 +19,7 @@ else: + sys.exit(1) + + # Remove the old installation +-sphinxdir = os.path.dirname(sphinx.__file__) ++sphinxdir = sys.argv[2] + olddst = os.path.join(sphinxdir, "numfig.py") + olddstc = os.path.join(sphinxdir, "numfig.pyc") + sphinxextdir = os.path.join(sphinxdir, "ext") +@@ -39,7 +39,7 @@ shutil.copyfile("numfig.py", dst) + # Compile to bytecode + import py_compile + print "Compiling", dst, "to bytecode." +-py_compile.compile(dst) ++py_compile.compile(dst, dstc, sys.argv[3]) + + # Fix perms + mode = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH diff --git a/textproc/py-sphinx_numfig/pkg-descr b/textproc/py-sphinx_numfig/pkg-descr new file mode 100644 index 000000000000..dfcbcb8934c6 --- /dev/null +++ b/textproc/py-sphinx_numfig/pkg-descr @@ -0,0 +1,4 @@ +This is a Sphinx package for autonumbering figures. With numfig you can +have numbered figures in your Sphinx documents and refer to them by number. + +WWW: https://bitbucket.org/arjones6/sphinx-numfig/wiki/Home |