- Fix virtualbox python api dependency
- Mark IGNORE, since vboxgtk doesn't work with virtualbox-3.0.51.r22683 Approved by: tabthorpe, glarkin (mentors, implicit)
This commit is contained in:
parent
27aa0470cc
commit
177bfaf759
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241261
2 changed files with 13 additions and 2 deletions
|
@ -14,7 +14,7 @@ MAINTAINER= avl@FreeBSD.org
|
|||
COMMENT= GTK frontend for VirtualBox
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject \
|
||||
${PYTHON_SITELIBDIR}/virtualbox/xpcom/vboxxpcom.py:${PORTSDIR}/emulators/virtualbox
|
||||
${PYTHON_SITELIBDIR}/xpcom/vboxxpcom.py:${PORTSDIR}/emulators/virtualbox
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_GNOME= pygtk2
|
||||
|
@ -28,6 +28,8 @@ PLIST_SUB+= NLS=""
|
|||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
IGNORE= does not work with virtualbox-3.0.51.r22683
|
||||
|
||||
post-patch:
|
||||
.if defined(WITHOUT_NLS)
|
||||
@${REINPLACE_CMD} -e '/self.add_mo_files/d' \
|
||||
|
|
|
@ -15,8 +15,17 @@
|
|||
sys.path.insert(0, vbox_install_path)
|
||||
- sdk_dir = 'sdk/bindings/xpcom/python'
|
||||
- sys.path.insert(0, os.path.join(vbox_install_path, sdk_dir))
|
||||
+ sdk_dir = '%%PYTHON_SITELIBDIR%%/virtualbox'
|
||||
+ sdk_dir = '%%PYTHON_SITELIBDIR%%/xpcom'
|
||||
+ sys.path.insert(0, sdk_dir)
|
||||
base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
if os.path.isdir(os.path.join(base_path, 'vboxgtk')):
|
||||
sys.path.insert(0, base_path)
|
||||
@@ -72,7 +72,7 @@
|
||||
Otherwise this program will not run.
|
||||
"""
|
||||
try:
|
||||
- import xpcom.vboxxpcom
|
||||
+ import vboxxpcom
|
||||
except ImportError as ex:
|
||||
print "ERROR: xpcom package not found\n" + textwrap.dedent(msg)
|
||||
raise ex
|
||||
|
|
Loading…
Reference in a new issue