View previous topic :: View next topic |
Author |
Message |
Logik n00b
Joined: 15 Aug 2002 Posts: 9 Location: Michigan
|
Posted: Mon Aug 19, 2002 3:46 am Post subject: whiteBOX 0.4.2 |
|
|
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 |
|
|
atom Tux's lil' helper
Joined: 25 Nov 2002 Posts: 122 Location: Columbus, Ohio, USA
|
Posted: Sun Feb 23, 2003 6:09 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|