Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793 - New Ebuild: Xdialog
Summary: New Ebuild: Xdialog
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
: 8585 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-21 01:03 UTC by Seemant Kulleen
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
Xdialog ebuild file (xdialog-2.0.5.ebuild,1.04 KB, application/octet-stream)
2002-02-21 01:04 UTC, Seemant Kulleen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seemant Kulleen 2002-02-21 01:03:49 UTC
Hello again to my Gentoo friends,

Here is an ebuild for xdialog, which is designed as a drop-in replacement for
cdialog.  It puts dialog based things in a nice GTK interface, and uses trees in
the directory display, making it visually more appealing than dialog in a term.

Thing is, the project homepage seems to be down (I have e-mailed the author
about that), so currently the SOURCE_URI points to Debian's repository for its
unstable branch.  Also, it is my feeling that most packages in Gentoo are
lowercased.  That's why I named this xdialog instead of Xdialog.  And that's why
I set a P= in the ebuild itself.  If I am wrong about that, then this package
really should be named Xdialog instead, and the P= can be removed. When I hear
from the author I will make a note in this bug report.

Thanks again,

Seemant
Comment 1 Seemant Kulleen 2002-02-21 01:04:41 UTC
Created attachment 221 [details]
Xdialog  ebuild file
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-21 14:02:58 UTC
just set S as follows:
S=${WORKDIR}/Xdialog-${PV}
Then remove the P definition which shouldn't be there.  Resubmit this and I'll
forward it to someone.
Comment 3 Seemant Kulleen 2002-02-21 16:06:02 UTC
Hello Again,

As per Dr. Robbins' instruction, I have adjusted the ebuild file to remove P=
and change the S=.  Note to Dr. Robbins: thank you for having me do that myself,
because now that is in my head.  I have run across that issue several times, and
I finally realised how to fix it.  I appreciate you letting me learn :)

Thanks,

Seemant

---- cut here


# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Seemant Kulleen <seemant@rocketmail.com>
# $Header$

S=${WORKDIR}/Xdialog-${PV}
DESCRIPTION="A drop-in replacement for cdialog.  Uses GTK for GUI dialog"
SRC_URI="http://ftp.debian.org/debian/pool/main/x/xdialog/xdialog_2.0.5.orig.tar.gz"
HOMEPAGE="http://xdialog.free.fr/"

DEPEND="virtual/x11
    virtual/glibc
    >=x11-libs/gtk+-1.2.10-r4
    >=dev-libs/glib-1.2.10
    nls? ( >=sys-devel/gettext-0.10.38 )"

RDEPEND="$DEPEND"

src_compile() {
    local myconf
    use nls && myconf="$myconf --enable-nls" \
        || myconf="$myconf --disable-nls"

    ./configure \
        --host=${CHOST} \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $myconf || die "./configure failed"

    emake || die
}

src_install () {
    make \
        prefix=${D}/usr \
        mandir=${D}/usr/share/man \
        infodir=${D}/usr/share/info \
        install || die

    dodoc ChangeLog AUTHORS COPYING INSTALL README* TODO ABOUT-NLS
    docinto html
    dodoc doc/*
}
Comment 4 SpanKY gentoo-dev 2002-09-04 09:08:11 UTC
not sure what version this works for but Bug 7447 is for v2.0.6 ...
Comment 5 SpanKY gentoo-dev 2002-09-30 15:50:17 UTC
*** Bug 8585 has been marked as a duplicate of this bug. ***
Comment 6 Kurt Hindenburg 2002-10-01 03:05:55 UTC
Well dang it; I did a resync before submitting my ebuild for Xdialog.  This
guy's ebuild still doesn't show up.
The ebuild can be cleaned up a bit.  The compile and install routines are
simple, although he does check for nls which is good.

src_compile() {
   econf  || die "configure fail"
   emake || die
}

src_install () {
   make DESTDIR=${D} install || die
}
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-25 02:10:12 UTC
it's finally in portage, folks.