From owner-svn-ports-all@freebsd.org Sat Sep 12 13:36:37 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFA61A029B1; Sat, 12 Sep 2015 13:36:37 +0000 (UTC) (envelope-from kmoore@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AFE7D1E70; Sat, 12 Sep 2015 13:36:37 +0000 (UTC) (envelope-from kmoore@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8CDabdm060340; Sat, 12 Sep 2015 13:36:37 GMT (envelope-from kmoore@FreeBSD.org) Received: (from kmoore@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8CDaaI3060334; Sat, 12 Sep 2015 13:36:36 GMT (envelope-from kmoore@FreeBSD.org) Message-Id: <201509121336.t8CDaaI3060334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kmoore set sender to kmoore@FreeBSD.org using -f From: Kris Moore Date: Sat, 12 Sep 2015 13:36:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r396745 - in head/textproc: . py-sphinx_numfig py-sphinx_numfig/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2015 13:36:37 -0000 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 +# $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 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