--- /usr/portage/dev-scheme/scm/scm-5.5.5-r1.ebuild 2009-02-03 14:34:28.000000000 -0200 +++ /usr/local/portage/dev-scheme/scm/scm-5.5.5-r1.ebuild 2009-09-15 02:10:38.000000000 -0300 @@ -17,7 +17,12 @@ SLOT="0" LICENSE="LGPL-3" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="array array-for-each arrays bignums byte byte-number +careful-interrupt-masking cheap-continuations compiled-closure curses +debug differ dont-memoize-locals dump +engineering-notation generalized-c-arguments i/o-extensions inexact lit macro +no-heap-shrink none posix record regex rev2-procedures sicp +single-precision-only socket tick-interrupts turtlegr unix X xlib" #unzip for unpacking RDEPEND="" @@ -36,14 +41,68 @@ } src_compile() { + echo "srcdir=/usr/share/scm/" > srcdir.mk einfo "Making scmlit" #parallel make fails sometimes emake -j1 scmlit || die einfo "Creating script to build scm" - echo "srcdir=/usr/share/scm/" > srcdir.mk - ./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die + + # Some features give errors, here's a detailed list: + # mysql --> ERROR: database.c not found + # dynamic-linking --> It hasn't been implemented yet + # caution --> Causes errors + # edit-line --> Dependency problem with ltermcap + # reckless --> repl.c and eval.c doesn't build with this feature + # wb --> It gives these errors: + # gcc: db.o: No such file or directory + # gcc: wbsys.o: No such file or directory + # gcc: stats.o: No such file or directory + # gcc: segs.o: No such file or directory + # gcc: scan.o: No such file or directory + # gcc: prev.o: No such file or directory + # gcc: handle.o: No such file or directory + # gcc: ents.o: No such file or directory + # gcc: del.o: No such file or directory + # gcc: blkio.o: No such file or directory + # gcc: blink.o: No such file or directory + + ./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" \ + $(use array && echo "-F array") \ + $(use array-for-each && echo "-F array-for-each") \ + $(use arrays && echo "-F arrays") \ + $(use bignums && echo "-F bignums") \ + $(use byte && echo "-F byte") \ + $(use byte-number && echo "-F byte-number") \ + $(use careful-interrupt-masking && echo "-F careful-interrupt-masking") \ + $(use cheap-continuations && echo "-F cheap-continuations") \ + $(use compiled-closure && echo "-F compiled-closure") \ + $(use curses && echo "-F curses") \ + $(use debug && echo "-F debug") \ + $(use differ && echo "-F differ") \ + $(use dont-memoize-locals && echo "-F dont-memoize-locals") \ + $(use dump && echo "-F dump") \ + $(use engineering-notation && echo "-F engineering-notation") \ + $(use generalized-c-arguments && echo "-F generalized-c-arguments") \ + $(use i/o-extensions && echo "-F i/o-extensions") \ + $(use inexact && echo "-F inexact") \ + $(use lit && echo "-F lit") \ + $(use macro && echo "-F macro") \ + $(use no-heap-shrink && echo "-F no-heap-shrink") \ + $(use none && echo "-F none") \ + $(use posix && echo "-F posix") \ + $(use record && echo "-F record") \ + $(use regex && echo "-F regex") \ + $(use rev2-procedures && echo "-F rev2-procedures") \ + $(use sicp && echo "-F sicp") \ + $(use single-precision-only && echo "-F single-precision-only") \ + $(use socket && echo "-F socket") \ + $(use tick-interrupts && echo "-F tick-interrupts") \ + $(use turtlegr && echo "-F turtlegr") \ + $(use unix && echo "-F unix") \ + $(use X && echo "-F x") \ + $(use xlib && echo "-F xlib") &> _compile.sh || die "Error creating build script" einfo "Building scm" - sh _compile.sh || die + sh _compile.sh || die "Error building" } src_install() {