[csw-devel] SF.net SVN: gar:[6283] csw/mgar/pkg/git/trunk/Makefile
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Sat Sep 12 20:09:20 CEST 2009
Revision: 6283
http://gar.svn.sourceforge.net/gar/?rev=6283&view=rev
Author: bdwalton
Date: 2009-09-12 18:09:20 +0000 (Sat, 12 Sep 2009)
Log Message:
-----------
git: install bash completion and make it a new package
Modified Paths:
--------------
csw/mgar/pkg/git/trunk/Makefile
Modified: csw/mgar/pkg/git/trunk/Makefile
===================================================================
--- csw/mgar/pkg/git/trunk/Makefile 2009-09-12 17:57:36 UTC (rev 6282)
+++ csw/mgar/pkg/git/trunk/Makefile 2009-09-12 18:09:20 UTC (rev 6283)
@@ -7,6 +7,7 @@
# TEST_SCRIPTS =
PACKAGES = CSWgit CSWgitk CSWgitgui CSWgitsvn CSWgitcvs CSWgitemacs CSWgitdoc
+PACKAGES += CSWgitcompletion
CATALOGNAME_CSWgit = git
CATALOGNAME_CSWgitcvs = git_cvs
@@ -15,6 +16,7 @@
CATALOGNAME_CSWgitgui = git_gui
CATALOGNAME_CSWgitdoc = git_doc
CATALOGNAME_CSWgitk = gitk
+CATALOGNAME_CSWgitcompletion = git_completion
ARCHALL_CSWgitsvn = 1
ARCHALL_CSWgitcvs = 1
@@ -22,6 +24,7 @@
ARCHALL_CSWgitgui = 1
ARCHALL_CSWgitemacs = 1
ARCHALL_CSWgitdoc = 1
+ARCHALL_CSWgitcompletion = 1
PREREQUISITE_PKGS = CSWasciidoc CSWossldevel CSWxmlto CSWbash CSWcurldevel
PREREQUISITE_PKGS += CSWgsed CSWgnulinks CSWperl CSWtk CSWexpat
@@ -44,6 +47,10 @@
REQUIRED_PKGS_CSWgitdoc = CSWgit
+# We include bash here even though git itself depends on it because in theory
+# git could use any other POSIX compliant shell and drop the dependency...
+REQUIRED_PKGS_CSWgitcompletion = CSWgit CSWbash
+
LICENSE_CSWgit = COPYING
LICENSE_CSWgitk = COPYING
LICENSE_CSWgitgui = COPYING
@@ -51,6 +58,7 @@
LICENSE_CSWgitcvs = COPYING
LICENSE_CSWgitemacs = COPYING
LICENSE_CSWgitdoc = COPYING
+LICENSE_CSWgitcompletion = COPYING
DESCRIPTION = Fast Version Control System
define BLURB
@@ -66,6 +74,7 @@
SPKG_DESC_CSWgitcvs = Git tools for working with CVS repositories
SPKG_DESC_CSWgitdoc = Documentation for Git
SPKG_DESC_CSWgitemacs = Git VCS support for Emacs
+SPKG_DESC_CSWgitcompletion = Bash completion support for Git
#NOTE: If you need to proxy git:// connections, set GIT_USE_PROXY in
# your .garrc file. (That leaves this recipe in a more generic form.)
@@ -83,6 +92,7 @@
PKGFILES_CSWgitcvs = $(foreach d,$(fdirs),$(d)/.*cvs.*)
PKGFILES_CSWgitemacs = .*emacs.*
PKGFILES_CSWgitdoc = $(docdir)/.*
+PKGFILES_CSWgitcompletion = $(bashconfdir)/bash_completion.d/.*
# We define upstream file regex so we can be notifed of new upstream
# software release
@@ -90,6 +100,8 @@
sysconfdir = /etc/opt/csw
localstatedir = /var/opt/csw
+#set bashconfdir to sysconfdir when bash changes
+bashconfdir = /opt/csw/etc/
CONFIGURE_ARGS = $(DIRPATHS) --with-shell=$(bindir)/bash
CONFIGURE_ARGS += --with-perl=$(bindir)/perl
@@ -143,4 +155,8 @@
cp -R contrib/hooks README COPYING $(GD)/; \
cp -R Documentation/*.html Documentation/docbook-xsl.css $(GD)/; \
cp -R Documentation/howto Documentation/technical $(GD)/; )
+ @echo Installing Bash Completion files
+ @( cd $(WORKSRC); \
+ cp contrib/completion/* \
+ $(DESTDIR)/$(bashconfdir)/bash_completion.d/ )
@$(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