Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Democracy Player ebuild
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
massysett
Apprentice
Apprentice


Joined: 06 Jan 2006
Posts: 296
Location: Silver Spring, Maryland USA

PostPosted: Thu Apr 27, 2006 10:06 pm    Post subject: Democracy Player ebuild Reply with quote

This looks pretty neat:

http://www.getdemocracy.com/

It's a TV player that is GPL. It's got channels and subscription features. Video uses VLC, so no Quick Time or wmv crap.

They've just released a Linux version, but there are only binaries for Ubuntu, Debian and Fedora.

A Gentoo ebuild would be neat . . . I would do it myself, but I currently know nothing about ebuilds and in fact I'd be lucky if I can even compile this thing from a .tgz, but I will try tonight . . .
_________________
Draft Windows-to-Linux Guide
Back to top
View user's profile Send private message
LouisC
n00b
n00b


Joined: 29 Jan 2005
Posts: 47

PostPosted: Thu Apr 27, 2006 10:29 pm    Post subject: Reply with quote

I believe the video uses xine, but I might be wrong.

I'm also looking forward to an ebuild.
_________________
Kernel 2.6.17-beyond3 AMD64
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 27, 2006 10:59 pm    Post subject: Re: Democracy Player ebuild Reply with quote

massysett wrote:
A Gentoo ebuild would be neat . . . I would do it myself, but I currently know nothing about ebuilds

Follow the links at the bottom of the wiki entry, and ask in #gentoo-dev-help on FreeNode for guidance. It's called empowerment :wink:
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Apr 28, 2006 12:21 am    Post subject: Reply with quote

Here are the Democracy Install Instructions.

I think the first step is to translate the Debian dependency into Gentoo dependencies.

I made a rough stab at it. Right now this ebuild is SURE TO FAIL.

But it could help someone else get started especially if they already have most of the Gnome stuff installed.

I created the file /usr/local/portage/media-video/democracy/democracy-0.8.2.ebuild:

Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Internet TV platform client"

HOMEPAGE="http://www.getdemocracy.comi/"

SRC_URI="ftp://ftp.osuosl.org/pub/pculture.org/democracy/src/Democracy-${PV}-Source.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86"

IUSE=""

DEPEND="dev-util/subversion
    >=dev-lang/python-2.4
    dev-libs/boost
    dev-python/gnome-python
    media-libs/xine-lib"


src_compile() {

   econf || die "econf failed"

   emake || die "emake failed"
}

src_install() {

   make DESTDIR=${D} install || die

}


Right now it only installs dependencies and unpacks the Democracy tarball. I am not even sure if the dependencies are accurate, I've got KDE, not Gnome on my system and the dependencies above require compiling/installing 50 Meg of new source. I've also excluded the Mozilla/Firefox dependency because that seems to be changing target with patches now available to use Firefox instead of Mozilla (see the "View Tickets" link on the page I linked to above).

If you "emerge democracy" it should install the dependencies listed above and then fail installing democracy. You might want to double check the dependencies before installing.

To get it to fetch and unpack the tarball you will need to cd to the directory containing the ebuild and then run:
Code:
# ebuild democracy-0.8.2.ebuild digest
# ebuild democracy-0.8.2.ebuild unpack


Additional resources are "man ebuild" and "man 5 ebuild" and this Ebuild writing Guide. You might also want to look at the comments in /usr/portage/skel.ebuild but they are a little terse.
Back to top
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Fri Apr 28, 2006 12:43 am    Post subject: Reply with quote

It's a Gnome app? :roll:
Back to top
View user's profile Send private message
Rukie
l33t
l33t


Joined: 26 Jan 2004
Posts: 692
Location: SE Wi, Home of cheese and cowtippers.......

PostPosted: Fri Apr 28, 2006 1:22 am    Post subject: Democracy-Internet TV Viewing proggy Reply with quote

Trying to figure otu how to install it :p I just read it was made available for linux on slashdot.org
Anyone heard of this program before?

Also, anyone know all of gentoos dependencies that are needed?
_________________
Gentoomania! Support the Open Source!
http://www.rukie.ath.cx
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Apr 28, 2006 2:16 am    Post subject: Reply with quote

Yes. If you follow the link at the top of my post you will see it depends on python-gnome stuff which requires a bunch of gnome stuff. Based on my guess above I got:
Code:
# emerge -p democracy

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-libs/boost-1.33.1  USE="doc -bcp -bjam -debug -pyste -static -threads -threadsonly"
[ebuild  N    ] gnome-base/libbonobo-2.10.1  USE="doc -debug -static"
[ebuild  N    ] gnome-base/libgnomecanvas-2.12.0  USE="X doc -debug -static"
[ebuild  N    ] gnome-base/gnome-mime-data-2.4.2  USE="-debug"
[ebuild  N    ] gnome-base/gnome-vfs-2.12.2  USE="doc hal ssl -debug -gnutls -howl -ipv6 -samba"
[ebuild  N    ] gnome-base/libgnome-2.12.0.1  USE="doc -debug -esd -static"
[ebuild  N    ] gnome-base/libbonoboui-2.10.1-r1  USE="X doc -debug -static"
[ebuild  N    ] gnome-base/gnome-keyring-0.4.6  USE="-debug"
[ebuild  N    ] gnome-base/libgnomeui-2.12.0  USE="doc jpeg -debug -static"
[ebuild  N    ] x11-themes/hicolor-icon-theme-0.8
[ebuild  N    ] x11-themes/gnome-icon-theme-2.12.1  USE="-debug"
[ebuild  N    ] x11-themes/gtk-engines-2.6.7  USE="-accessibility -debug"
[ebuild  N    ] x11-themes/gnome-themes-2.12.3  USE="-accessibility -debug"
[ebuild  N    ] dev-python/pyorbit-2.0.1  USE="-debug"
[ebuild  N    ] net-print/libgnomecups-0.2.0  USE="-debug"
[ebuild  N    ] gnome-base/libgnomeprint-2.12.1  USE="cups doc -debug"
[ebuild  N    ] gnome-base/libgnomeprintui-2.12.1  USE="doc -debug"
[ebuild  N    ] media-libs/glut-3.7.1
[ebuild  N    ] dev-python/pyopengl-2.0.0.44
[ebuild  N    ] dev-python/pycairo-1.0.2  USE="-gtk -numeric -svg"
[ebuild  N    ] dev-python/numeric-23.7
[ebuild  N    ] x11-libs/gtkglarea-1.99.0  USE="-debug"
[ebuild  N    ] dev-python/pygtk-2.8.2  USE="doc opengl"
[ebuild  N    ] dev-python/gnome-python-2.12.1  USE="doc -debug -gtkhtml"
[ebuild  N    ] media-video/democracy-0.8.2  USE="X -gnome"
Back to top
View user's profile Send private message
kfkl
n00b
n00b


Joined: 28 Apr 2006
Posts: 2

PostPosted: Fri Apr 28, 2006 2:36 am    Post subject: Reply with quote

If you patch the setup.py in tv/platform/gtk-x11 with the following and have everything installed as above, it will build. This change looks for either mozilla or firefox, something the default setup.py doesn't. Search for the commented line.

Code:

#### MozillaBrowser Extension ####
mozilla_paths = None
for mozType in ["mozilla", "firefox", "mozilla-firefox"]:
    try:
        mozilla_paths = parsePkgConfig("pkg-config", "%s-gtkmozembed" % mozType)
    except:
        continue
    else:
        break

if mozilla_paths == None:
    raise RuntimeError("Cannot find gtkmozembed")

mozilla_browser_options = parsePkgConfig("pkg-config" ,
        "gtk+-2.0 glib-2.0 pygtk-2.0 %s-gtkmozembed %s-xpcom" % (mozType, mozType))

mozilla_base = os.path.normpath(mozilla_paths['include_dirs'][0] + "/..")

mozilla_browser_options['include_dirs'].append(mozilla_base)
mozilla_browser_options['include_dirs'].append(mozilla_base + "/dom")
mozilla_browser_options['include_dirs'].append(mozilla_base + "/uriloader")
mozilla_browser_options['include_dirs'].append(mozilla_base + "/webbrwsr")

mozilla_lib_path = mozilla_paths['library_dirs']

mozilla_browser_ext = Extension("democracy.MozillaBrowser",
        [ os.path.join(frontend_implementation_dir,'MozillaBrowser.pyx'),
          os.path.join(frontend_implementation_dir,'MozillaBrowserXPCOM.cc'),
        ],
        runtime_library_dirs=mozilla_lib_path,
        **mozilla_browser_options)

#### Xine Extension ####


Then you can do the sh test.sh in that dir and it will build. If someone wants to modify the ebuild, go for it.
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Fri Apr 28, 2006 2:55 am    Post subject: Reply with quote

Isn't that from the same developers than songbird? It sure looks a lot like it ...
_________________
Ep2.nl | Developers Community
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 607

PostPosted: Fri Apr 28, 2006 3:03 am    Post subject: Reply with quote

Code:

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild  N    ] media-video/democracy-0.8.2  0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/local/xgl-coffee

Do you want me to merge these packages? [Yes/No]
>>> Emerging (1 of 1) media-video/democracy-0.8.2 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
>>> Unpacking source...
>>> Unpacking Democracy-0.8.2-Source.tar.gz to /var/tmp/portage/democracy-0.8.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/democracy-0.8.2 ...

!!! ERROR: media-video/democracy-0.8.2 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  democracy-0.8.2.ebuild, line 30:   Called econf
  ebuild.sh, line 529:   Called die

!!! no configure script found
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
LouisC
n00b
n00b


Joined: 29 Jan 2005
Posts: 47

PostPosted: Fri Apr 28, 2006 3:05 am    Post subject: Reply with quote

He said the build will fail, all the ebuild does is get the dependencies, unpack the tarball, and then fail.
_________________
Kernel 2.6.17-beyond3 AMD64
Back to top
View user's profile Send private message
sanmartin
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2005
Posts: 138
Location: Massachusetts

PostPosted: Fri Apr 28, 2006 3:08 am    Post subject: Reply with quote

I've been working on an ebuild for democracy for a couple weeks now and I've talked with some of the developers. I've got an ebuild started which you can get at http://users.wpi.edu/~viking/democracy-20060427.tar.gz . It has two ebuilds right now, version 9999 pulls svn and 0.8.2 is the latest release.

I don't know if the dependencies in my ebuild are accurate (I could use some help with that!) but this is something to start with. I can't even manage to run the setup.py file on my computer and I'm not sure why, so I haven't been able to check to see if this works.

There are patchs included to grab the mozilla headers out of either gecko-sdk or (theoretically) mozilla suite. Again, untested since I can't so much as start setup.py on my system.

Any input on how to improve this ebuild would be appreciated!
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Apr 28, 2006 3:34 am    Post subject: Reply with quote

sanmartin, I tried your 0.8.2 ebuild but I got a syntax error:
Code:
emerge -pv democracy                                                             
These are the packages that would be merged, in order:

Calculating dependencies  /usr/local/portage/media-video/democracy/democracy-0.8.2.ebuild: line 49: syntax error near unexpected token `}'
/usr/local/portage/media-video/democracy/democracy-0.8.2.ebuild: line 49: `}'

Line 49 is the end of the src_unpack() function. Here is a fix for that function but I am not certain the logic is correct:
Code:
src_unpack() {
   unpack Democracy-${PV}-Source.tar.gz
   cd ${S} || die "cd failed"

   if use gecko-sdk; then
      epatch ${FILESDIR}/gecko-sdk-headers.patch
   elif use mozilla; then
      epatch ${FILESDIR}/mozilla-headers.patch
   fi
}

Right now it does not force the user to pick at least one of mozilla or gecko-skd. Adding the following line to RDEPEND might help:
Code:
   || ( www-client/mozilla net-libs/gecko-sdk  )

But it still does not force the user to pick one of the use flags.

I also wonder about the line:
Code:
S="${WORKDIR}/Democracy-Player-0.8.2/platform/gtk-x11"

I *think* you may be better off leaving this line commented out so the source is installed in the default location and then do a cd or something in one of the functions.
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Fri Apr 28, 2006 3:42 am    Post subject: Reply with quote

I was looking at it just now. I didn't get any farther than libbost-python-dev, or whatever. It doesn't look like that is in portage (although maybe I'm wrong).

I may try building the whole thing from source tomorrow... we'll see.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
sanmartin
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2005
Posts: 138
Location: Massachusetts

PostPosted: Fri Apr 28, 2006 4:19 am    Post subject: Reply with quote

BitJam wrote:
sanmartin, I tried your 0.8.2 ebuild but I got a syntax error:
Code:
emerge -pv democracy                                                             
These are the packages that would be merged, in order:

Calculating dependencies  /usr/local/portage/media-video/democracy/democracy-0.8.2.ebuild: line 49: syntax error near unexpected token `}'
/usr/local/portage/media-video/democracy/democracy-0.8.2.ebuild: line 49: `}'

Line 49 is the end of the src_unpack() function. Here is a fix for that function but I am not certain the logic is correct:
Code:
src_unpack() {
   unpack Democracy-${PV}-Source.tar.gz
   cd ${S} || die "cd failed"

   if use gecko-sdk; then
      epatch ${FILESDIR}/gecko-sdk-headers.patch
   elif use mozilla; then
      epatch ${FILESDIR}/mozilla-headers.patch
   fi
}


Right now it does not force the user to pick at least one of mozilla or gecko-skd. Adding the following line to RDEPEND might help:
Code:
   || ( www-client/mozilla net-libs/gecko-sdk  )

But it still does not force the user to pick one of the use flags.

Actually I was trying to enforce installation of one or the other with my pkg_setup() function. I was trying to get it to error if you selected either none or both. The reason I need to know at all is that I need to determine which patch to use for setting the mozilla header location. Is there a better way to do this? There must be. Look at what the patch does and tell me if there's some what around that. That patch reflects what was mentioned on the democracy-devel mailing list.

So the } problem... it's because of the elif I think. I'm going to take your suggestion and do either of mozilla or gecko-sdk, then just check to see which is installed. I'll remove the USE flags, they're a bad idea. One question though: if you don't have either installed already, which one will Portage try to install to fill the dependency?

BitJam wrote:
I also wonder about the line:
Code:
S="${WORKDIR}/Democracy-Player-0.8.2/platform/gtk-x11"

I *think* you may be better off leaving this line commented out so the source is installed in the default location and then do a cd or something in one of the functions.

You're right, that's a really bad plan on my part. I've changed that. I'll upload a new one soon.
Back to top
View user's profile Send private message
Rukie
l33t
l33t


Joined: 26 Jan 2004
Posts: 692
Location: SE Wi, Home of cheese and cowtippers.......

PostPosted: Fri Apr 28, 2006 5:56 am    Post subject: Reply with quote

rofl, the windows version installs fine through wine.
_________________
Gentoomania! Support the Open Source!
http://www.rukie.ath.cx
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Apr 28, 2006 8:22 am    Post subject: Reply with quote

The Linux port is pretty brain-dead ATM. Their tarball is not consistently named, nor is their directory structure. The Linux tarball contains all of the OSX and Windows stuff as well as the common stuff and the Linux specific stuff.

Worse, in order to get their test.sh program to run, an extra directory level must be inserted into the directory structures of the tarball. You need to insert /tv/ between the top level directory and /platform/. I kid you not, here is a quote from their "instructions":
Quote:
Note! The name of the top level directory *MUST* be "tv", or it will fail to find the root directory


This is just stupid for no good reason IMO. If they are going to require a "tv" directory, they should have just included it in the tarball. The whole idea of placing requirements on the directory structure external to the tarball is really stupid. It indicates to me that these people don't know what they are doing on Linux.

My guess is that instead of starting with a unified system that works on Windows, Linux, and OSX from the start. They started working on Windows (or OSX) and then ported things over to the other OSes. Not smart. Worse, it seems that the people who "ported" it to Linux didn't know much about Linux.

This explains why installing the Windows code via Wine is easier than trying to use their port to Linux. I think "Democracy TV" is a great idea but it looks to me like there Linux port is currently a total mess.

After creating a "tv" directory and copying everything into it, I was able to get test.sh to start to run but it finally failed when it couldn't find mozilla-config. I'm really not interested in persuing this further because it appears to be poorly designed.
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Fri Apr 28, 2006 8:38 am    Post subject: Reply with quote

i download the .tgz and my first word about that is WTF :?

the source code it's anormal , or are not in order :?


the readme of the package is really BAD

i tried to install with wine :)
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Fri Apr 28, 2006 8:43 am    Post subject: Reply with quote

with wine not work (0.9.12)

Code:
Registering 'moz.pyloader.1' (pyloader.dll)
Registering '@participatoryculture.org/dtv/pybridge;1' (pybridge.py)
Error loading perferences. Resetting prefs.
Registering '@participatoryculture.org/dtv/mycontentpolicy;1' (mycontentpolicy.py)
Registering '@mozilla.org/network/protocol;1?name=dispatch' (dispatchhandler.py)
Registering '@mozilla.org/network/protocol;1?name=template' (dispatchhandler.py)
Registering '@mozilla.org/network/protocol;1?name=action' (dispatchhandler.py)
Error loading perferences. Resetting prefs.
err:rpc:RPCRT4_OpenConnection protseq mswmsg not supported
err:rpc:RPCRT4_OpenConnection protseq mswmsg not supported
err:rpc:RPCRT4_OpenConnection protseq mswmsg not supported
onStartup



and nothing more.. :?
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Fri Apr 28, 2006 8:57 pm    Post subject: Reply with quote

So, after installing pyxine from source, and gecko-sdk (as well as all the other junk), I managed to get this running on my box. I didn't end up patching anything, but rather using some environment variables. Here was the commandline that worked for me:

Code:
CPATH=/usr/lib/gecko-sdk/include/ LDPATH=/usr/lib/gecko-sdk/lib/ ./test.sh


It seems to have launced successfully. I haven't really tried it out yet. Everything else seemed to work out of Gentoo, although I had to turn on some USE flags to make sure the right support was compiled in. I was worried I'd have to install a gazillion things from source.

EDIT: in case it isn't clear, I didn't use the ebuild.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
sangoule
n00b
n00b


Joined: 03 Dec 2004
Posts: 11
Location: sacramentos, the freshmaker

PostPosted: Sat Apr 29, 2006 12:09 am    Post subject: Reply with quote

i grabbed the source from ftp://ftp.osuosl.org/pub/pculture.org/democracy/linux/src/Democracy-0.8.2-Linux.tar.gz
unpacked, cded to Democracy-0.8.2-Linux/tv/platform/gtk-x11
and ran it with:
Code:
CPATH=/usr/share/gecko-sdk/include/ LDPATH=/usr/share/gecko-sdk/lib/ ./test.sh

works fine, so far...
Back to top
View user's profile Send private message
elpargo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2004
Posts: 81

PostPosted: Sat Apr 29, 2006 7:25 am    Post subject: Reply with quote

NOTE use this at your own risk.

I got their team to fix the tarball it should sux less now.
This is NOT ready but it seems to work check for screen/comments

https://bugs.gentoo.org/show_bug.cgi?id=131527

I'm missing some deps for which I'll probably need to make some ebuild since they don't seem in portage.

This is my current list of things, getting the democracy team to sort them out with me

    libboost-python-dev is this http://www.boost.org/libs/python/doc/index.html
    mozilla-dev is this gecko-sdk?
    mozilla-psm no idea what this is.
    python2.4-glade2 I believe this is not wxglade, it's the bindings for python to glade, but I can't find it.

    Please give me links to the original source no packages, or any distro-specific thing, I may have to make some packages for those since I can't find them.

    Stuff to check
    python2.4 duh python
    python2.4-pyrex = dev-python/pyrex-0.9.3
    python2.4-gtk2 = dev-python/pygtk-2.0
    python-gtk2-dev pull by pygtk

    libxine-dev = media-libs/xine-lib-1.1.1*

    python2.4-gnome2 = pull by extras
    python2.4-gnome2-extras = dev-python/gnome-python-extras

    I think I don't need this
    python-gnome2-extras-dev


you need to get this python module mozilla-xpcom which I haven't figure out. (I had it so it work for me)

Code:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit distutils

MY_P="Democracy-${PV}-Linux"
DESCRIPTION="Democracy is a free and open internet TV platform."
HOMEPAGE="http://www.getdemocracy.com"
SRC_URI="ftp://ftp.osuosl.org/pub/pculture.org/democracy/linux/src/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
#IUSE="gecko-sdk mozilla"

DEPEND=">=dev-python/pyrex-0.9.3
       =media-libs/xine-lib-1.1.1*
       >=dev-libs/boost-1.33.1
       >=dev-python/pygtk-2.0
       net-libs/gecko-sdk"      
       #>=x11-libs/gtk+-2.0
       #>=libfame-0.9.0
       #dev-util/pkgconfig
RDEPEND="${DEPEND}
       >=dev-util/intltool-0.29
       dev-python/gnome-python-extras
       >=dev-lang/python-2.4"
      


DOCS="AUTHORS ChangeLog HACKING NEWS README TODO"

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

src_unpack() {
   unpack ${A}
   cd ${S}
   epatch ${FILESDIR}/gecko-sdk-headers.patch
   
}

src_compile(){
   #cd ${S}/tv/platform/gtk-x11/
   distutils_src_compile
}

src_install(){
   distutils_src_install
}



I found this error a while ago, made a comment on the mailing list, then someone email me this patch


!!!this was provided by someone from the mailing list (demo-tv)!!!
Code:

--- setup.py.old   2006-04-19 20:32:04.000000000 -0400
+++ setup.py   2006-04-19 20:37:11.000000000 -0400
@@ -158,6 +158,9 @@
 #### MozillaBrowser Extension ####
 mozilla_browser_options = parsePkgConfig("pkg-config" ,
         "gtk+-2.0 glib-2.0 pygtk-2.0 mozilla-gtkmozembed mozilla-xpcom")
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/webbrwsr/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/dom/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/uriloader/')
 mozilla_lib_path = parsePkgConfig('pkg-config', 'mozilla-gtkmozembed')['library_dirs']
 mozilla_browser_ext = Extension("democracy.MozillaBrowser",
         [ os.path.join(frontend_implementation_dir,'MozillaBrowser.pyx'),
Back to top
View user's profile Send private message
sanmartin
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2005
Posts: 138
Location: Massachusetts

PostPosted: Sat Apr 29, 2006 7:41 am    Post subject: Reply with quote

elpargo wrote:

I found this error a while ago, made a comment on the mailing list, then someone email me this patch


!!!this was provided by someone from the mailing list (demo-tv)!!!
Code:

--- setup.py.old   2006-04-19 20:32:04.000000000 -0400
+++ setup.py   2006-04-19 20:37:11.000000000 -0400
@@ -158,6 +158,9 @@
 #### MozillaBrowser Extension ####
 mozilla_browser_options = parsePkgConfig("pkg-config" ,
         "gtk+-2.0 glib-2.0 pygtk-2.0 mozilla-gtkmozembed mozilla-xpcom")
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/webbrwsr/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/dom/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/uriloader/')
 mozilla_lib_path = parsePkgConfig('pkg-config', 'mozilla-gtkmozembed')['library_dirs']
 mozilla_browser_ext = Extension("democracy.MozillaBrowser",
         [ os.path.join(frontend_implementation_dir,'MozillaBrowser.pyx'),


That was me btw 8) But someone else actually had the idea, I just made the actual patch for it.
Back to top
View user's profile Send private message
elpargo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2004
Posts: 81

PostPosted: Sat Apr 29, 2006 5:39 pm    Post subject: Reply with quote

sanmartin wrote:
elpargo wrote:

I found this error a while ago, made a comment on the mailing list, then someone email me this patch


!!!this was provided by someone from the mailing list (demo-tv)!!!
Code:

--- setup.py.old   2006-04-19 20:32:04.000000000 -0400
+++ setup.py   2006-04-19 20:37:11.000000000 -0400
@@ -158,6 +158,9 @@
 #### MozillaBrowser Extension ####
 mozilla_browser_options = parsePkgConfig("pkg-config" ,
         "gtk+-2.0 glib-2.0 pygtk-2.0 mozilla-gtkmozembed mozilla-xpcom")
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/webbrwsr/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/dom/')
+mozilla_browser_options['include_dirs'].append('/usr/lib/gecko-sdk/include/uriloader/')
 mozilla_lib_path = parsePkgConfig('pkg-config', 'mozilla-gtkmozembed')['library_dirs']
 mozilla_browser_ext = Extension("democracy.MozillaBrowser",
         [ os.path.join(frontend_implementation_dir,'MozillaBrowser.pyx'),


That was me btw 8) But someone else actually had the idea, I just made the actual patch for it.


yea I know but I had no idea how you where call on the mailing list, by the way the idea was mine :) well at least I track it down.
Back to top
View user's profile Send private message
sanmartin
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2005
Posts: 138
Location: Massachusetts

PostPosted: Sat Apr 29, 2006 10:06 pm    Post subject: Reply with quote

Was it? I wasn't sure who posted that original message. Anyway, do you have any clue about that dependency error I'm getting? Here's the error again:
Code:
Traceback (most recent call last):
  File "setup.py", line 159, in ?
    "gtk+-2.0 glib-2.0 pygtk-2.0 mozilla-gtkmozembed mozilla-xpcom")
  File " setup.py", line 137, in parsePkgConfig
    output = getCommandOutput(commandLine).strip()
  File "setup.py", line 107, in getCommandOutput
    raise RuntimeError("%s outputted the following error:\n%s" %
RuntimeError: pkg-config --cflags --libs gtk+-2.0 glib-2.0 pygtk-2.0
mozilla-gtkmozembed mozilla-xpcom outputted the following error:
Package mozilla-gtkmozembed was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozilla- gtkmozembed.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozilla-gtkmozembed' found
Package mozilla-xpcom was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozilla- xpcom.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozilla-xpcom' found


Sounds like I'm missing one of those dependencies that you're having trouble matching up. Do you have a mozilla- gtkmozembed.pc or mozilla-xpcom.pc in /usr/lib/pkgconfig/, and if so who (what package) owns it?
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
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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