aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2012-02-13 15:05:35 +0800
committerwen <wen@FreeBSD.org>2012-02-13 15:05:35 +0800
commit0ad18270cc9766d271e976b3d06565e57926d6b4 (patch)
tree5a304f80d3d49cfdf868398cd5f116dc3926d006 /textproc
parent4bef531094e8f33327c1193f3a3271c317e07e95 (diff)
downloadfreebsd-ports-gnome-0ad18270cc9766d271e976b3d06565e57926d6b4.tar.gz
freebsd-ports-gnome-0ad18270cc9766d271e976b3d06565e57926d6b4.tar.zst
freebsd-ports-gnome-0ad18270cc9766d271e976b3d06565e57926d6b4.zip
- Unbreak on FreeBSD-9 and above
PR: ports/164928 Submitted by: Denis Generalov <gd@rambler-co.ru>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-rxp/Makefile8
-rw-r--r--textproc/py-rxp/files/patch-setup.py12
2 files changed, 13 insertions, 7 deletions
diff --git a/textproc/py-rxp/Makefile b/textproc/py-rxp/Makefile
index 49bb530fe351..38d257ebaefa 100644
--- a/textproc/py-rxp/Makefile
+++ b/textproc/py-rxp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= rxp
PORTVERSION= 0.9
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= http://www.reportlab.com/ftp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -27,13 +28,6 @@ DOCSDIR= ${PREFIX}/share/doc/py-rxp
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 900000
-BROKEN= does not build
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's/freebsd4/freebsd4", "freebsd5", "freebsd6", "freebsd7", "freebsd8/g' ${WRKSRC}/setup.py
-
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
diff --git a/textproc/py-rxp/files/patch-setup.py b/textproc/py-rxp/files/patch-setup.py
new file mode 100644
index 000000000000..533858906f3e
--- /dev/null
+++ b/textproc/py-rxp/files/patch-setup.py
@@ -0,0 +1,12 @@
+--- setup.py.orig 2012-02-10 14:58:50.000000000 +0800
++++ setup.py 2012-02-10 15:00:05.000000000 +0800
+@@ -25,7 +25,8 @@
+ LIBS=['nsl', 'socket', 'dl']
+ elif sys.platform=="aix4":
+ LIBS=['nsl_r', 'dl']
+- elif sys.platform in ("freebsd4", "darwin", "mac", "linux2"):
++ elif sys.platform in ("freebsd4", "darwin", "mac", "linux2") \
++ or sys.platform.startswith("freebsd"):
+ LIBS=[]
+ else:
+ msg = "Don't know about system %s" % sys.platform