Hi.. i think de summary says is all.. although i am thinking about adding a message right afther merge stage.. just warn the users that is should _NOT_ be run by root.. that also counts for the dctc main program
Created attachment 618 [details] the ebuild
sorry :) but i had some lets say 'debug' thing in there :) sorry .. # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Jeffry Molanus <Gila@home.nl> # Maintainer: Matthew Kennedy <mkennedy@gentoo.org> # /space/gentoo/cvsroot/gentoo-x86/net-misc/dctc/dctc-0.79.1.ebuild,v 1.1 S=${WORKDIR}/${P} DESCRIPTION="Direct Connect, almost famous file share program and gui:-)" SRC_URI="http://ac2i.tzo.com/dctc/${P}.tar.gz" HOMEPAGE="http://ac2i.tzo.com/dctc" DEPEND="virtual/glibc =dev-libs/glib-1.2* =sys-libs/db-3.2* >=net-misc/dctc-0.79.1 >=x11-libs/gtk+-1.2.10-r4" src_compile() { ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --host=${CHOST} || die emake || die } src_install() { # do the install part by 'hand', this is because the gnome help files wont be # installed in /usr/share/gnome/help when setting a prefix. Only GTK is # requierd, there for its possible that someone doesn't have the dir at all. mkdir -p ${D}/usr/bin/ cp ${S}/src/dc_gui ${D}/usr/bin/dc_gui dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO if [ -d /usr/share/gnome/help ]; then mkdir -p ${D}/usr/share/gnome/help/dc_gui/C cp ${S}/doc/C/index.html ${D}/usr/share/gnome/help/dc_gui/C cp ${S}/doc/C/topic.dat ${D}/usr/share/gnome/help/dc_gui/C else dodoc doc/C/index.html fi }
added to portage as net-misc/dc-gui. thanks for the contribution ps: in your ebuild, where you install by hand, you should really make use of the USE flags. please test and let me know if there are any problems
fixed the depend.create error...:) you had a small typo.. and i used the USE flags it works fine imho. # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Jeffry Molanus <Gila@home.nl> # Maintainer: Matthew Kennedy <mkennedy@gentoo.org> # /space/gentoo/cvsroot/gentoo-x86/net-misc/dc-gui/dc-gui-0.54.ebuild,v 1.1 2002/04/22 00:22:29 mkennedy Exp S=${WORKDIR}/${P/-/_} DESCRIPTION="GUI for DCTC" SRC_URI="http://ac2i.tzo.com/dctc/${P/-/_}.tar.gz" HOMEPAGE="http://ac2i.tzo.com/dctc" DEPEND="virtual/glibc =dev-libs/glib-1.2* =sys-libs/db-3.2* =x11-libs/gtk+-1.2* >=net-misc/dctc-0.79.1 gnome? ( gnome-base/gnome ) nls? ( sys-devel/gettext )" src_compile() { local myconf if [ -n "use gnome" ] ; then myconf="--with-gnome" fi if [ -n "use nls" ] ; then myconf="${myconf} --enable-nls" fi # use gnome && myconf="--with-gnome" || myconf="--without-gnome" # use nls && myconf="${myconf} --enable-nls" || myconf="${myconf} --disable-nls" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --host=${CHOST} \ ${myconf} || die emake || die } src_install() { make prefix=${D}/usr install || die dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO }
I'm having trouble seeing the error in the ebuild i placed in portage. What exactly is the type-o? Thanks, Matt
never mind, i found it :) Thanks!
Jeffry, Thanks for testing it and finding the error. You should be able to rsync in about 20-40 min and find a corrected dc-gui-0.54.ebuild. Matt
Hi matthew, # use gnome && myconf="--with-gnome" || myconf="--without-gnome" # use nls && myconf="${myconf} --enable-nls" || myconf="${myconf} --disable-nls" these dont work when i add -gnome in the make.conf, however local myconf if [ -n "use gnome" ] ; then myconf="--with-gnome" fi if [ -n "use nls" ] ; then myconf="${myconf} --enable-nls" fi these do.. what happen if we dont fix it .. is that de ebuild will break verry ungly because it cant find gnome.h thats just wat we want.. however the var ${myconf} is not allow to contain --with-gnome.. could you fix it please :? :) cya..
okay... dc_gui doesn't work with --without-gnome. So I am setting --with-gnome for this package. ie. gnome is now a hard dependency. please emerge rsync, emerge dc-gui and test Matt
Why do you want gnome as a hard dep ? its not neccessary. The problem it that the use code you wrote sets --without-gnome, the that doesn't work this does.. if [ -n "use gnome" ] ; then myconf="--with-gnome" fi if [ -n "use nls" ] ; then myconf="${myconf} --enable-nls" fi note, the difference is that i DONT set --with-outgnome. Further more.. the use var gnome was only intended to cp the docs in the /usr/share/gnome dir. it does this with --with-gnome and gnome disabeld as a use var.. but i think thats okay.. btw.. thanks again ;) and pardon the typo's..:>)
I am pretty sure this package only supports gnome atm. Try ./configure --prefix=/tmp ; make ; make install then ./configure --prefix=/tmp --with-gnome ; make ; make install ldd /tmp/bin/dc_gui in both cases. you should see that the binary links to gnome. try also: ./configure --prefix=/tmp --without-gnome ; make and you'll get: main.c:16: gnome.h: No such file or directory In file included from main.c:19: support.h:5: gnome.h: No such file or directory make[2]: *** [main.o] Error 1 You should write to the author of dc_gui and indicate this problem, i think. Also, you suggested: if [ -n "use gnome" ] ; then myconf="--with-gnome" fi if [ -n "use nls" ] ; then myconf="${myconf} --enable-nls" fi That code is actually broken. In both cases the test will be true because you're testing a literal string for non-nullness.