Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2006 17:13:42 +0400 (MSD)
From:      Denis Shaposhnikov <dsh@vlink.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dsh@neva.vlink.ru
Subject:   ports/100980: Update port: textproc/py-docutils (install rst.el)
Message-ID:  <200607281313.k6SDDgPi007604@neva.vlink.ru>
Resent-Message-ID: <200607281320.k6SDK8E9066745@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100980
>Category:       ports
>Synopsis:       Update port: textproc/py-docutils (install rst.el)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 28 13:20:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #12: Tue Jun 27 16:19:50 MSD 2006 dsh@neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386


	
>Description:

This patch adds ability to install rst.el (emacs mode for editing
restructured text) by use EMACS_PORT_NAME variable.

>How-To-Repeat:
	
>Fix:

diff -Nru --exclude=.svn py-docutils.orig/Makefile py-docutils/Makefile
--- py-docutils.orig/Makefile	Sun Feb 12 06:21:11 2006
+++ py-docutils/Makefile	Fri Jul 28 17:08:40 2006
@@ -19,6 +19,16 @@
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 
+.if defined(EMACS_PORT_NAME)
+USE_EMACS=	yes
+EMACS_NO_BUILD_DEPENDS=	yes
+EMACS_NO_RUN_DEPENDS=	yes
+PLIST_SUB+=	HAS_EMACS=""
+ELISPDIR=	${PREFIX}/${EMACS_SITE_LISPDIR}
+.else
+PLIST_SUB+=	HAS_EMACS="@comment "
+.endif
+
 BINS=		bin/rst2xml.py bin/rst2s5.py bin/rst2pseudoxml.py \
 		bin/rst2newlatex.py bin/rst2latex.py bin/rst2html.py
 
@@ -26,5 +36,10 @@
 .for i in ${BINS}
 	${MV} -f ${PREFIX}/${i} ${PREFIX}/${i:S/.py//g}
 .endfor
+
+.if defined(EMACS_PORT_NAME)
+	${MKDIR} ${ELISPDIR}
+	${INSTALL_DATA} ${WRKSRC}/tools/editors/emacs/rst.el ${ELISPDIR}
+.endif
 
 .include <bsd.port.mk>
diff -Nru --exclude=.svn py-docutils.orig/pkg-plist py-docutils/pkg-plist
--- py-docutils.orig/pkg-plist	Sun Feb 12 06:21:11 2006
+++ py-docutils/pkg-plist	Fri Jul 28 16:58:58 2006
@@ -334,6 +334,7 @@
 %%PYTHON_SITELIBDIR%%/docutils/__init__.pyo
 %%PYTHON_SITELIBDIR%%/docutils/__init__.pyc
 %%PYTHON_SITELIBDIR%%/docutils/__init__.py
+%%HAS_EMACS%%%%EMACS_SITE_LISPDIR%%/rst.el
 @dirrm %%PYTHON_SITELIBDIR%%/docutils/writers/s5_html/themes/big-black
 @dirrm %%PYTHON_SITELIBDIR%%/docutils/writers/s5_html/themes/big-white
 @dirrm %%PYTHON_SITELIBDIR%%/docutils/writers/s5_html/themes/default
@@ -358,3 +359,4 @@
 @dirrm %%PYTHON_SITELIBDIR%%/docutils/parsers
 @dirrm %%PYTHON_SITELIBDIR%%/docutils/languages
 @dirrm %%PYTHON_SITELIBDIR%%/docutils
+%%HAS_EMACS%%@dirrmtry %%EMACS_SITE_LISPDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607281313.k6SDDgPi007604>