aboutsummaryrefslogtreecommitdiff
path: root/net/penguintv-devel
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-05-15 21:37:32 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-05-15 21:37:32 +0000
commit4e1f3f8a9e8520cc9958d67a30915a2a6b318ee9 (patch)
treea12335e99bc86f41833cc152042239e492f598ab /net/penguintv-devel
parent38efdb35d7ef3587768225a3a60e50735187048c (diff)
downloadports-4e1f3f8a9e8520cc9958d67a30915a2a6b318ee9.tar.gz
ports-4e1f3f8a9e8520cc9958d67a30915a2a6b318ee9.zip
Notes
Diffstat (limited to 'net/penguintv-devel')
-rw-r--r--net/penguintv-devel/Makefile17
-rw-r--r--net/penguintv-devel/files/patchmozilla-setup.py15
-rw-r--r--net/penguintv-devel/pkg-plist6
3 files changed, 33 insertions, 5 deletions
diff --git a/net/penguintv-devel/Makefile b/net/penguintv-devel/Makefile
index fc03d39a0093..79a33bfdf00b 100644
--- a/net/penguintv-devel/Makefile
+++ b/net/penguintv-devel/Makefile
@@ -6,6 +6,7 @@
PORTNAME= PenguinTV
PORTVERSION= 1.71
+PORTREVISION= 1
CATEGORIES= net audio multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= penguintv
@@ -16,7 +17,6 @@ COMMENT= Graphical RSS feed reader with incorperated playback functions - develo
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/pysqlite2/_sqlite.so:${PORTSDIR}/databases/py-pysqlite21 \
${PYTHON_SITELIBDIR}/pycurl.so:${PORTSDIR}/ftp/py-curl \
- ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex \
${PYXML}
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
@@ -24,15 +24,28 @@ BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
.endif
RUN_DEPENDS= ${BUILD_DEPENDS}
+OPTIONS= MOZILLA "Use Mozilla rendered (experimental)" OFF
+
USE_GNOME= pygnomeextras pygnome2
USE_PYTHON= yes
CONFLICTS= PenguinTV-1.*
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MOZILLA)
+BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex \
+ mozilla-config:${PORTSDIR}/www/mozilla
+PLIST_SUB+= WITH_MOZILLA=""
+.else
+EXTRA_PATCHES+= ${FILESDIR}/patchmozilla-setup.py
+PLIST_SUB+= WITH_MOZILLA="@comment "
+.endif
+
do-build:
cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
do-install:
cd ${WRKSRC} && ${PYTHON_CMD} setup.py install
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/penguintv-devel/files/patchmozilla-setup.py b/net/penguintv-devel/files/patchmozilla-setup.py
new file mode 100644
index 000000000000..c1fd8554b9d3
--- /dev/null
+++ b/net/penguintv-devel/files/patchmozilla-setup.py
@@ -0,0 +1,15 @@
+--- setup.py.orig Tue May 16 07:18:29 2006
++++ setup.py Tue May 16 07:20:03 2006
+@@ -1,11 +1,4 @@
+-try:
+- from Pyrex.Distutils import build_ext
+- BUILD_MOZ=True
+-except:
+- print "pyrex not found, mozilla building disabled"
+- BUILD_MOZ=False
+-
+-
++BUILD_MOZ=False
+ from distutils.core import setup
+ from distutils.extension import Extension
+ import sys,os
diff --git a/net/penguintv-devel/pkg-plist b/net/penguintv-devel/pkg-plist
index 5deefb8b99c7..4936be554ce9 100644
--- a/net/penguintv-devel/pkg-plist
+++ b/net/penguintv-devel/pkg-plist
@@ -36,9 +36,9 @@
%%PYTHON_SITELIBDIR%%/penguintv/UpdateTasksManager.pyc
%%PYTHON_SITELIBDIR%%/penguintv/__init__.py
%%PYTHON_SITELIBDIR%%/penguintv/__init__.pyc
-%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/__init__.py
-%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/__init__.pyc
-%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/MozillaBrowser.so
+%%WITH_MOZILLA%%%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/__init__.py
+%%WITH_MOZILLA%%%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/__init__.pyc
+%%WITH_MOZILLA%%%%PYTHON_SITELIBDIR%%/penguintv/democracy_moz/MozillaBrowser.so
%%PYTHON_SITELIBDIR%%/penguintv/feedparser.py
%%PYTHON_SITELIBDIR%%/penguintv/feedparser.pyc
%%PYTHON_SITELIBDIR%%/penguintv/penguintv.py