mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Make the use of mozilla optional
Noticed by: YAPHR
This commit is contained in:
parent
38efdb35d7
commit
4e1f3f8a9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162492
@ -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>
|
||||
|
15
net/penguintv-devel/files/patchmozilla-setup.py
Normal file
15
net/penguintv-devel/files/patchmozilla-setup.py
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user