mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
rstyoutube is a package for embedding YouTube videos in reStructuredText
documents. WWW: http://bitbucket.org/cliff/rstyoutube PR: ports/163343 Submitted by: Olivier Duchateau <duchateau.olivier@gmail.com>
This commit is contained in:
parent
83452530d4
commit
dde7047b55
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287578
6 changed files with 64 additions and 0 deletions
|
@ -1121,6 +1121,7 @@
|
||||||
SUBDIR += py-rdflib
|
SUBDIR += py-rdflib
|
||||||
SUBDIR += py-reverend
|
SUBDIR += py-reverend
|
||||||
SUBDIR += py-rss2gen
|
SUBDIR += py-rss2gen
|
||||||
|
SUBDIR += py-rstyoutube
|
||||||
SUBDIR += py-rxp
|
SUBDIR += py-rxp
|
||||||
SUBDIR += py-sgrep
|
SUBDIR += py-sgrep
|
||||||
SUBDIR += py-sphinx
|
SUBDIR += py-sphinx
|
||||||
|
|
22
textproc/py-rstyoutube/Makefile
Normal file
22
textproc/py-rstyoutube/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# New ports collection makefile for: py-rstyoutube
|
||||||
|
# Date created: 2011-12-16
|
||||||
|
# Whom: Olivier Duchateau <duchateau.olivier@gmail.com>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= rstyoutube
|
||||||
|
PORTVERSION= 0.1.1
|
||||||
|
CATEGORIES= textproc python
|
||||||
|
MASTER_SITES= CHEESESHOP
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= duchateau.olivier@gmail.com
|
||||||
|
COMMENT= Embed YouTube videos in reStructuredText documents
|
||||||
|
|
||||||
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
|
||||||
|
|
||||||
|
USE_PYTHON= yes
|
||||||
|
USE_PYDISTUTILS= easy_install
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
textproc/py-rstyoutube/distinfo
Normal file
2
textproc/py-rstyoutube/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (rstyoutube-0.1.1.tar.gz) = c7d4cb761680be01c0f5630805db87c01125c89cf6209784ac23806910f90ecd
|
||||||
|
SIZE (rstyoutube-0.1.1.tar.gz) = 3730
|
33
textproc/py-rstyoutube/files/patch-setup.py
Normal file
33
textproc/py-rstyoutube/files/patch-setup.py
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- setup.py.orig 2011-12-15 22:08:27.000000000 +0100
|
||||||
|
+++ setup.py 2011-12-16 21:07:37.000000000 +0100
|
||||||
|
@@ -1,6 +1,21 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from setuptools import setup
|
||||||
|
+import glob
|
||||||
|
+import os
|
||||||
|
+
|
||||||
|
+def rename_script(files):
|
||||||
|
+ import shutil
|
||||||
|
+
|
||||||
|
+ if files:
|
||||||
|
+ dirname = os.path.abspath(os.path.join('bin', '_script'))
|
||||||
|
+ if not os.path.exists(dirname):
|
||||||
|
+ os.makedirs(dirname)
|
||||||
|
+ for file in files:
|
||||||
|
+ shutil.copyfile(file, os.path.join(dirname, os.path.basename(file[:-3]).replace('+', '_')))
|
||||||
|
+
|
||||||
|
+# Rename script file (without .py)
|
||||||
|
+rename_script(glob.glob('bin/*.py'))
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='rstyoutube',
|
||||||
|
@@ -11,7 +26,7 @@
|
||||||
|
author_email='jcd@sdf.lonestar.org',
|
||||||
|
url='http://bitbucket.org/cliff/rstyoutube',
|
||||||
|
py_modules=['rstyoutube'],
|
||||||
|
- scripts=['bin/rst2html+youtube.py'],
|
||||||
|
+ scripts= glob.glob('bin/_script/*'),
|
||||||
|
license='LICENSE.txt',
|
||||||
|
install_requires=[
|
||||||
|
'docutils',
|
4
textproc/py-rstyoutube/pkg-descr
Normal file
4
textproc/py-rstyoutube/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
rstyoutube is a package for embedding YouTube videos in reStructuredText
|
||||||
|
documents.
|
||||||
|
|
||||||
|
WWW: http://bitbucket.org/cliff/rstyoutube
|
2
textproc/py-rstyoutube/pkg-plist
Normal file
2
textproc/py-rstyoutube/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bin/rst2html_youtube
|
||||||
|
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
Loading…
Add table
Reference in a new issue