From 50b449a5aa5269bf2d1378f8c5969ee15bfb9c63 Mon Sep 17 00:00:00 2001 From: Alexander Logvinov Date: Mon, 22 Jun 2009 21:21:42 +0000 Subject: [PATCH] VBoxGtk is a simple GTK frontend for VirtualBox. Its objective is to support only the basic features of VirtualBox and keep the interface simple and clean. WWW: http://vboxgtk.sourceforge.net/ Approved by: glarkin (mentor) --- deskutils/Makefile | 1 + deskutils/vboxgtk/Makefile | 48 +++++++++++++++++++++++++++++++++++++ deskutils/vboxgtk/distinfo | 3 +++ deskutils/vboxgtk/pkg-descr | 5 ++++ deskutils/vboxgtk/pkg-plist | 17 +++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 deskutils/vboxgtk/Makefile create mode 100644 deskutils/vboxgtk/distinfo create mode 100644 deskutils/vboxgtk/pkg-descr create mode 100644 deskutils/vboxgtk/pkg-plist diff --git a/deskutils/Makefile b/deskutils/Makefile index 2fb0703b3657..f118a3def9ed 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -253,6 +253,7 @@ SUBDIR += tpb SUBDIR += treeline SUBDIR += tuxcards + SUBDIR += vboxgtk SUBDIR += vym SUBDIR += when SUBDIR += wmpinboard diff --git a/deskutils/vboxgtk/Makefile b/deskutils/vboxgtk/Makefile new file mode 100644 index 000000000000..25cc4fed139e --- /dev/null +++ b/deskutils/vboxgtk/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: vboxgtk +# Date created: 13 June 2009 +# Whom: Alexander Logvinov +# +# $FreeBSD$ +# + +PORTNAME= vboxgtk +PORTVERSION= 0.4.1 +CATEGORIES= deskutils emulators gnome +MASTER_SITES= http://www.xente.mundo-r.com/narf/vboxgtk/releases/ \ + LOCAL/avl + +MAINTAINER= avl@FreeBSD.org +COMMENT= GTK frontend for VirtualBox + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject \ + VBoxManage:${PORTSDIR}/emulators/virtualbox + +USE_BZIP2= yes +NO_BUILD= yes +USE_PYTHON_RUN= yes +USE_GNOME= pygtk2 +VBOXGTKDIR= ${PREFIX}/libexec/${PORTNAME} +DESKTOP_ENTRIES="Sun VirtualBox" \ + "Run several virtual systems on a single host computer" \ + "${PORTNAME}.png" \ + "${PORTNAME}" \ + "Application;System;Emulator;" \ + true +PLIST_SUB= VBOXGTKDIR="${VBOXGTKDIR:S,^${PREFIX}/,,}" + +post-patch: + @${REINPLACE_CMD} -e 's|\([^#]self.base_path = \).*|\1\"${VBOXGTKDIR}/\"|' \ + -e 's|/usr/bin|${PREFIX}/bin|' ${WRKSRC}/${PORTNAME} + @${REINPLACE_CMD} -e 's|createvdi|createhd|' -e 's|(hd_size|(int(hd_size)|' \ + ${WRKSRC}/vboxdao_vboxmanage.py + +do-install: + ${MKDIR} ${VBOXGTKDIR}/pixmaps + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${VBOXGTKDIR} + ${INSTALL_DATA} ${WRKSRC}/*.py ${VBOXGTKDIR} + ${INSTALL_DATA} ${WRKSRC}/*.glade ${VBOXGTKDIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${VBOXGTKDIR}/pixmaps + ${LN} -sf ${VBOXGTKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${LN} -sf ${VBOXGTKDIR}/pixmaps/48x48.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + +.include diff --git a/deskutils/vboxgtk/distinfo b/deskutils/vboxgtk/distinfo new file mode 100644 index 000000000000..2921a0ca3e31 --- /dev/null +++ b/deskutils/vboxgtk/distinfo @@ -0,0 +1,3 @@ +MD5 (vboxgtk-0.4.1.tar.bz2) = 9afcb0d09bd86b02a6a422bdb8598b49 +SHA256 (vboxgtk-0.4.1.tar.bz2) = 96b721ddafe2a788d9f31ba0a4299fdacc0a2ac56c956877479f9edb000e1ec9 +SIZE (vboxgtk-0.4.1.tar.bz2) = 33318 diff --git a/deskutils/vboxgtk/pkg-descr b/deskutils/vboxgtk/pkg-descr new file mode 100644 index 000000000000..0767e6f6b3d2 --- /dev/null +++ b/deskutils/vboxgtk/pkg-descr @@ -0,0 +1,5 @@ +VBoxGtk is a simple GTK frontend for VirtualBox. Its objective is to +support only the basic features of VirtualBox and keep the interface +simple and clean. + +WWW: http://vboxgtk.sourceforge.net/ diff --git a/deskutils/vboxgtk/pkg-plist b/deskutils/vboxgtk/pkg-plist new file mode 100644 index 000000000000..4147acae3931 --- /dev/null +++ b/deskutils/vboxgtk/pkg-plist @@ -0,0 +1,17 @@ +bin/vboxgtk +%%VBOXGTKDIR%%/pixmaps/16x16.png +%%VBOXGTKDIR%%/pixmaps/32x32.png +%%VBOXGTKDIR%%/pixmaps/48x48.png +%%VBOXGTKDIR%%/util.py +%%VBOXGTKDIR%%/vboxdao_vboxmanage.py +%%VBOXGTKDIR%%/vboxdao_xml.py +%%VBOXGTKDIR%%/vboxgtk +%%VBOXGTKDIR%%/vboxgtk.glade +%%VBOXGTKDIR%%/vboxiface.py +%%VBOXGTKDIR%%/vboxmgr.py +%%VBOXGTKDIR%%/vboxrunner_sdl_cs.py +%%VBOXGTKDIR%%/vboxrunner_sdl_thr.py +%%VBOXGTKDIR%%/vmvdi.py +share/pixmaps/vboxgtk.png +@dirrm %%VBOXGTKDIR%%/pixmaps +@dirrm %%VBOXGTKDIR%%