Skip to content

Commit

Permalink
Added git-extras scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Jan 12, 2013
1 parent dab18e7 commit 546f632
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions schemas/git-extras.py
@@ -0,0 +1,8 @@
class GitExtras(Schema):
url = 'git://github.com/visionmedia/git-extras.git'
homepage = 'https://github.com/visionmedia/git-extras'
deps = ['git']
patch_which_fixes_paths = 'patches/git-extras-fix-bashcompletion-path.diff'

def install(self):
self.call('make install PREFIX={prefix}')
24 changes: 24 additions & 0 deletions schemas/patches/git-extras-fix-bashcompletion-path.diff
@@ -0,0 +1,24 @@
diff --git a/Makefile b/Makefile
index 8838112..4946bb2 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,8 @@ install:
cp -f $(BIN) $(DESTDIR)$(PREFIX)/$(BIN); \
)
cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)
- @mkdir -p $(DESTDIR)/etc/bash_completion.d
- cp -f etc/bash_completion.sh $(DESTDIR)/etc/bash_completion.d/git-extras
+ @mkdir -p $(DESTDIR)$(PREFIX)/etc/bash_completion.d
+ cp -f etc/bash_completion.sh $(DESTDIR)$(PREFIX)/etc/bash_completion.d/git-extras

docs: $(MAN_HTML) $(MAN_PAGES)

@@ -42,7 +42,7 @@ uninstall:
echo "... uninstalling $(DESTDIR)$(MANPREFIX)/$(MAN)"; \
rm -f $(DESTDIR)$(MANPREFIX)/$(MAN); \
)
- rm -f $(DESTDIR)/etc/bash_completion.d/git-extras
+ rm -f $(DESTDIR)$(PREFIX)/etc/bash_completion.d/git-extras

clean: docclean

0 comments on commit 546f632

Please sign in to comment.