Don't use MODPY_EXPAT_DEPENDS.

Update license marker.

With help from fgsch@ (thanks!)
ok alek@ (maintainer)
This commit is contained in:
kili 2009-01-04 16:54:09 +00:00
parent 70375c61e1
commit 1b463fbe8b
2 changed files with 4 additions and 17 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.9 2007/11/05 09:44:19 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.10 2009/01/04 16:54:09 kili Exp $
COMMENT= PDF-generating toolkit for Python
VERSION= 2.1
DISTNAME= ReportLab_${VERSION:S/./_/}
PKGNAME= py-reportlab-${VERSION}
PKGNAME= py-reportlab-${VERSION}p0
CATEGORIES= print graphics
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
@ -14,7 +14,7 @@ HOMEPAGE= http://www.reportlab.org/rl_toolkit.html
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
# BSD - LGPL
# BSD, LGPLv2, MPL1.0, MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
@ -26,8 +26,7 @@ EXTRACT_SUFX= .tgz
MODULES= lang/python
RUN_DEPENDS= :py-Imaging-*:graphics/py-Imaging \
${MODPY_EXPAT_DEPENDS}
RUN_DEPENDS= :py-Imaging-*:graphics/py-Imaging
WRKDIST= ${WRKDIR}/reportlab_${VERSION:S/./_/}
WRKSRC= ${WRKDIST}/reportlab

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-reportlab_setup_py,v 1.2 2007/11/05 09:44:19 ajacoutot Exp $
--- reportlab/setup.py.orig Fri Nov 2 09:30:14 2007
+++ reportlab/setup.py Fri Nov 2 09:30:48 2007
@@ -18,7 +18,7 @@ abspath = os.path.abspath
isfile = os.path.isfile
isdir = os.path.isfile
dirname = os.path.dirname
-package_path = pjoin(package_home(distutils.__dict__), 'site-packages', 'reportlab')
+package_path = pjoin(os.environ['PREFIX']+package_home(distutils.__dict__).replace(os.environ['LOCALBASE'], ''), 'site-packages', 'reportlab')
def get_version():
#determine Version