ports/163343: [NEW PORT] textproc/py-rstyoutube

Olivier Duchateau duchateau.olivier at gmail.com
Fri Dec 16 20:30:08 UTC 2011


>Number:         163343
>Category:       ports
>Synopsis:       [NEW PORT] textproc/py-rstyoutube
>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 Dec 16 20:30:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Duchateau
>Release:        FreeBSD 8.2-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
rstyoutube is a package for embedding youtube videos in reStructuredText documents.

Patch follows docutils scripts convention (no extension).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-rstyoutube/
#	py-rstyoutube/files
#	py-rstyoutube/files/patch-setup.py
#	py-rstyoutube/pkg-plist
#	py-rstyoutube/pkg-descr
#	py-rstyoutube/distinfo
#	py-rstyoutube/Makefile
#
echo c - py-rstyoutube/
mkdir -p py-rstyoutube/ > /dev/null 2>&1
echo c - py-rstyoutube/files
mkdir -p py-rstyoutube/files > /dev/null 2>&1
echo x - py-rstyoutube/files/patch-setup.py
sed 's/^X//' >py-rstyoutube/files/patch-setup.py << '6ac6ba8e225d7b3532aa854dd280f916'
X--- setup.py.orig	2011-12-15 22:08:27.000000000 +0100
X+++ setup.py	2011-12-16 21:07:37.000000000 +0100
X@@ -1,6 +1,21 @@
X #!/usr/bin/env python
X 
X from setuptools import setup
X+import glob
X+import os
X+
X+def rename_script(files):
X+    import shutil
X+
X+    if files:
X+        dirname = os.path.abspath(os.path.join('bin', '_script'))
X+        if not os.path.exists(dirname):
X+            os.makedirs(dirname)
X+            for file in files:
X+                shutil.copyfile(file, os.path.join(dirname, os.path.basename(file[:-3]).replace('+', '_')))
X+
X+# Rename script file (without .py)
X+rename_script(glob.glob('bin/*.py'))
X 
X setup(
X     name='rstyoutube',
X@@ -11,7 +26,7 @@
X     author_email='jcd at sdf.lonestar.org',
X     url='http://bitbucket.org/cliff/rstyoutube',
X     py_modules=['rstyoutube'],
X-    scripts=['bin/rst2html+youtube.py'],
X+    scripts= glob.glob('bin/_script/*'),
X     license='LICENSE.txt',
X     install_requires=[
X         'docutils',
6ac6ba8e225d7b3532aa854dd280f916
echo x - py-rstyoutube/pkg-plist
sed 's/^X//' >py-rstyoutube/pkg-plist << 'fa5c0f04b64bc7b64e602c54bcef2895'
Xbin/rst2html_youtube
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
fa5c0f04b64bc7b64e602c54bcef2895
echo x - py-rstyoutube/pkg-descr
sed 's/^X//' >py-rstyoutube/pkg-descr << '46cbed27a8e106b8bb389fe38c994d56'
Xrstyoutube is a package for embedding YouTube videos in reStructuredText documents.
X
XWWW:	http://bitbucket.org/cliff/rstyoutube
46cbed27a8e106b8bb389fe38c994d56
echo x - py-rstyoutube/distinfo
sed 's/^X//' >py-rstyoutube/distinfo << 'e61583845f58dc2909575af0bf6e4a50'
XSHA256 (rstyoutube-0.1.1.tar.gz) = c7d4cb761680be01c0f5630805db87c01125c89cf6209784ac23806910f90ecd
XSIZE (rstyoutube-0.1.1.tar.gz) = 3730
e61583845f58dc2909575af0bf6e4a50
echo x - py-rstyoutube/Makefile
sed 's/^X//' >py-rstyoutube/Makefile << '56718d83275f0884989ad9c7138e62be'
X# New ports collection makefile for: py-rstyoutube
X# Date created:		2011-12-16
X# Whom:		Olivier Duchateau <duchateau.olivier at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rstyoutube
XPORTVERSION=	0.1.1
XCATEGORIES=	textproc python
XMASTER_SITES=	CHEESESHOP
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	duchateau.olivier at gmail.com
XCOMMENT=	Embed YouTube videos in reStructuredText documents
X
XRUN_DEPENDS=	${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	easy_install
X
X.include <bsd.port.mk>
56718d83275f0884989ad9c7138e62be
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list