Ironheart
11.02.03, 16:51
Hi
Hab einen Ebuild für LyX 3.0 erstellt:
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-office/lyx/lyx-1.3.0.ebuild,v 1.2 2003/01/13 19:39:04 danarmak Exp $
# Maintainer: Unknown, modified by elias probst <elias.probst@t-online.de>
DESCRIPTION="LyX is an WYSIWYM frontend for LaTeX"
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/${P}.tar.gz"
HOMEPAGE="http://www.lyx.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
IUSE="nls cups qt"
DEPEND="virtual/x11
=x11-libs/xforms-1*
app-text/tetex
>=sys-devel/perl-5
nls? ( sys-devel/gettext )
app-text/aiksaurus
qt? ( >=x11-libs/qt-3.1.1* )
>=media-libs/xpm-3.4k-r1"
RDEPEND="${DEPEND}
app-text/ghostscript
app-text/xpdf
app-text/aspell
app-text/gv
app-text/latex2html
media-gfx/imagemagick
cups? ( virtual/lpr )
app-text/rcs
dev-util/cvs
app-text/sgmltools-lite
app-text/noweb
app-text/chktex"
src_compile() {
use qt || myconf="${myconf} --with-qt-dir='$(prefix)/qt/3' \
--with-qt-includes='$(prefix)/qt/3/include' \
--with-qt-libraries='$(prefix)/qt/3/lib'"
use nls || myconf="${myconf} --disable-nls"
[ -n "$DEBUG" ] && myconf="$myconf --enable-debug" || myconf="$myconf --disable-debug"
# -O3 and higher breaks
export CXXFLAGS="${CXXFLAGS//-O[3..9]/-O2}"
export CFLAGS="${CFLAGS//-O[3..9]/-O2}"
export WANT_AUTOCONF_2_5=1
#./autogen.sh
econf ${myconf}
#--infodir='$(prefix)/share/info' \
#--with-extra-inc=/usr/X11R6/include \
#--mandir='$(prefix)/share/man' \
#emake || die "emake failed"
make || die "make failed"
}
src_install() {
# The 'install-strip' target is provided by the LyX makefile
# for stripping installed binaries. Use prefix= instead of
# DESTDIR=, otherwise it violates the sandbox in the po directory.
einstall
dodoc README* UPGRADING INSTALL* ChangeLog NEW COPYING ANNOUNCE ABOUT-NLS
}
Doch beim kompilieren bricht immer mit folgender Meldung ab:
....
make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/boost'
Making all in src
make[1]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make all-recursive
make[2]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
Making all in mathed
make[3]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src/mathed'
source='dimension.C' object='dimension.lo' libtool=yes \
depfile='.deps/dimension.Plo' tmpdepfile='.deps/dimension.TPlo' \
depmode=gcc3 /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -O2 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -ffast-math -c -o dimension.lo `test -f 'dimension.C' || echo './'`dimension.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -O2 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -ffast-math -c dimension.C -MT dimension.lo -MD -MP -MF .deps/dimension.TPlo
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/cstring:51,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/bits/char_traits.h:45,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/string:47,
from ../../src/LString.h:23,
from math_support.h:10,
from dimension.C:17:
/usr/include/string.h:243: declaration of `char* strerror(int) throw ()' throws
different exceptions
../../src/config.h:428: than previous declaration `char* strerror(int)'
make[3]: *** [dimension.lo] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src/mathed'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make: *** [all-recursive] Fehler 1
!!! ERROR: app-office/lyx-1.3.0 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! make failed
root@elias elias #
Bin leider absoluter Nixblicker in Sachen Programmieren, sonst würd ich das probieren selbst zu fixen...
Jemand ne Idee ??
Vielen Dank!!
Gruß
Elias P.
Hab einen Ebuild für LyX 3.0 erstellt:
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-office/lyx/lyx-1.3.0.ebuild,v 1.2 2003/01/13 19:39:04 danarmak Exp $
# Maintainer: Unknown, modified by elias probst <elias.probst@t-online.de>
DESCRIPTION="LyX is an WYSIWYM frontend for LaTeX"
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/${P}.tar.gz"
HOMEPAGE="http://www.lyx.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
IUSE="nls cups qt"
DEPEND="virtual/x11
=x11-libs/xforms-1*
app-text/tetex
>=sys-devel/perl-5
nls? ( sys-devel/gettext )
app-text/aiksaurus
qt? ( >=x11-libs/qt-3.1.1* )
>=media-libs/xpm-3.4k-r1"
RDEPEND="${DEPEND}
app-text/ghostscript
app-text/xpdf
app-text/aspell
app-text/gv
app-text/latex2html
media-gfx/imagemagick
cups? ( virtual/lpr )
app-text/rcs
dev-util/cvs
app-text/sgmltools-lite
app-text/noweb
app-text/chktex"
src_compile() {
use qt || myconf="${myconf} --with-qt-dir='$(prefix)/qt/3' \
--with-qt-includes='$(prefix)/qt/3/include' \
--with-qt-libraries='$(prefix)/qt/3/lib'"
use nls || myconf="${myconf} --disable-nls"
[ -n "$DEBUG" ] && myconf="$myconf --enable-debug" || myconf="$myconf --disable-debug"
# -O3 and higher breaks
export CXXFLAGS="${CXXFLAGS//-O[3..9]/-O2}"
export CFLAGS="${CFLAGS//-O[3..9]/-O2}"
export WANT_AUTOCONF_2_5=1
#./autogen.sh
econf ${myconf}
#--infodir='$(prefix)/share/info' \
#--with-extra-inc=/usr/X11R6/include \
#--mandir='$(prefix)/share/man' \
#emake || die "emake failed"
make || die "make failed"
}
src_install() {
# The 'install-strip' target is provided by the LyX makefile
# for stripping installed binaries. Use prefix= instead of
# DESTDIR=, otherwise it violates the sandbox in the po directory.
einstall
dodoc README* UPGRADING INSTALL* ChangeLog NEW COPYING ANNOUNCE ABOUT-NLS
}
Doch beim kompilieren bricht immer mit folgender Meldung ab:
....
make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/boost'
Making all in src
make[1]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make all-recursive
make[2]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
Making all in mathed
make[3]: Entering directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src/mathed'
source='dimension.C' object='dimension.lo' libtool=yes \
depfile='.deps/dimension.Plo' tmpdepfile='.deps/dimension.TPlo' \
depmode=gcc3 /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -O2 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -ffast-math -c -o dimension.lo `test -f 'dimension.C' || echo './'`dimension.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -O2 -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -ffast-math -c dimension.C -MT dimension.lo -MD -MP -MF .deps/dimension.TPlo
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/cstring:51,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/bits/char_traits.h:45,
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/string:47,
from ../../src/LString.h:23,
from math_support.h:10,
from dimension.C:17:
/usr/include/string.h:243: declaration of `char* strerror(int) throw ()' throws
different exceptions
../../src/config.h:428: than previous declaration `char* strerror(int)'
make[3]: *** [dimension.lo] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src/mathed'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src'
make: *** [all-recursive] Fehler 1
!!! ERROR: app-office/lyx-1.3.0 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! make failed
root@elias elias #
Bin leider absoluter Nixblicker in Sachen Programmieren, sonst würd ich das probieren selbst zu fixen...
Jemand ne Idee ??
Vielen Dank!!
Gruß
Elias P.