From nobody@FreeBSD.org  Sun Dec 22 21:03:05 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CD5D2431
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Dec 2013 21:03:05 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id BA05518BA
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Dec 2013 21:03:05 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBML35iJ022255
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Dec 2013 21:03:05 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBML35D9022232;
	Sun, 22 Dec 2013 21:03:05 GMT
	(envelope-from nobody)
Message-Id: <201312222103.rBML35D9022232@oldred.freebsd.org>
Date: Sun, 22 Dec 2013 21:03:05 GMT
From: Kevin Zheng <kevinz5000@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: textproc/asciidoc should install asciidocapi.py
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         185107
>Category:       ports
>Synopsis:       textproc/asciidoc should install asciidocapi.py
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 22 21:10:00 UTC 2013
>Closed-Date:    Mon Jan 06 15:13:35 UTC 2014
>Last-Modified:  Mon Jan  6 15:20:03 UTC 2014
>Originator:     Kevin Zheng
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD sigma.local 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The asciidocapi module implements a Python API for AsciiDoc. This module is shipped with the AsciiDoc distribution and should be installed under ${PYTHONPREFIX_SITELIBDIR}.

On the other hand, www/pelican seems to be the only port that uses asciidocapi, so perhaps it should be installed with the port instead.

At the same time, the module is not very big and doesn't take much effort to install, something along the lines of:

post-install:
	${INSTALL_DATA} ${WRKSRC}/asciidocapi.py \
	   ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Dec 22 21:10:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185107 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Mon Jan 6 15:13:35 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185107 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185107: commit references a PR
Date: Mon,  6 Jan 2014 15:11:58 +0000 (UTC)

 Author: sunpoet
 Date: Mon Jan  6 15:11:48 2014
 New Revision: 338893
 URL: http://svnweb.freebsd.org/changeset/ports/338893
 
 Log:
   - Install asciidocapi.py
   - Bump PORTREVISION for package change
   - While I'm here, fix shebang
   
   PR:		ports/185107
   Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
 
 Modified:
   head/textproc/asciidoc/Makefile
 
 Modified: head/textproc/asciidoc/Makefile
 ==============================================================================
 --- head/textproc/asciidoc/Makefile	Mon Jan  6 15:11:43 2014	(r338892)
 +++ head/textproc/asciidoc/Makefile	Mon Jan  6 15:11:48 2014	(r338893)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	asciidoc
  PORTVERSION=	8.6.9
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	textproc
  MASTER_SITES=	SF
  
 @@ -17,7 +17,7 @@ RUN_DEPENDS=	python2:${PORTSDIR}/lang/py
  
  GNU_CONFIGURE=	yes
  USE_PYTHON=	-2.7
 -USES=		gmake
 +USES=		gmake shebangfix
  
  CONF_FILES=	asciidoc.conf docbook45.conf filters/code/code-filter.conf \
  		filters/graphviz/graphviz-filter.conf \
 @@ -30,14 +30,25 @@ CONF_FILES=	asciidoc.conf docbook45.conf
  		lang-ru.conf lang-uk.conf latex.conf slidy.conf text.conf \
  		xhtml11.conf xhtml11-quirks.conf
  
 +SHEBANG_FILES=	a2x.py \
 +		asciidoc.py \
 +		asciidocapi.py \
 +		filters/latex/latex2png.py \
 +		filters/graphviz/graphviz2png.py \
 +		filters/music/music2png.py \
 +		filters/code/code-filter.py
 +python_OLD_CMD=	${SETENV} python
 +python_CMD=	${PYTHON_CMD}
 +
  post-patch:
  	@${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|' ${WRKSRC}/Makefile.in
 -	@${REINPLACE_CMD} -e '1 s|${SETENV} python|&2|' ${WRKSRC}/a2x.py ${WRKSRC}/asciidoc.py
  .for conf_file in ${CONF_FILES}
  	@cd ${WRKSRC}/ && ${MV} ${conf_file} ${conf_file}.sample
  .endfor
  
  post-install:
 +	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/
 +	${INSTALL_DATA} ${WRKSRC}/asciidocapi.py ${STAGEDIR}${PYTHON_SITELIBDIR}/
  .for conf_file in ${CONF_FILES}
  	@if [ ! -f ${ETCDIR}/${conf_file} ]; then \
  		${CP} -p ${STAGEDIR}${ETCDIR}/${conf_file}.sample ${STAGEDIR}${ETCDIR}/${conf_file}; \
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
