Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When Should We Expect Miro in Portage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Wed Oct 29, 2008 12:10 pm    Post subject: When Should We Expect Miro in Portage? Reply with quote

When it's this easy:

1. add "PORTDIR_OVERLAY=/usr/local/portage" to /etc/make.conf
2. mkdir -p /usr/local/portage/media-tv/miro/files
3. Extract ebuild from below, put it in /usr/local/portage/media-tv/miro/miro-1.2.8.ebuild
4. Extract files/setup.py.patch from below, put it in /usr/local/portage/media-tv/miro/files/setup.py.patch
5. Extract files/MozillaBrowser.sed from below, put it in /usr/local/portage/media-tv/miro/files/MozillaBrowser.sed
6. cd /usr/local/portage/media-tv/miro/
7. ebuild miro-1.2.8.ebuild digest
8. emerge miro

cat miro-1.2.8.ebuild
Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils multilib distutils confutils fdo-mime

MY_P="${P/m/M}"
DESCRIPTION="Open source video player"
HOMEPAGE="http://www.getmiro.com/"
SRC_URI="http://ftp.osuosl.org/pub/pculture.org/miro/src/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 amd64"
#IUSE="doc libnotify"

# FIXME: This is simply rewritten from setup.cfg. Adding version requirements is strongly recommended.
# FIXME: the following deps were removed because setup.py isn't clear about it.
# dev-libs/nss -> present through xulrunner
# media-libs/libfame
# libnotify ( dev-python/notify-python )
# doc? ( dev-util/devhelp )
# net-libs/xulrunner -> gecko is present through g-p-e check
RDEPEND=">=dev-python/pygtk-2.10
   || ( >=dev-lang/python-2.5
        >=dev-python/pysqlite-2 )
   >=dev-libs/boost-1.34.1-r1
   dev-python/gnome-python-extras
   dev-python/dbus-python
   <net-libs/xulrunner-1.9
   >=dev-python/pyrex-0.9.6.4
   media-libs/xine-lib"
DEPEND="${RDEPEND}
   sys-devel/gettext
   dev-util/pkgconfig"

S="${WORKDIR}/${MY_P}/platform/gtk-x11"

src_unpack() {
   unpack ${A}
   cd "${S}"

   # Force <xulrunner-1.9
   epatch ${FILESDIR}/setup.py.patch
   
   # Generate MozillaBrowser.c first, for patching
   pyrexc platform/frontends/html/MozillaBrowser.pyx
   mv platform/frontends/html/MozillaBrowser.c   platform/frontends/html/MozillaBrowser.c.orig
   sed -f ${FILESDIR}/MozillaBrowser.sed platform/frontends/html/MozillaBrowser.c.orig > platform/frontends/html/MozillaBrowser.c
}

pkg_setup() {
   confutils_require_built_with_any dev-python/gnome-python-extras xulrunner firefox seamonkey

   if ! built_with_use dev-lang/python berkdb; then
      eerror "You must reemerge dev-lang/python with \"berkdb\" flag set."
      die "berkbd missing in dev-lang/python"
   fi

   if has_version ">=dev-lang/python-2.5" &&
      ! has_version ">=dev-python/pysqlite-2" &&
      ! built_with_use dev-lang/python sqlite ; then
      eerror "You must reemerge dev-lang/python with \"sqlite\" flag set."
      die "sqlite missing in dev-lang/python"
   fi
}

pkg_postinst() {
   distutils_pkg_postinst
   fdo-mime_desktop_database_update
   fdo-mime_mime_database_update

   MOZSETUP="/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/mozsetup.py"
   elog ""
   elog "To increase the font size of the main display area, add:"
   elog "user_pref(\"font.minimum-size.x-western\", 15);"
   elog ""
   elog "to the following file:"
   elog "${MOZSETUP}"
   elog ""
}


cat files/setup.py.patch
Code:
--- setup.py      2008-07-04 11:25:19.221881297 +0200
+++ setup.py.new   2008-07-04 11:24:58.355976656 +0200
@@ -243,11 +243,11 @@
     sys.exit("Package config error:\n%s" % (error,))
 
 xulrunner19 = False
-if re.search("^libxul", packages, re.MULTILINE):
-    xulrunner19 = True
-    xpcom = 'libxul'
-    gtkmozembed = 'libxul'
-elif re.search("^xulrunner-xpcom", packages, re.MULTILINE):
+#if re.search("^libxul", packages, re.MULTILINE):
+#    xulrunner19 = True
+#    xpcom = 'libxul'
+#    gtkmozembed = 'libxul'
+if re.search("^xulrunner-xpcom", packages, re.MULTILINE):
     xpcom = 'xulrunner-xpcom'
     gtkmozembed = 'xulrunner-gtkmozembed'
 elif re.search("^mozilla-xpcom", packages, re.MULTILINE):


cat files/MozillaBrowser.sed
Code:
s/__pyx_4 = PyInt_AsLong(__pyx_v_gil); if (PyErr_Occurred()) {__pyx_filename = __pyx_f\[0\]; __pyx_lineno = 103; goto __pyx_L1;}/__pyx_4 = (PyGILState_STATE) PyInt_AsLong(__pyx_v_gil); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}/
s/g_signal_connect(((gpointer \*)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser \*)__pyx_v_self)->cWidget),__pyx_k7,((void \*)__pyx_f_14MozillaBrowser_open_uri_cb),((gpointer)__pyx_v_self));/g_signal_connect(((gpointer *)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser *)__pyx_v_self)->cWidget),__pyx_k7,((void (*)())(__pyx_f_14MozillaBrowser_open_uri_cb)),((gpointer)__pyx_v_self));/
s/g_signal_connect(((gpointer \*)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser \*)__pyx_v_self)->cWidget),__pyx_k8,((void \*)__pyx_f_14MozillaBrowser_on_dom_mouse_down),((gpointer)__pyx_v_self));/g_signal_connect(((gpointer *)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser *)__pyx_v_self)->cWidget),__pyx_k8,((void (*)())__pyx_f_14MozillaBrowser_on_dom_mouse_down),((gpointer)__pyx_v_self));/
s/g_signal_connect(((gpointer \*)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser \*)__pyx_v_self)->cWidget),__pyx_k9,((void \*)__pyx_f_14MozillaBrowser_new_window_cb),((gpointer)__pyx_v_self));/g_signal_connect(((gpointer *)((struct __pyx_obj_14MozillaBrowser_MozillaBrowser *)__pyx_v_self)->cWidget),__pyx_k9,((void (*)())__pyx_f_14MozillaBrowser_new_window_cb),((gpointer)__pyx_v_self));/
s/__pyx_v_newmoz = gtk_moz_embed_new();/__pyx_v_newmoz = (GtkMozEmbed*)gtk_moz_embed_new();/
s/gtk_container_add(__pyx_v_w,((GtkWidget \*)__pyx_v_newmoz));/gtk_container_add((GtkContainer*)__pyx_v_w,((GtkWidget *)__pyx_v_newmoz));/
s/g_signal_connect(((gpointer \*)__pyx_v_newmoz),__pyx_k30,((void \*)__pyx_f_14MozillaBrowser_new_window_open_uri_cb),((gpointer)__pyx_v_self));/g_signal_connect(((gpointer *)__pyx_v_newmoz),__pyx_k30,((void (*)())__pyx_f_14MozillaBrowser_new_window_open_uri_cb),((gpointer)__pyx_v_self));/

wc -l files/MozillaBrowser.sed
7 files/MozillaBrowser.sed
Back to top
View user's profile Send private message
makism
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2007
Posts: 85

PostPosted: Wed Oct 29, 2008 12:33 pm    Post subject: Reply with quote

hm, maybe you should post the ebuilds and the related files to gentoo`s bugzilla? :-)
Back to top
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Wed Oct 29, 2008 9:55 pm    Post subject: Reply with quote

When there are no more FIXME's
Those patches/sed are submitted upstream
and it has been submitted to b.g.o

And when a dev becomes interested enough to add it.
_________________
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2674
Location: here, there or in transit

PostPosted: Thu Oct 30, 2008 5:33 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software. P&P is inappropriate for support of ebuilds not in the official tree, so moved here.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Oct 30, 2008 1:07 pm    Post subject: Reply with quote

See if you can get it in Sunrise. That way it is tested until it's ready.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
ilborg
n00b
n00b


Joined: 02 Mar 2008
Posts: 42
Location: Finland

PostPosted: Thu Oct 30, 2008 8:48 pm    Post subject: Reply with quote

Miro has been some time in bug list. I'm using this program too with gentoo and custom ebuild.

edit:
here is the request in buglist:
https://bugs.gentoo.org/show_bug.cgi?id=131527

Couple of years it has been in request list. So good program that it should be in portage by now. Developers are probably hands full of work and don't want any more work to their shoulders. Maybe somebody could do miro overlay?
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Wed Feb 11, 2009 2:29 am    Post subject: Reply with quote

I never really paid attention to miro, but I just read about the 2.0 launch and it looks really good. Here's hoping it is added to portage soon... in the meantime I guess I'll stick it in my overlay.
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 517

PostPosted: Wed Feb 11, 2009 11:29 pm    Post subject: Reply with quote

At the moment, it seems Miro will stay in b.g.o until some dev officially wants to maintain it. And no dev wants to maintain it.

Not sure there is much to maintain, though - 1.2.8 worked for probably everyone. We'll see how long before they get the 2.0 ebuild stable (am compiling it right now).
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum