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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jul 16 02:30:56 CEST 2009


Revision: 5585
          http://gar.svn.sourceforge.net/gar/?rev=5585&view=rev
Author:   bdwalton
Date:     2009-07-16 00:30:56 +0000 (Thu, 16 Jul 2009)

Log Message:
-----------
* Install the ruby-mode elisp files
* Create new CSWrubymode package to house the newly installed elisp
* Update how SPKG_REVSTAMP is modified to be more conformant.

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

Modified: csw/mgar/pkg/ruby/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby/trunk/Makefile	2009-07-15 19:56:44 UTC (rev 5584)
+++ csw/mgar/pkg/ruby/trunk/Makefile	2009-07-16 00:30:56 UTC (rev 5585)
@@ -10,7 +10,7 @@
 PREREQUISITE_PKGS = CSWbdb3 CSWgdbm CSWgfile CSWiconv CSWncurses CSWossldevel
 PREREQUISITE_PKGS += CSWreadline CSWzlib
 
-PACKAGES = CSWruby CSWrubydoc CSWrubytk CSWrubydev
+PACKAGES = CSWruby CSWrubydoc CSWrubytk CSWrubydev CSWrubymode
 
 ARCHALL_CSWrubydoc = 1
 
@@ -25,6 +25,8 @@
 
 REQUIRED_PKGS_CSWrubydev = CSWruby CSWgcc4core CSWgfile
 
+REQUIRED_PKGS_CSWrubymode = CSWruby 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
@@ -42,12 +44,16 @@
 
 SPKG_DESC_CSWrubydev = Ruby Extension Development Files
 
+SPKG_DESC_CSWrubymode = Ruby major mode for Emacs
+
 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/.*
+
 MASTER_SITES  = ftp://ftp.ruby-lang.org/pub/ruby/
 MASTER_SITES += ftp://www.ibiblio.org/pub/languages/ruby/
 
@@ -88,13 +94,18 @@
 
 include gar/category.mk
 
-SPKG_REVSTAMP := $(SPKG_REVSTAMP)_$(PATCHLEVEL)
+SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(PATCHLEVEL)
 
-PI_TARGETS  = samples rbconfig rbscripts
+PI_TARGETS  = samples rbconfig rbscripts rubymode
 
 post-install-modulated: $(PI_TARGETS)
 	@$(MAKECOOKIE)
 
+rubymode: RMDIR=$(DESTDIR)/$(datadir)/emacs/site-lisp/ruby-mode
+rubymode:
+	@(mkdir -p $(RMDIR); \
+		cp $(WORKSRC)/misc/*el $(RMDIR))
+
 # Fix up rbconfig
 rbconfig:
 	@gsed -i -e s,$(DESTDIR),, \


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