Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
whiteBOX 0.4.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Logik
n00b
n00b


Joined: 15 Aug 2002
Posts: 9
Location: Michigan

PostPosted: Mon Aug 19, 2002 3:46 am    Post subject: whiteBOX 0.4.2 Reply with quote

I seen a request for this application to be made available using an ebuild. I can't get it to work on my system. I have gotten it to compile and merge, but for some reason it doesn't run correctly, probably something with the modules and libtool i think.

in order to get it to compile you need to comment out lines 86-90 in whiteBOX-0.4.2/ltmain.sh, unless you can find another way to do it.

here's my patch "ltmain.sh.patch":
Code:

diff -Nru whiteBOX-0.4.2/ltmain.sh whiteBOX-0.4.2-edit/ltmain.sh
--- whiteBOX-0.4.2/ltmain.sh    Thu Jan 24 03:12:59 2002
+++ whiteBOX-0.4.2-edit/ltmain.sh       Sat Aug 17 06:33:31 2002
@@ -83,11 +83,11 @@
   save_LANG="$LANG"; LANG=C; export LANG
 fi

-if test "$LTCONFIG_VERSION" != "$VERSION"; then
-  echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
-  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
-  exit 1
-fi
+#if test "$LTCONFIG_VERSION" != "$VERSION"; then
+#  echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \ `$VERSION'" 1>&2
+#  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
+#  exit 1
+#fi

 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
   echo "$modename: not configured to build any kind of library" 1>&2


and here's the ebuild I made "whiteBOX-0.4.2.ebuild":

Code:

S=${WORKDIR}/${P}
DESCRIPTION="Configuration editor for blackbox"
#SRC_URI="http://whitebox.sourceforge.net/whiteBOX-0.4.2.tar.gz"
SRC_URI="ftp://ftp.sourceforge.net/pub/sourceforge/whitebox/whiteBOX-0.4.2.tar.gz"
HOMEPAGE="http://whitebox.sourceforge.net"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND=">=x11-libs/gtk+-1.2*
        >=media-libs/gdk-pixbuf-0.18*"

src_unpack() {
        unpack ${P}.tar.gz
        patch -p0 ${S}/ltmain.sh < ${FILESDIR}/ltmain.sh.patch || die "Patch Failed"
}

src_compile() {
        ./configure \
                --prefix=/usr \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man || die "./configure failed"
        emake || die
}

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

        dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS
}


For those that don't know much about ebuilds, here's the run down on how to try it:

mkdir /usr/portage/x11-misc/whiteBOX
mkdir /usr/portage/x11-misc/whiteBOX/files
cp ltmain.sh.patch /usr/portage/x11-misc/whiteBOX/files/
cp whiteBOX-0.4.2.ebuild /usr/portage/x11-misc/whiteBOX/
emerge whiteBOX

if anything is wrong with the ebuild itself, please post the changes here, i'd like to know what's wrong. thanks.
_________________
Kyle
Back to top
View user's profile Send private message
atom
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2002
Posts: 122
Location: Columbus, Ohio, USA

PostPosted: Sun Feb 23, 2003 6:09 am    Post subject: Reply with quote

i get the following

Code:
>>> Unpacking whiteBOX-0.4.2.tar.gz
patching file /var/tmp/portage/whiteBOX-0.4.2/work/whiteBOX-0.4.2/ltmain.sh     patch: **** malformed patch at line 6: fi
                                                                                                                                                                !!! ERROR: x11-misc/whiteBOX-0.4.2 failed.
!!! Function src_unpack, Line 16, Exitcode 2                                    !!! Patch Failed


bad patch? i'm not very familiar with diff and patches. its something in my list of things to learn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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