1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- use the original extension name "pyosd", not "osd"

- install docs

PR:		78121
Submitted by:	novel
Approved by:	maintainer timeout
This commit is contained in:
Roman Bogorodskiy 2005-04-05 17:17:04 +00:00
parent 8776a5a609
commit d6048e6649
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132571
4 changed files with 36 additions and 80 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= osd
PORTVERSION= 0.2.12
PORTREVISION= 1
CATEGORIES= misc python
MASTER_SITES= http://repose.cx/pyosd/ \
http://damien.kangaweb.com/moving/stuff/pyosd/
@ -23,10 +24,18 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
post-patch:
${REINPLACE_CMD} -e 's;_X11BASE_;${X11BASE};g' ${WRKSRC}/setup.py
PORTDOCS= AUTHORS ChangeLog ChangeLog.old README README.daemon pyosd.html
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
post-extract:
@${MV} ${WRKSRC}/pyosd ${WRKSRC}/osd
post-patch:
@${REINPLACE_CMD} -e 's;_X11BASE_;${X11BASE};g' ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,68 +0,0 @@
--- setup.py.orig Mon Feb 23 05:43:05 2004
+++ setup.py Tue Mar 30 03:11:16 2004
@@ -8,9 +8,11 @@
url = "http://repose.cx/pyosd/",
author = "Damien Elmes",
author_email = "pyosd@repose.cx",
- packages = ['pyosd'],
+ include_dirs = ['_X11BASE_/include'],
+ packages = ['osd'],
ext_modules = \
- [Extension("_pyosd", ["_pyosd.c"],
- libraries=["xosd"])]
+ [Extension("_osd", ["_pyosd.c"],
+ libraries=["xosd"],
+ library_dirs = ['_X11BASE_/lib'])]
)
--- osd/__init__.py.orig Mon Mar 1 06:17:23 2004
+++ osd/__init__.py Tue Mar 30 03:11:16 2004
@@ -26,7 +26,7 @@
fonts or colours across the screen.
'''
-import _pyosd
+import _osd as _pyosd
import re
import string
@@ -44,7 +44,7 @@
error = _pyosd.error
-default_font="-*-helvetica-medium-r-normal-*-*-360-*-*-p-*-*-*"
+default_font="-*-helvetica-medium-r-normal-*-*-240-*-*-p-*-*-*"
class osd:
""" osd is a class used to create an object which can display messages on
--- osd/daemon.py.orig Mon Jan 26 02:14:01 2004
+++ osd/daemon.py Tue Mar 30 03:11:16 2004
@@ -37,8 +37,8 @@
"""
import os
-import pyosd
-import pyosd.daemon
+import osd as pyosd
+import osd.daemon
import sys
import string
--- _pyosd.c.orig Mon Mar 1 06:16:05 2004
+++ _pyosd.c Tue Mar 30 03:11:16 2004
@@ -73,13 +73,13 @@
};
void
-init_pyosd(void)
+init_osd(void)
{
PyObject *self;
PyObject *dict;
// create the module and add the functions
- self = Py_InitModule("_pyosd", pyosd_methods);
+ self = Py_InitModule("_osd", pyosd_methods);
// init custom exception
dict = PyModule_GetDict(self);

View File

@ -0,0 +1,15 @@
--- setup.py.orig Thu Jan 27 15:46:22 2005
+++ setup.py Sat Feb 26 18:43:15 2005
@@ -8,9 +8,11 @@
url = "http://repose.cx/pyosd/",
author = "Damien Elmes",
author_email = "pyosd@repose.cx",
+ include_dirs = ['/usr/X11R6/include'],
packages = ['pyosd'],
ext_modules = \
[Extension("_pyosd", ["_pyosd.c"],
- libraries=["xosd"])]
+ libraries=["xosd"],
+ library_dirs = ['/usr/X11R6/lib'])]
)

View File

@ -1,8 +1,8 @@
lib/%%PYTHON_VERSION%%/site-packages/_osd.so
lib/%%PYTHON_VERSION%%/site-packages/osd/__init__.py
lib/%%PYTHON_VERSION%%/site-packages/osd/__init__.pyc
lib/%%PYTHON_VERSION%%/site-packages/osd/__init__.pyo
lib/%%PYTHON_VERSION%%/site-packages/osd/daemon.py
lib/%%PYTHON_VERSION%%/site-packages/osd/daemon.pyc
lib/%%PYTHON_VERSION%%/site-packages/osd/daemon.pyo
@dirrm lib/%%PYTHON_VERSION%%/site-packages/osd
lib/%%PYTHON_VERSION%%/site-packages/_pyosd.so
lib/%%PYTHON_VERSION%%/site-packages/pyosd/__init__.py
lib/%%PYTHON_VERSION%%/site-packages/pyosd/__init__.pyc
lib/%%PYTHON_VERSION%%/site-packages/pyosd/__init__.pyo
lib/%%PYTHON_VERSION%%/site-packages/pyosd/daemon.py
lib/%%PYTHON_VERSION%%/site-packages/pyosd/daemon.pyc
lib/%%PYTHON_VERSION%%/site-packages/pyosd/daemon.pyo
@dirrm lib/%%PYTHON_VERSION%%/site-packages/pyosd