[csw-devel] SF.net SVN: gar:[10604] csw/mgar/gar/v2
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Jul 27 16:30:09 CEST 2010
Revision: 10604
http://gar.svn.sourceforge.net/gar/?rev=10604&view=rev
Author: dmichelsen
Date: 2010-07-27 14:30:09 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
mGAR v2: Add rbgems category
Modified Paths:
--------------
csw/mgar/gar/v2/categories/rbgems/category.mk
Added Paths:
-----------
csw/mgar/gar/v2/categories/rbgems/
csw/mgar/gar/v2/pkglib/csw/depend.ruby
csw/mgar/gar/v2/pkglib/csw_rbgems_dyngspec.gspec
Modified: csw/mgar/gar/v2/categories/rbgems/category.mk
===================================================================
--- csw/mgar/gar/v2/categories/cpan/category.mk 2010-07-27 13:28:43 UTC (rev 10600)
+++ csw/mgar/gar/v2/categories/rbgems/category.mk 2010-07-27 14:30:09 UTC (rev 10604)
@@ -1,107 +1,51 @@
# Set the CPAN mirror in gar.conf.mk
-MASTER_SITES ?= $(CPAN_MIRRORS)
+MASTER_SITES ?= http://rubygems.org/downloads/
# This is common to most modules - override in module makefile if different
-MODDIST ?= $(GARNAME)-$(GARVERSION).tar.gz
+GEMNAME ?= $(GARNAME)
+GEMVERSION ?= $(GARVERSION)
+MODDIST ?= $(GEMNAME)-$(GEMVERSION).gem
DISTFILES += $(MODDIST)
-CHECKPATH ?= $(firstword $(CPAN_MIRRORS))
# Tests are enabled by default, unless overridden at the test level
ENABLE_TEST ?= 1
-# Every CPAN module depends on Perl
-#DEPENDS += lang/perl
+CONFIGURE_SCRIPTS ?=
-# Standard Perl module configuration script
-CONFIGURE_SCRIPTS ?= $(WORKSRC)/Makefile.PL
-
-# Calculate the CPAN author id
-GEN_AUTHOR_ID = $(shell echo ${AUTHOR} | cut -c1)
-GEN_AUTHOR_ID := $(GEN_AUTHOR_ID)/$(shell echo ${AUTHOR} | cut -c1,2)
-GEN_AUTHOR_ID := $(GEN_AUTHOR_ID)/$(AUTHOR)
-AUTHOR_ID ?= $(GEN_AUTHOR_ID)
-
-# Source URL
-TOLOWER = $(shell echo $(1) | tr '[A-Z]' '[a-z]')
-SPKG_SOURCEURL = http://search.cpan.org
-SPKG_SOURCEURL := $(SPKG_SOURCEURL)/~$(call TOLOWER,$(AUTHOR))
-
# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX ?= $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+UFILES_REGEX ?= $(GEMNAME)-(\d+(?:\.\d+)*).gem
USTREAM_MASTER_SITE ?= $(SPKG_SOURCEURL)
-_CATEGORY_SPKG_DESC = $(GARNAME): $(SPKG_DESC)
-_CATEGORY_PKGINFO = echo "PERL_MODULE_NAME=$(GARNAME)";
+_CATEGORY_SPKG_DESC = $(GEMNAME): $(SPKG_DESC)
+_CATEGORY_PKGINFO = echo "RUBY_GEM_NAME=$(GEMNAME)";
-SPKG_SOURCEURL := $(SPKG_SOURCEURL)/$(GARNAME)
+# _MERGE_EXCLUDE_CATEGORY = .*/perllocal\.pod .*/\.packlist
+_CATEGORY_GSPEC_INCLUDE ?= csw_rbgems_dyngspec.gspec
-_MERGE_EXCLUDE_CATEGORY = .*/perllocal\.pod .*/\.packlist
-_CATEGORY_GSPEC_INCLUDE ?= csw_cpan_dyngspec.gspec
-
-# Perl module dependencies can not be properly tracked right now
+# Ruby module dependencies can not be properly tracked right now
_CATEGORY_CHECKPKG_OVERRIDES = surplus-dependency
-include gar/gar.mk
+# gem specification actionmailer-2.3.8.gem
+# -> YAML for
+# - dependency generation
+# - link to rubyforge
-CONFIGURE_ENV += PERL5LIB=$(PERL5LIB)
-BUILD_ENV += PERL5LIB=$(PERL5LIB)
-TEST_ENV += PERL5LIB=$(PERL5LIB)
-INSTALL_ENV += PERL5LIB=$(PERL5LIB)
+CONFIGURE_SCRIPTS ?=
+BUILD_SCRIPTS ?=
+TEST_SCRIPTS ?=
+INSTALL_SCRIPTS = rbgem
-# Configure a target using Makefile.PL
-_CATEGORY_LD_OPTIONS ?= -L$(libdir) -lperl
-PERL_CONFIGURE_ARGS ?= INSTALLDIRS=vendor $(EXTRA_PERL_CONFIGURE_ARGS)
-configure-%/Makefile.PL:
- @echo " ==> Running Makefile.PL in $*"
- ( cd $* ; \
- $(CONFIGURE_ENV) perl Makefile.PL \
- $(CONFIGURE_ARGS) $(PERL_CONFIGURE_ARGS) )
- @$(MAKECOOKIE)
+include gar/gar.mk
-PERLBUILD_CONFIGURE_ARGS ?= installdirs=vendor $(EXTRA_PERLBUILD_CONFIGURE_ARGS)
-configure-%/Build.PL:
- @echo " ==> Running Build.PL in $*"
- ( cd $* ; \
- $(CONFIGURE_ENV) perl Build.PL \
- $(PERLBUILD_CONFIGURE_ARGS) $(CONFIGURE_ARGS) )
- @$(MAKECOOKIE)
+GEMDIR ?= $(libdir)/ruby/gems/1.8
+install-rbgem:
+ ( cd $(WORKSRC)/..; gem install --ignore-dependencies --local --no-test --install-dir $(DESTDIR)$(GEMDIR) $(DISTFILES) )
-build-%/Build:
- @echo " ==> Running Build in $*"
- ( cd $* ; $(BUILD_ENV) ./Build )
- @$(MAKECOOKIE)
-
-test-%/Build:
- @echo " ==> Running Build test in $*"
- @( cd $* ; $(TEST_ENV) ./Build test )
- @$(MAKECOOKIE)
-
-PERLBUILD_INSTALL_ARGS ?= destdir=$(DESTDIR) $(EXTRA_PERLBUILD_INSTALL_ARGS)
-install-%/Build:
- @echo " ==> Running Build install in $*"
- ( cd $* ; $(INSTALL_ENV) ./Build install $(PERLBUILD_INSTALL_ARGS) )
- @$(MAKECOOKIE)
-
# Check for a CPAN module version update
update-check:
+ @# TBD!
@echo " ==> Update Check: $(GARNAME) $(GARVERSION)"
- @if test "x$(MANUAL_UPDATE)" != "x0" ; then \
- cpan_check $(CHECKPATH)$(MODDIST) \
- $(CURDIR)/../update_results.txt ; \
- else \
- echo " ==> AUTO UPDATE CHECK FOR $(GARNAME) IS DISABLED" ; \
+ @echo " ==> AUTO UPDATE CHECK FOR $(GARNAME) IS DISABLED" ; \
fi
-# Print HTML info for modules
-module-info:
- @echo " ==> Generating module info for $(GARNAME) $(GARVERSION)"
- @printf "<a href=\"http://search.cpan.org/" \
- >> ../module_info.html
- @printf "~$(shell echo $(AUTHOR) | tr '[A-Z]' '[a-z]')/" \
- >> ../module_info.html
- @printf "$(GARNAME)-$(GARVERSION)" \
- >> ../module_info.html
- @printf "\">$(GARNAME)-$(GARVERSION)</a><br/>\n" \
- >> ../module_info.html
-
Copied: csw/mgar/gar/v2/pkglib/csw/depend.ruby (from rev 10600, csw/mgar/gar/v2/pkglib/csw/depend.perl)
===================================================================
--- csw/mgar/gar/v2/pkglib/csw/depend.ruby (rev 0)
+++ csw/mgar/gar/v2/pkglib/csw/depend.ruby 2010-07-27 14:30:09 UTC (rev 10604)
@@ -0,0 +1 @@
+P CSWruby ruby - An object-oriented language for quick and easy programming
Copied: csw/mgar/gar/v2/pkglib/csw_rbgems_dyngspec.gspec (from rev 10600, csw/mgar/gar/v2/pkglib/csw_cpan_dyngspec.gspec)
===================================================================
--- csw/mgar/gar/v2/pkglib/csw_rbgems_dyngspec.gspec (rev 0)
+++ csw/mgar/gar/v2/pkglib/csw_rbgems_dyngspec.gspec 2010-07-27 14:30:09 UTC (rev 10604)
@@ -0,0 +1,5 @@
+%include url file://%{PKGLIB}/csw_vars.gspec
+%pkginfo url file://%{PKGLIB}/csw/pkginfo
+%prototype exec cswproto -s %{TIMESTAMP} -r %{DESTDIR} %{DESTDIR}
+%depend:merge url file://%{PKGLIB}/csw/ruby.perl
+%depend exec gawk '$1 ~ /f/{print $3}' %{prototype} | depmaker --root %{DESTDIR} --nodep %{pkgname} %{DEPMAKER_EXTRA_ARGS}
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