emacs: split out el files into their own package, make bootstrap its own task, fix...
authorJustin Patrin <papercrane@gmail.com>
Thu, 27 Jul 2006 01:34:27 +0000 (01:34 +0000)
committerJustin Patrin <papercrane@gmail.com>
Thu, 27 Jul 2006 01:34:27 +0000 (01:34 +0000)
packages/emacs/emacs_cvs.bb
packages/emacs/files/use-qemu.patch

index e1ab949..ab4a1fc 100644 (file)
@@ -7,23 +7,26 @@ SECTION = "editor"
 DEPENDS = "libx11"
 # and it needs to run some generated binaries..
 DEPENDS += "qemu-native"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "cvs://anoncvs:anonymous@cvs.savannah.gnu.org/sources/emacs;module=emacs \
            file://use-qemu.patch;patch=1"
-#           http://fabrice.bellard.free.fr/qemu/qemu-gnemul-0.5.3.tar.gz"
 S = "${WORKDIR}/emacs"
 
 inherit autotools
 
-#EXTRA_OECONF = "--without-x"
+PACKAGES = "emacs emacs-el"
+
+FILES_emacs-el = "${datadir}/emacs/22.0.50/*/*.el.gz \
+                  ${datadir}/emacs/22.0.50/*/*/*.el.gz"
 
-#QEMU = "/usr/bin/qemu-arm -L ${WORKDIR}/usr/local/gnemul/qemu-arm -L ${STAGING_DIR}/${TARGET_SYS}"
 QEMU = "qemu-arm -L ${STAGING_DIR}/${TARGET_SYS}"
 
 LDFLAGS += "-L${CROSS_DIR}/${TARGET_SYS}/lib"
 
-do_compile_prepend() {
+do_bootstrap() {
+    cp "${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.1" "${S}"
+    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${S}"
     export QEMU="${QEMU}"
 
     sed -i 's:/usr/lib:${STAGING_LIBDIR}:g' ${S}/src/s/gnu-linux.h
@@ -32,3 +35,11 @@ do_compile_prepend() {
     cd "${S}"
     make bootstrap
 }
+
+addtask bootstrap before do_compile after do_configure
+
+do_compile_prepend() {
+    cp "${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.1" "${S}"
+    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${S}"
+    export QEMU="${QEMU}"
+}
\ No newline at end of file
index b23f1d6..8e4481f 100644 (file)
@@ -6,7 +6,7 @@ diff -Nur emacs~/Makefile.in emacs/Makefile.in
        (cd lisp; $(MAKE) $(MFLAGS) bootstrap-prepare)
        (cd src; $(MAKE) $(MFLAGS) bootstrap)
 -      (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT})
-+      (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS="${QEMU} ../src/bootstrap-emacs${EXEEXT}")
++      (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS="${QEMU} ../src/bootstrap-emacs${EXEEXT})"
        (cd src; $(MAKE) $(MFLAGS) mostlyclean)
        $(MAKE) $(MFLAGS) all
        (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after)
@@ -34,6 +34,18 @@ diff -Nur emacs~/lib-src/Makefile.in emacs/lib-src/Makefile.in
  
  /* We need the following in order to create a <getopt.h> when the system
     doesn't have one that works with the given compiler.  */
+diff -Nur emacs~/lisp/Makefile.in emacs/lisp/Makefile.in
+--- emacs~/lisp/Makefile.in    2006-07-25 09:45:55.000000000 -0700
++++ emacs/lisp/Makefile.in     2006-07-26 14:09:59.000000000 -0700
+@@ -28,7 +28,7 @@
+ # You can specify a different executable on the make command line,
+ # e.g. "make EMACS=../src/emacs ...".
+-EMACS = ../src/emacs
++EMACS = ${QEMU} ../src/emacs
+ # Command line flags for Emacs.  This must include --multibyte,
+ # otherwise some files will not compile.
 diff -Nur emacs~/src/Makefile.in emacs/src/Makefile.in
 --- emacs~/src/Makefile.in     2006-07-25 09:46:16.000000000 -0700
 +++ emacs/src/Makefile.in      2006-07-26 07:37:44.000000000 -0700