I created a new one.
Created attachment 17729 [details] The new ebuild for .1
*** Bug 28531 has been marked as a duplicate of this bug. ***
Hi, It would be really really sweet if you could edit your Ebuild for GTK2 support. The ebuild should look at the USE Flag in /etc/make.conf or if gnome 2 is installed. If there is something like USE="gtk2" then the ebuild should compile gnutella with gtk2 support. If there is no gtk2 Use Flag in make.conf then gnutella should be build with gtk1 support. GTK2 is stable so i think support for it would be good. greetings Henrik
The ebuild doesn't work for me: root@cube:/usr/local/portage/net-p2p/gtk-gnutella# ebuild gtk-gnutella-0.92.1.ebuild merge >>> md5 src_uri ;-) gtk-gnutella-0.92.1.tar.bz2 >>> Unpacking source... >>> Unpacking gtk-gnutella-0.92.1.tar.bz2 to /var/tmp/portage/gtk-gnutella-0.92.1/work >>> Source unpacked. !!! ERROR: net-p2p/gtk-gnutella-0.92.1 failed. !!! Function econf, Line 326, Exitcode 1 !!! no configure script found root@cube:/usr/local/portage/net-p2p/gtk-gnutella#
Your ebuild doesn't work because gtk-gnutella no longer uses autoconf/automake, they've switched to metaconfig. I'm working on an ebuild for it now. I've worked everything out, and it should theoretically work. However, I am recieving the following error on compile: make[2]: Entering directory `/var/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/src' cc -c -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -O interface-glade2.c In file included from common.h:27, from gnet.h:27, from gui.h:29, from callbacks.h:29, from interface-glade2.c:18: ../config.h:43:18: missing terminating " character ../config.h:44:19: missing terminating " character make[2]: *** [interface-glade2.o] Error 1 Using gcc (GCC) 3.3.1 20030916 (Gentoo Linux 3.3.1-r4, propolice) I will accost the folks on the gtk-gnutella mailing lists about this. I must go to class now, I will work on this more later.
Created attachment 19244 [details] gtk-gnutella-0.92.1.ebuild This one works. Now with GTK2 and NLS support! Needs the patch attached next.
Created attachment 19245 [details, diff] gtk-gnutella-0.92.1-gcc3.3.patch This patch will not be necessary in the next release.
Created attachment 19248 [details] gtk-gnutella-0.92.1.ebuild Revised. libxml2 is an optional dependency of gtk-gnutella. The ebuild now reflects this.
Does not work for me yet. Probably needs to depend on a newer version gettext. [...] make[2]: Leaving directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/src' Making all in pixmaps... make[2]: Entering directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/pixmaps' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/pixmaps' Making all in po... make[2]: Entering directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/po' make gtk-gnutella.pot-update make[3]: Entering directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/po' sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed mv t-remove-potcdate.sed remove-potcdate.sed /usr/bin/xgettext --default-domain=gtk-gnutella --directory=.. \ --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --from-code=UTF-8 \ --files-from=./POTFILES.in \ --copyright-holder='Raphael Manfredi' \ --msgid-bugs-address='gtk-gnutella-devel@lists.sf.net' /usr/bin/xgettext: unrecognized option `--from-code=UTF-8' Try `/usr/bin/xgettext --help' for more information. make[3]: *** [gtk-gnutella.pot-update] Error 1 make[3]: Leaving directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/po' make[2]: *** [gtk-gnutella.pot] Error 2 make[2]: Leaving directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1/po' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/tmp/portage/gtk-gnutella-0.92.1/work/gtk-gnutella-0.92.1' make: *** [all] Error 2 !!! ERROR: net-p2p/gtk-gnutella-0.92.1 failed. !!! Function src_compile, Line 43, Exitcode 2 !!! Compilation failed
Using the (currently masked for everything but ia64) gettext-0.12.1, I can compile and use gtk-gnutella-0.92.1. What are the chances of getting gettext-0.12.1 into testing (i.e. ~x86 etc.)?
Yeah, I never downgraded to 0.11.5, which is why it worked for me. 0.12.1 was a ~x86, but they masked it because it causes problems during bootstrap. I'll just disable nls support. We did without it before.
Created attachment 19682 [details] gtk-gnutella-0.92.1.ebuild Disabled NLS support, some cleanups, and added some warnings.
superceeded by newer version