SF.net SVN: gar:[24227] csw/mgar/pkg/ruby20/trunk
tosmi at users.sourceforge.net
tosmi at users.sourceforge.net
Thu Oct 30 22:01:23 CET 2014
Revision: 24227
http://sourceforge.net/p/gar/code/24227
Author: tosmi
Date: 2014-10-30 21:01:23 +0000 (Thu, 30 Oct 2014)
Log Message:
-----------
update ruby20 to p576
this also includes the following changes:
- splitted the package into ruby20, ruby20-ri and ruby20-dev
- user alternatives to allow a parallel installation with older ruby versions
Modified Paths:
--------------
csw/mgar/pkg/ruby20/trunk/Makefile
csw/mgar/pkg/ruby20/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/ruby20/trunk/files/README.ruby20
Modified: csw/mgar/pkg/ruby20/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby20/trunk/Makefile 2014-10-30 20:55:11 UTC (rev 24226)
+++ csw/mgar/pkg/ruby20/trunk/Makefile 2014-10-30 21:01:23 UTC (rev 24227)
@@ -4,11 +4,24 @@
NAME = ruby20
SHORTVER = 2.0
DISTVERSION = $(SHORTVER).0
+PATCHLEVEL = p576
DISTNAME = ruby-$(VERSION)-$(PATCHLEVEL)
VERSION = $(DISTVERSION)
-PATCHLEVEL = p451
GARTYPE = v2
+MASTER_SITES = http://ftp.ruby-lang.org/pub/ruby/$(SHORTVER)/
+DISTFILES = ruby-$(DISTVERSION)-$(PATCHLEVEL).tar.gz
+
+RUNTIME_DEP_PKGS = CSWlibssl1-0-0
+BUILD_DEP_PKGS = CSWlibssl-dev
+
+PACKAGES = CSWruby20 CSWruby20-dev CSWruby20-ri
+
+PKGFILES_CSWruby20-dev = $(includedir)/.*
+PKGFILES_CSWruby20-ri = $(datadir)/ri/.* $(bindir)/ri$(API_SHORT)
+
+ARCHALL_CSWruby20-ri = 1
+
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
@@ -20,10 +33,63 @@
closures.
endef
-MASTER_SITES = ftp://ftp.ruby-lang.org/pub/ruby/$(SHORTVER)/
-DISTFILES = ruby-$(DISTVERSION)-$(PATCHLEVEL).tar.gz
+SPKG_DESC_CSWruby20 = $(DESCRIPTION)
+SPKG_DESC_CSWruby20-dev = Ruby 2.0 Extension Development Files
+SPKG_DESC_CSWruby20-ri = Documentation for Ruby 2.0
-CONFIGURE_ARGS = $(DIRPATHS)
+ALTERNATIVES_CSWruby20 = ruby20
+ALTERNATIVE_ruby20 = $(bindir)/ruby ruby $(bindir)/ruby$(SHORTVER) 20
+ALTERNATIVE_ruby20 += $(bindir)/irb irb $(bindir)/irb$(SHORTVER)
+ALTERNATIVE_ruby20 += $(bindir)/erb erb $(bindir)/erb$(API_SORT)
+ALTERNATIVE_ruby20 += $(bindir)/rdoc rdoc $(bindir)/rdoc$(SHORTVER)
+ALTERNATIVE_ruby20 += $(bindir)/ri ri $(bindir)/ri$(SHORTVER)
+ALTERNATIVE_ruby20 += $(bindir)/testrb testrb $(bindir)/testrb$(SHORTVER)
+ALTERNATIVE_ruby20 += $(bindir)/gem gem $(bindir)/gem$(SHORTVER)
+ALTERNATIVE_ruby20 += $(bindir)/rake rake $(bindir)/rake$(SHORTVER)
+ALTERNATIVE_ruby20 += $(mandir)/man1/ruby.1 ruby.1 $(mandir)/man1/ruby$(SHORTVER).1
+ALTERNATIVE_ruby20 += $(mandir)/man1/erb.1 erb.1 $(mandir)/man1/erb$(SHORTVER).1
+ALTERNATIVE_ruby20 += $(mandir)/man1/irb.1 irb.1 $(mandir)/man1/irb$(SHORTVER).1
+ALTERNATIVE_ruby20 += $(mandir)/man1/rake.1 rake.1 $(mandir)/man1/rake$(SHORTVER).1
+ALTERNATIVE_ruby20 += $(mandir)/man1/ri.1 ri.1 $(mandir)/man1/ri$(SHORTVER).1
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/ruby
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/irb
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/erb
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/rdoc
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/ri
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/testrb
+EXTRA_MERGE_EXCLUDE_FILES += $(bindir)/rake
+EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man1/ruby.1
+EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man1/erb.1
+EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man1/irb.1
+EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man1/rake.1
+EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man1/ri.1
+
+CONFIGURE_ARGS = $(DIRPATHS) --enable-shared
+
+TEST_TARGET = test
+
+POSTMSG = $(docdir)/$(NAME)/README.$(NAME)
+DISTFILES +=$(notdir $(POSTMSG))
+
include gar/category.mk
+install-custom:
+ ginstall -Dm 644 $(FILEDIR)/README.$(NAME) \
+ $(DESTDIR)$(docdir)/$(NAME)/README.$(NAME)
+
+post-install:
+ find $(DESTDIR)$(bindir) -type f -depth -print | xargs -n 1 gsed -i -e '1 s|ruby$$|ruby2.0|g'
+ cd $(DESTDIR)$(bindir) && test -f ruby && mv -f ruby ruby$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f irb && mv -f irb irb$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f erb && mv -f erb erb$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f rdoc && mv -f rdoc rdoc$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f ri && mv -f ri ri$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f testrb && mv -f testrb testrb$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f gem && mv -f gem gem$(SHORTVER)
+ cd $(DESTDIR)$(bindir) && test -f rake && mv -f rake rake$(SHORTVER)
+ cd $(DESTDIR)$(mandir)/man1 && test -f ruby.1 && mv -f ruby.1 ruby$(SHORTVER).1
+ cd $(DESTDIR)$(mandir)/man1 && test -f erb.1 && mv -f erb.1 erb$(SHORTVER).1
+ cd $(DESTDIR)$(mandir)/man1 && test -f irb.1 && mv -f irb.1 irb$(SHORTVER).1
+ cd $(DESTDIR)$(mandir)/man1 && test -f rake.1 && mv -f rake.1 rake$(SHORTVER).1
+ cd $(DESTDIR)$(mandir)/man1 && test -f ri.1 && mv -f ri.1 ri$(SHORTVER).1
Modified: csw/mgar/pkg/ruby20/trunk/checksums
===================================================================
--- csw/mgar/pkg/ruby20/trunk/checksums 2014-10-30 20:55:11 UTC (rev 24226)
+++ csw/mgar/pkg/ruby20/trunk/checksums 2014-10-30 21:01:23 UTC (rev 24227)
@@ -1 +1 @@
-9227787a9636551f1749ee8394b5ffe5 ruby-2.0.0-p451.tar.gz
+2e1f4355981b754d92f7e2cc456f843d ruby-2.0.0-p576.tar.gz
Added: csw/mgar/pkg/ruby20/trunk/files/README.ruby20
===================================================================
--- csw/mgar/pkg/ruby20/trunk/files/README.ruby20 (rev 0)
+++ csw/mgar/pkg/ruby20/trunk/files/README.ruby20 2014-10-30 21:01:23 UTC (rev 24227)
@@ -0,0 +1,6 @@
+If you have an older version of ruby installed you have to enable
+ruby20 via alternatives(8):
+
+ /opt/csw/sbin/alternatives --config ruby
+
+See http://wiki.opencsw.org/alternatives-package for further details.
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