svn commit: r396745 - in head/textproc: . py-sphinx_numfig py-sphinx_numfig/files
Kris Moore
kmoore at FreeBSD.org
Sat Sep 12 13:36:37 UTC 2015
Author: kmoore
Date: Sat Sep 12 13:36:35 2015
New Revision: 396745
URL: https://svnweb.freebsd.org/changeset/ports/396745
Log:
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
Added:
head/textproc/py-sphinx_numfig/
head/textproc/py-sphinx_numfig/Makefile (contents, props changed)
head/textproc/py-sphinx_numfig/distinfo (contents, props changed)
head/textproc/py-sphinx_numfig/files/
head/textproc/py-sphinx_numfig/files/patch-setup.py (contents, props changed)
head/textproc/py-sphinx_numfig/pkg-descr (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Sat Sep 12 13:26:12 2015 (r396744)
+++ head/textproc/Makefile Sat Sep 12 13:36:35 2015 (r396745)
@@ -1260,6 +1260,7 @@
SUBDIR += py-sphinx
SUBDIR += py-sphinx-intl
SUBDIR += py-sphinx_rtd_theme
+ SUBDIR += py-sphinx_numfig
SUBDIR += py-sphinxcontrib-adadomain
SUBDIR += py-sphinxcontrib-bitbucket
SUBDIR += py-sphinxcontrib-httpdomain
Added: head/textproc/py-sphinx_numfig/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-sphinx_numfig/Makefile Sat Sep 12 13:36:35 2015 (r396745)
@@ -0,0 +1,27 @@
+# Created by: Dru Lavigne <dru at 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 at 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>
Added: head/textproc/py-sphinx_numfig/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-sphinx_numfig/distinfo Sat Sep 12 13:36:35 2015 (r396745)
@@ -0,0 +1,2 @@
+SHA256 (sphinx_numfig-r13.tgz) = 00bd28edc5d91e3fc17a35163cd2426a22364d4760691f730b22e309c4e6ed25
+SIZE (sphinx_numfig-r13.tgz) = 2053
Added: head/textproc/py-sphinx_numfig/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-sphinx_numfig/files/patch-setup.py Sat Sep 12 13:36:35 2015 (r396745)
@@ -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
Added: head/textproc/py-sphinx_numfig/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-sphinx_numfig/pkg-descr Sat Sep 12 13:36:35 2015 (r396745)
@@ -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
More information about the svn-ports-all
mailing list