[csw-devel] SF.net SVN: gar:[5649] csw/mgar/pkg/ruby/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Jul 25 04:31:06 CEST 2009


Revision: 5649
          http://gar.svn.sourceforge.net/gar/?rev=5649&view=rev
Author:   bdwalton
Date:     2009-07-25 02:31:05 +0000 (Sat, 25 Jul 2009)

Log Message:
-----------
install elisp files, add extra package creation bits for rubymode, rubymode_el

Modified Paths:
--------------
    csw/mgar/pkg/ruby/trunk/Makefile

Modified: csw/mgar/pkg/ruby/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby/trunk/Makefile	2009-07-24 23:38:41 UTC (rev 5648)
+++ csw/mgar/pkg/ruby/trunk/Makefile	2009-07-25 02:31:05 UTC (rev 5649)
@@ -10,7 +10,7 @@
 PREREQUISITE_PKGS = CSWbdb3 CSWgdbm CSWgfile CSWiconv CSWncurses CSWossldevel
 PREREQUISITE_PKGS += CSWreadline CSWzlib
 
-PACKAGES = CSWruby CSWrubydoc CSWrubytk CSWrubydev CSWrubymode
+PACKAGES = CSWruby CSWrubydoc CSWrubytk CSWrubydev CSWrubymode CSWrubymode_el
 
 ARCHALL_CSWrubydoc = 1
 ARCHALL_CSWrubymode = 1
@@ -26,8 +26,10 @@
 
 REQUIRED_PKGS_CSWrubydev = CSWruby CSWgcc4core CSWgfile
 
-REQUIRED_PKGS_CSWrubymode = CSWruby CSWemacscommon
+REQUIRED_PKGS_CSWrubymode = CSWemacscommon
 
+REQUIRED_PKGS_CSWrubymode_el = CSWemacscommon
+
 DESCRIPTION = An object-oriented language for quick and easy programming.
 define BLURB
   Ruby is a language for quick and easy programming. Similar in scope to Perl
@@ -47,14 +49,18 @@
 
 SPKG_DESC_CSWrubymode = Ruby major mode for Emacs
 
+SPKG_DESC_CSWrubymode_el = Elisp source for ruby mode
+
 PKGFILES_CSWrubydoc = $(datadir)/ri/.* $(docdir)/ruby/sample.*
 
 PKGFILES_CSWrubytk = $(libdir)/.*/tcl.* $(libdir)/.*/tk.* $(libdir)/.*-tk.rb
 
 PKGFILES_CSWrubydev = $(libdir)/.*\.h $(libdir)/.*/mkmf.rb $(libdir)/.*static.a
 
-PKGFILES_CSWrubymode = $(datadir)/emacs/site-lisp/.*
+PKGFILES_CSWrubymode = $(datadir)/emacs/site-lisp/.*elc$
 
+PKGFILES_CSWrubymode_el = $(datadir)/emacs/site-lisp/.*el$
+
 MASTER_SITES  = ftp://ftp.ruby-lang.org/pub/ruby/
 MASTER_SITES += ftp://www.ibiblio.org/pub/languages/ruby/
 
@@ -104,8 +110,12 @@
 
 rubymode: RMDIR=$(DESTDIR)/$(datadir)/emacs/site-lisp/ruby-mode
 rubymode:
+	@echo " ===> Installing and Compilingn ruby-mode elisp"
 	@(mkdir -p $(RMDIR); \
-		cp $(WORKSRC)/misc/*el $(RMDIR))
+		cp $(WORKSRC)/misc/*el $(RMDIR); \
+		for f in $(RMDIR)/*; do \
+			emacs -L $(RMDIR) -batch -f batch-byte-compile "$$f"; \
+		done)
 
 # Fix up rbconfig
 rbconfig:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list