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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Feb 26 20:13:17 CET 2012


Revision: 17209
          http://gar.svn.sourceforge.net/gar/?rev=17209&view=rev
Author:   bdwalton
Date:     2012-02-26 19:13:17 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
ruby19/trunk: add alternatives info (use lowest priority) to be provided directly by the ruby191 package; add friendly symlinks for use by the ruby19 package

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

Modified: csw/mgar/pkg/ruby19/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby19/trunk/Makefile	2012-02-26 12:29:43 UTC (rev 17208)
+++ csw/mgar/pkg/ruby19/trunk/Makefile	2012-02-26 19:13:17 UTC (rev 17209)
@@ -39,6 +39,7 @@
 
 PACKAGES  =  CSWruby191 CSWruby191-samples CSWruby191-ri
 PACKAGES += CSWruby191-dev CSWlibruby1-9-1-1
+PACKAGES += CSWruby19
 
 SPKG_DESC_CSWruby191 = $(DESCRIPTION)
 RUNTIME_DEP_PKGS_CSWruby191 += CSWlibruby1-9-1-1
@@ -68,6 +69,8 @@
 # comments
 CHECKPKG_OVERRIDES_CSWlibruby1-9-1-1 += file-with-bad-content|/usr/local|root/opt/csw/lib/ruby/1.9.1/pathname.rb
 
+SPKG_DESC_CSWruby19 = A meta package for ruby 1.9 to pull Ruby $(VERSION) (api: $(API_VERSION)
+
 ARCHALL_CSWruby191-samples = 1
 SPKG_DESC_CSWruby191-samples = Example programs for Ruby $(VERSION)
 PKGFILES_CSWruby191-samples = $(docdir)/$(NAME)/sample.*
@@ -93,6 +96,9 @@
 RUNTIME_DEP_PKGS_CSWruby191-dev = CSWlibruby1-9-1-1
 CHECKPKG_OVERRIDES_CSWruby191-dev += file-with-bad-content|/usr/local|root/opt/csw/lib/libruby1.9.1-static.a
 
+ALTERNATIVES_CSWruby191 = ruby
+ALTERNATIVE_ruby = $(bindir)/ruby ruby $(bindir)/ruby$(API_SHORT) 1 $(bindir)/irb irb $(bindir)/irb$(API_SHORT) $(bindir)/erb erb $(bindir)/erb$(API_SORT) $(bindir)/rdoc rdoc $(bindir)/rdoc$(API_SHORT) $(bindir)/ri ri $(bindir)/ri$(API_SHORT) $(bindir)/testrb testrb $(bindir)/testrb$(API_SHORT) $(mandir)/man1/ruby.1 ruby.1 $(mandir)/man1/ruby$(API_SHORT).1
+
 MASTER_SITES = ftp://ftp.ruby-lang.org/pub/ruby/1.9/
 DISTFILES  = $(DISTNAME).tar.gz
 
@@ -146,7 +152,7 @@
 COMPILE_ELISP = 1
 
 PI_TARGETS = samples rbconfig
-PM_TARGETS = pathfixes
+PM_TARGETS = pathfixes ruby19links
 
 post-install-modulated: $(PI_TARGETS)
 	@$(MAKECOOKIE)
@@ -189,3 +195,16 @@
 	@echo " ==> Fixing paths in manpages"
 	@( cd $(PKGROOT)$(mandir)/man1; perl -pi -e 's!usr/local/bin/ruby!opt/csw/bin/ruby191!g' ruby191.1 )
 	@$(MAKECOOKIE)
+
+# Provide a few symlinks for the ruby19 metapackage
+ruby19links:
+	@echo " ==> Installing symlinks from foo19 -> foo191"
+	@( cd $(PKGROOT)/$(bindir); \
+		ln -s erb191 erb19; \
+		ln -s gem191 gem19; \
+		ln -s irb191 irb19; \
+		ln -s rake191 rake19; \
+		ln -s rdoc191 rdoc19; \
+		ln -s ruby191 ruby19; \
+		ln -s testrb191 testrb19 )
+	@$(MAKECOOKIE)

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