From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 28 13:20:09 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7FE816A4DA for ; Fri, 28 Jul 2006 13:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3853A43D46 for ; Fri, 28 Jul 2006 13:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6SDK8q6066750 for ; Fri, 28 Jul 2006 13:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6SDK8E9066745; Fri, 28 Jul 2006 13:20:08 GMT (envelope-from gnats) Resent-Date: Fri, 28 Jul 2006 13:20:08 GMT Resent-Message-Id: <200607281320.k6SDK8E9066745@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Denis Shaposhnikov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C65CB16A4DA for ; Fri, 28 Jul 2006 13:13:48 +0000 (UTC) (envelope-from dsh@vlink.ru) Received: from vlink.ru (rigel.internal.vlink.ru [85.172.168.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14F0E43D46 for ; Fri, 28 Jul 2006 13:13:47 +0000 (GMT) (envelope-from dsh@vlink.ru) Received: from smtp.smtp.vlink.ru (clamav.smtp.vlink.ru [192.168.4.1]) by deliver.smtp.vlink.ru (Postfix) with ESMTP id 4F20CFED28A for ; Fri, 28 Jul 2006 17:13:43 +0400 (MSD) Received: from neva.vlink.ru (neva.vlink.ru [85.172.168.66]) by smtp.smtp.vlink.ru (Postfix) with ESMTP id 13E2310098E5 for ; Fri, 28 Jul 2006 17:13:42 +0400 (MSD) Received: from neva.vlink.ru (localhost [127.0.0.1]) by neva.vlink.ru (8.13.6/8.13.6) with ESMTP id k6SDDgWZ007608; Fri, 28 Jul 2006 17:13:42 +0400 (MSD) (envelope-from dsh@neva.vlink.ru) Received: (from dsh@localhost) by neva.vlink.ru (8.13.6/8.13.6/Submit) id k6SDDgPi007604; Fri, 28 Jul 2006 17:13:42 +0400 (MSD) (envelope-from dsh) Message-Id: <200607281313.k6SDDgPi007604@neva.vlink.ru> Date: Fri, 28 Jul 2006 17:13:42 +0400 (MSD) From: Denis Shaposhnikov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: dsh@neva.vlink.ru Subject: ports/100980: Update port: textproc/py-docutils (install rst.el) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Denis Shaposhnikov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 13:20:10 -0000 >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 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: