Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1958 - A gui for dctc, the file share program.
Summary: A gui for dctc, the file share program.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-20 18:35 UTC by Jeffry
Modified: 2002-04-28 23:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild (dc_gui-0.53.ebuild,1.43 KB, text/x-ebuild)
2002-04-20 18:36 UTC, Jeffry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffry 2002-04-20 18:35:33 UTC
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
Comment 1 Jeffry 2002-04-20 18:36:37 UTC
Created attachment 618 [details]
the ebuild
Comment 2 Jeffry 2002-04-20 18:44:06 UTC
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
}
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-21 19:24:25 UTC
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
Comment 4 Jeffry 2002-04-22 10:14:04 UTC
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 
} 
 
 
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-22 13:24:41 UTC
I'm having trouble seeing the error in the ebuild i placed in portage. What
exactly is the type-o?

Thanks, Matt
Comment 6 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-22 13:27:50 UTC
never mind, i found it :)

Thanks!
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-22 13:32:55 UTC
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
Comment 8 Jeffry 2002-04-24 10:28:27 UTC
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.. 
Comment 9 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-25 01:28:10 UTC
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
Comment 10 Jeffry 2002-04-25 04:01:21 UTC
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..:>)          
Comment 11 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-25 13:37:11 UTC
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.