summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-05-08 20:20:27 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-05-08 20:20:27 +0000
commit936dc8b0625d93dabd1060f7224f00e637063a2b (patch)
treeb896d4080eb58691e7c3802ec6569be8e1ae3c39 /dev-util/git
parentVersion bump. (diff)
downloadgentoo-2-936dc8b0625d93dabd1060f7224f00e637063a2b.tar.gz
gentoo-2-936dc8b0625d93dabd1060f7224f00e637063a2b.tar.bz2
gentoo-2-936dc8b0625d93dabd1060f7224f00e637063a2b.zip
Cleanup old ebuilds and files.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/git')
-rw-r--r--dev-util/git/ChangeLog17
-rw-r--r--dev-util/git/files/20080322-git-1.5.4.4-noperl.patch335
-rw-r--r--dev-util/git/files/20080423-git-1.5.5.1-noperl.patch338
-rw-r--r--dev-util/git/files/20080528-git-1.5.5.3-noperl.patch341
-rw-r--r--dev-util/git/files/50git-gentoo.el13
-rw-r--r--dev-util/git/files/70git-gentoo.el4
-rw-r--r--dev-util/git/files/72git-gentoo.el11
-rw-r--r--dev-util/git/files/git-1.5.0-symlinks.patch13
-rw-r--r--dev-util/git/files/git-1.5.3-symlinks.patch13
-rw-r--r--dev-util/git/files/git-1.5.3.8-t9101.patch25
-rw-r--r--dev-util/git/files/git-1.5.3.8-t9106.patch22
-rw-r--r--dev-util/git/git-1.5.1.6.ebuild159
-rw-r--r--dev-util/git/git-1.5.3.7-r1.ebuild224
-rw-r--r--dev-util/git/git-1.5.3.8.ebuild224
-rw-r--r--dev-util/git/git-1.5.4.5.ebuild270
-rw-r--r--dev-util/git/git-1.5.5.3-r1.ebuild280
-rw-r--r--dev-util/git/git-1.5.5.3.ebuild282
-rw-r--r--dev-util/git/git-1.5.5.4.ebuild280
-rw-r--r--dev-util/git/git-1.5.6.1.ebuild280
-rw-r--r--dev-util/git/git-1.5.6.2.ebuild280
-rw-r--r--dev-util/git/git-1.5.6.3.ebuild280
-rw-r--r--dev-util/git/git-1.5.6.4.ebuild279
-rw-r--r--dev-util/git/git-1.5.6.5.ebuild279
-rw-r--r--dev-util/git/git-1.6.0.1.ebuild293
-rw-r--r--dev-util/git/git-1.6.0.2.ebuild293
-rw-r--r--dev-util/git/git-1.6.0.3.ebuild293
-rw-r--r--dev-util/git/git-1.6.0.4-r1.ebuild311
-rw-r--r--dev-util/git/git-1.6.0.4-r2.ebuild311
-rw-r--r--dev-util/git/git-1.6.0.4.ebuild293
-rw-r--r--dev-util/git/git-1.6.0.ebuild293
-rw-r--r--dev-util/git/git-1.6.3_rc4.ebuild356
31 files changed, 16 insertions, 6676 deletions
diff --git a/dev-util/git/ChangeLog b/dev-util/git/ChangeLog
index 42aa59864820..f1ce065f67cd 100644
--- a/dev-util/git/ChangeLog
+++ b/dev-util/git/ChangeLog
@@ -1,6 +1,21 @@
# ChangeLog for dev-util/git
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.340 2009/05/08 20:15:16 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.341 2009/05/08 20:20:27 robbat2 Exp $
+
+ 08 May 2009; Robin H. Johnson <robbat2@gentoo.org> -git-1.5.1.6.ebuild,
+ -git-1.5.3.7-r1.ebuild, -git-1.5.3.8.ebuild,
+ -files/git-1.5.3.8-t9101.patch, -files/git-1.5.3.8-t9106.patch,
+ -files/20080322-git-1.5.4.4-noperl.patch, -git-1.5.5.4.ebuild,
+ -files/70git-gentoo.el, -files/git-1.5.0-symlinks.patch,
+ -git-1.5.4.5.ebuild, -files/20080423-git-1.5.5.1-noperl.patch,
+ -git-1.5.5.3.ebuild, -git-1.5.5.3-r1.ebuild,
+ -files/20080528-git-1.5.5.3-noperl.patch, -git-1.5.6.1.ebuild,
+ -files/50git-gentoo.el, -git-1.5.6.2.ebuild, -files/72git-gentoo.el,
+ -files/git-1.5.3-symlinks.patch, -git-1.5.6.3.ebuild, -git-1.5.6.4.ebuild,
+ -git-1.5.6.5.ebuild, -git-1.6.0.ebuild, -git-1.6.0.1.ebuild,
+ -git-1.6.0.2.ebuild, -git-1.6.0.3.ebuild, -git-1.6.0.4.ebuild,
+ -git-1.6.0.4-r1.ebuild, -git-1.6.0.4-r2.ebuild, -git-1.6.3_rc4.ebuild:
+ Cleanup old ebuilds and files.
*git-1.6.3 (08 May 2009)
diff --git a/dev-util/git/files/20080322-git-1.5.4.4-noperl.patch b/dev-util/git/files/20080322-git-1.5.4.4-noperl.patch
deleted file mode 100644
index bf5e8306fe5c..000000000000
--- a/dev-util/git/files/20080322-git-1.5.4.4-noperl.patch
+++ /dev/null
@@ -1,335 +0,0 @@
-Implement 95% of the NO_PERL functionality, to build Git without any Perl
-support, because some Gentoo users want a Git without any Perl whatesoever
-(Gentoo bug #214168).
-
-Remaining bits are doing configure.ac as well as git-remote usage in:
-t5502-quickfetch.sh
-t5512-ls-remote.sh
-t5520-pull.sh
-
-Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-Bugzilla-URL: http://bugs.gentoo.org/show_bug.cgi?id=214168
-
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/Makefile git-1.5.4.4/Makefile
---- git-1.5.4.4.orig/Makefile 2008-03-22 15:25:24.986081000 -0700
-+++ git-1.5.4.4/Makefile 2008-03-22 16:46:04.612806869 -0700
-@@ -123,6 +123,8 @@
- #
- # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
- # MakeMaker (e.g. using ActiveState under Cygwin).
-+
-+# Define NO_PERL if you do not want Perl scripts at all.
- #
- # Define NO_TCLTK if you do not want Tcl/Tk GUI.
- #
-@@ -233,15 +235,18 @@
- git-stash.sh \
- git-help--browse.sh
-
-+SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
-+ifndef NO_PERL
- SCRIPT_PERL = \
- git-add--interactive.perl \
- git-archimport.perl git-cvsimport.perl git-relink.perl \
- git-cvsserver.perl git-remote.perl git-cvsexportcommit.perl \
- git-send-email.perl git-svn.perl
--
--SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
-- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-- git-instaweb
-+SCRIPTS += $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-+ git-instaweb
-+else
-+SCRIPT_PERL =
-+endif
-
- # ... and all the rest that could be moved out of bindir to gitexecdir
- PROGRAMS = \
-@@ -276,7 +281,10 @@
- ALL_PROGRAMS += git-merge-subtree$X
-
- # what 'all' will build but not install in gitexecdir
--OTHER_PROGRAMS = git$X gitweb/gitweb.cgi
-+OTHER_PROGRAMS = git$X
-+ifndef NO_PERL
-+OTHER_PROGRAMS += gitweb/gitweb.cgi
-+endif
-
- # Set paths to tools early so that they can be used for version tests.
- ifndef SHELL_PATH
-@@ -570,6 +578,10 @@
- endif
- endif
-
-+ifdef NO_PERL
-+ BASIC_CFLAGS += -DNO_PERL
-+endif
-+
- ifdef ZLIB_PATH
- BASIC_CFLAGS += -I$(ZLIB_PATH)/include
- EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib)
-@@ -731,6 +743,11 @@
- ifeq ($(TCLTK_PATH),)
- NO_TCLTK=NoThanks
- endif
-+ifeq ($(PERL_PATH),)
-+NO_PERL=NoThanks
-+export NO_PERL
-+export NO_PERL_MAKEMAKER
-+endif
-
- QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
- QUIET_SUBDIR1 =
-@@ -803,7 +820,9 @@
- $(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all
- $(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all
- endif
-+ifndef NO_PERL
- $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all
-+endif
- $(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1)
-
- strip: $(PROGRAMS) git$X
-@@ -844,6 +863,7 @@
- chmod +x $@+ && \
- mv $@+ $@
-
-+ifndef NO_PERL
- $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
-
- perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
-@@ -902,6 +922,7 @@
- $@.sh > $@+ && \
- chmod +x $@+ && \
- mv $@+ $@
-+endif # NO_PERL
-
- configure: configure.ac
- $(QUIET_GEN)$(RM) $@ $<+ && \
-@@ -1052,7 +1073,9 @@
- $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
- $(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)'
- $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
-+ifndef NO_PERL
- $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
-+endif
- ifndef NO_TCLTK
- $(MAKE) -C gitk-git install
- $(MAKE) -C git-gui install
-@@ -1141,9 +1164,11 @@
- $(RM) -r $(GIT_TARNAME) .doc-tmp-dir
- $(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
- $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
-- $(RM) gitweb/gitweb.cgi
- $(MAKE) -C Documentation/ clean
-+ifndef NO_PERL
-+ $(RM) gitweb/gitweb.cgi
- $(MAKE) -C perl clean
-+endif
- $(MAKE) -C templates/ clean
- $(MAKE) -C t/ clean
- ifndef NO_TCLTK
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/builtin-add.c git-1.5.4.4/builtin-add.c
---- git-1.5.4.4.orig/builtin-add.c 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/builtin-add.c 2008-03-22 15:57:31.759925335 -0700
-@@ -135,6 +135,7 @@
- free(seen);
- }
-
-+#ifndef NO_PERL
- static const char **validate_pathspec(int argc, const char **argv, const char *prefix)
- {
- const char **pathspec = get_pathspec(prefix, argv);
-@@ -170,6 +171,7 @@
- free(args);
- return status;
- }
-+#endif
-
- static struct lock_file lock_file;
-
-@@ -182,8 +184,10 @@
- OPT__DRY_RUN(&show_only),
- OPT__VERBOSE(&verbose),
- OPT_GROUP(""),
-+#ifndef NO_PERL
- OPT_BOOLEAN('i', "interactive", &add_interactive, "interactive picking"),
- OPT_BOOLEAN('p', "patch", &patch_interactive, "interactive patching"),
-+#endif
- OPT_BOOLEAN('f', NULL, &ignored_too, "allow adding otherwise ignored files"),
- OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update tracked files"),
- OPT_BOOLEAN( 0 , "refresh", &refresh_only, "don't add, only refresh the index"),
-@@ -198,10 +202,12 @@
-
- argc = parse_options(argc, argv, builtin_add_options,
- builtin_add_usage, 0);
-+#ifndef NO_PERL
- if (patch_interactive)
- add_interactive = 1;
- if (add_interactive)
- exit(interactive_add(argc, argv, prefix));
-+#endif
-
- git_config(git_default_config);
-
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/builtin-commit.c git-1.5.4.4/builtin-commit.c
---- git-1.5.4.4.orig/builtin-commit.c 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/builtin-commit.c 2008-03-22 15:58:41.139317545 -0700
-@@ -96,7 +96,9 @@
- OPT_GROUP("Commit contents options"),
- OPT_BOOLEAN('a', "all", &all, "commit all changed files"),
- OPT_BOOLEAN('i', "include", &also, "add specified files to index for commit"),
-+#ifndef NO_PERL
- OPT_BOOLEAN(0, "interactive", &interactive, "interactively add files"),
-+#endif
- OPT_BOOLEAN('o', "only", &only, ""),
- OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
- OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
-@@ -213,11 +215,13 @@
- struct path_list partial;
- const char **pathspec = NULL;
-
-+#ifndef NO_PERL
- if (interactive) {
- interactive_add(argc, argv, prefix);
- commit_style = COMMIT_AS_IS;
- return get_index_file();
- }
-+#endif
-
- if (read_cache() < 0)
- die("index file corrupt");
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/lib-git-svn.sh git-1.5.4.4/t/lib-git-svn.sh
---- git-1.5.4.4.orig/t/lib-git-svn.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/lib-git-svn.sh 2008-03-22 16:02:12.797409374 -0700
-@@ -6,6 +6,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-svn tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- GIT_DIR=$PWD/.git
- GIT_SVN_DIR=$GIT_DIR/svn/git-svn
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t5505-remote.sh git-1.5.4.4/t/t5505-remote.sh
---- git-1.5.4.4.orig/t/t5505-remote.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t5505-remote.sh 2008-03-22 16:22:58.012694493 -0700
-@@ -3,6 +3,12 @@
- test_description='git remote porcelain-ish'
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- setup_repository () {
- mkdir "$1" && (
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t7501-commit.sh git-1.5.4.4/t/t7501-commit.sh
---- git-1.5.4.4.orig/t/t7501-commit.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t7501-commit.sh 2008-03-22 16:14:25.513913653 -0700
-@@ -38,7 +38,7 @@
- "echo King of the bongo >file &&
- git-commit -m foo -a file"
-
--test_expect_failure \
-+[ -z "$NO_PERL" ] && test_expect_failure \
- "using paths with --interactive" \
- "echo bong-o-bong >file &&
- echo 7 | git-commit -m foo --interactive file"
-@@ -119,7 +119,7 @@
- "echo 'gak' >file && \
- git-commit -m 'author' --author 'Rubber Duck <rduck@convoy.org>' -a"
-
--test_expect_success \
-+[ -z "$NO_PERL" ] && test_expect_success \
- "interactive add" \
- "echo 7 | git-commit --interactive | grep 'What now'"
-
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9001-send-email.sh git-1.5.4.4/t/t9001-send-email.sh
---- git-1.5.4.4.orig/t/t9001-send-email.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t9001-send-email.sh 2008-03-22 16:03:58.490510442 -0700
-@@ -2,6 +2,12 @@
-
- test_description='git-send-email'
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-send-email tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- PROG='git send-email'
- test_expect_success \
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9200-git-cvsexportcommit.sh git-1.5.4.4/t/t9200-git-cvsexportcommit.sh
---- git-1.5.4.4.orig/t/t9200-git-cvsexportcommit.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t9200-git-cvsexportcommit.sh 2008-03-22 16:04:12.535965488 -0700
-@@ -13,6 +13,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsexportcommit tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- CVSROOT=$(pwd)/cvsroot
- CVSWORK=$(pwd)/cvswork
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9400-git-cvsserver-server.sh git-1.5.4.4/t/t9400-git-cvsserver-server.sh
---- git-1.5.4.4.orig/t/t9400-git-cvsserver-server.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t9400-git-cvsserver-server.sh 2008-03-22 16:04:20.038686248 -0700
-@@ -17,6 +17,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsserver tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
- perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
- test_expect_success 'skipping git-cvsserver tests, Perl SQLite interface unavailable' :
- test_done
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9500-gitweb-standalone-no-errors.sh git-1.5.4.4/t/t9500-gitweb-standalone-no-errors.sh
---- git-1.5.4.4.orig/t/t9500-gitweb-standalone-no-errors.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t9500-gitweb-standalone-no-errors.sh 2008-03-22 16:17:00.350148743 -0700
-@@ -67,6 +67,13 @@
- }
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping gitweb-standalone-no-errors tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-+
-
- perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
- test_expect_success 'skipping gitweb tests, perl version is too old' :
-diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9600-cvsimport.sh git-1.5.4.4/t/t9600-cvsimport.sh
---- git-1.5.4.4.orig/t/t9600-cvsimport.sh 2008-03-09 03:18:13.000000000 -0700
-+++ git-1.5.4.4/t/t9600-cvsimport.sh 2008-03-22 16:04:28.501086452 -0700
-@@ -9,6 +9,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
- case "$cvsps_version" in
diff --git a/dev-util/git/files/20080423-git-1.5.5.1-noperl.patch b/dev-util/git/files/20080423-git-1.5.5.1-noperl.patch
deleted file mode 100644
index 4f70c9122413..000000000000
--- a/dev-util/git/files/20080423-git-1.5.5.1-noperl.patch
+++ /dev/null
@@ -1,338 +0,0 @@
-Implement 95% of the NO_PERL functionality, to build Git without any Perl
-support, because some Gentoo users want a Git without any Perl whatesoever
-(Gentoo bug #214168).
-
-Remaining bits are doing configure.ac as well as git-remote usage in:
-t5502-quickfetch.sh
-t5512-ls-remote.sh
-t5520-pull.sh
-
-Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-Bugzilla-URL: http://bugs.gentoo.org/show_bug.cgi?id=214168
-Notes: Ported from 20080322-git-1.5.4.5-noperl.patch
-
-diff -Nuar git-1.5.5.1.orig/builtin-add.c git-1.5.5.1/builtin-add.c
---- git-1.5.5.1.orig/builtin-add.c 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/builtin-add.c 2008-04-23 16:58:51.708575899 -0700
-@@ -135,6 +135,7 @@
- free(seen);
- }
-
-+#ifndef NO_PERL
- static const char **validate_pathspec(int argc, const char **argv, const char *prefix)
- {
- const char **pathspec = get_pathspec(prefix, argv);
-@@ -170,6 +171,7 @@
- free(args);
- return status;
- }
-+#endif
-
- static struct lock_file lock_file;
-
-@@ -182,8 +184,10 @@
- OPT__DRY_RUN(&show_only),
- OPT__VERBOSE(&verbose),
- OPT_GROUP(""),
-+#ifndef NO_PERL
- OPT_BOOLEAN('i', "interactive", &add_interactive, "interactive picking"),
- OPT_BOOLEAN('p', "patch", &patch_interactive, "interactive patching"),
-+#endif
- OPT_BOOLEAN('f', NULL, &ignored_too, "allow adding otherwise ignored files"),
- OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update tracked files"),
- OPT_BOOLEAN( 0 , "refresh", &refresh_only, "don't add, only refresh the index"),
-@@ -198,10 +202,12 @@
-
- argc = parse_options(argc, argv, builtin_add_options,
- builtin_add_usage, 0);
-+#ifndef NO_PERL
- if (patch_interactive)
- add_interactive = 1;
- if (add_interactive)
- exit(interactive_add(argc, argv, prefix));
-+#endif
-
- git_config(git_default_config);
-
-diff -Nuar git-1.5.5.1.orig/builtin-commit.c git-1.5.5.1/builtin-commit.c
---- git-1.5.5.1.orig/builtin-commit.c 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/builtin-commit.c 2008-04-23 17:00:04.672207334 -0700
-@@ -97,7 +97,9 @@
- OPT_GROUP("Commit contents options"),
- OPT_BOOLEAN('a', "all", &all, "commit all changed files"),
- OPT_BOOLEAN('i', "include", &also, "add specified files to index for commit"),
-+#ifndef NO_PERL
- OPT_BOOLEAN(0, "interactive", &interactive, "interactively add files"),
-+#endif
- OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
- OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
- OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
-@@ -217,11 +219,13 @@
- struct path_list partial;
- const char **pathspec = NULL;
-
-+#ifndef NO_PERL
- if (interactive) {
- interactive_add(argc, argv, prefix);
- commit_style = COMMIT_AS_IS;
- return get_index_file();
- }
-+#endif
-
- if (read_cache() < 0)
- die("index file corrupt");
-diff -Nuar git-1.5.5.1.orig/Makefile git-1.5.5.1/Makefile
---- git-1.5.5.1.orig/Makefile 2008-04-23 16:58:19.622327000 -0700
-+++ git-1.5.5.1/Makefile 2008-04-23 16:58:51.712091375 -0700
-@@ -130,6 +130,8 @@
- #
- # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
- # MakeMaker (e.g. using ActiveState under Cygwin).
-+
-+# Define NO_PERL if you do not want Perl scripts at all.
- #
- # Define NO_TCLTK if you do not want Tcl/Tk GUI.
- #
-@@ -255,6 +257,8 @@
- SCRIPT_SH += git-submodule.sh
- SCRIPT_SH += git-web--browse.sh
-
-+SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
-+ifndef NO_PERL
- SCRIPT_PERL += git-add--interactive.perl
- SCRIPT_PERL += git-archimport.perl
- SCRIPT_PERL += git-cvsexportcommit.perl
-@@ -263,10 +267,11 @@
- SCRIPT_PERL += git-relink.perl
- SCRIPT_PERL += git-send-email.perl
- SCRIPT_PERL += git-svn.perl
--
--SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
-- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-- git-instaweb
-+SCRIPTS += $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-+ git-instaweb
-+else
-+SCRIPT_PERL =
-+endif
-
- # Empty...
- EXTRA_PROGRAMS =
-@@ -315,7 +320,10 @@
- ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)
-
- # what 'all' will build but not install in gitexecdir
--OTHER_PROGRAMS = git$X gitweb/gitweb.cgi
-+OTHER_PROGRAMS = git$X
-+ifndef NO_PERL
-+OTHER_PROGRAMS += gitweb/gitweb.cgi
-+endif
-
- # Set paths to tools early so that they can be used for version tests.
- ifndef SHELL_PATH
-@@ -716,6 +724,10 @@
- endif
- endif
-
-+ifdef NO_PERL
-+ BASIC_CFLAGS += -DNO_PERL
-+endif
-+
- ifdef ZLIB_PATH
- BASIC_CFLAGS += -I$(ZLIB_PATH)/include
- EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib)
-@@ -896,6 +908,11 @@
- ifeq ($(TCLTK_PATH),)
- NO_TCLTK=NoThanks
- endif
-+ifeq ($(PERL_PATH),)
-+NO_PERL=NoThanks
-+export NO_PERL
-+export NO_PERL_MAKEMAKER
-+endif
-
- QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
- QUIET_SUBDIR1 =
-@@ -968,7 +985,9 @@
- $(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all
- $(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all
- endif
-+ifndef NO_PERL
- $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all
-+endif
- $(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1)
-
- strip: $(PROGRAMS) git$X
-@@ -1007,6 +1026,7 @@
- chmod +x $@+ && \
- mv $@+ $@
-
-+ifndef NO_PERL
- $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
-
- perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
-@@ -1065,6 +1085,7 @@
- $@.sh > $@+ && \
- chmod +x $@+ && \
- mv $@+ $@
-+endif # NO_PERL
-
- configure: configure.ac
- $(QUIET_GEN)$(RM) $@ $<+ && \
-@@ -1218,7 +1239,9 @@
- $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
- $(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)'
- $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
-+ifndef NO_PERL
- $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
-+endif
- ifndef NO_TCLTK
- $(MAKE) -C gitk-git install
- $(MAKE) -C git-gui install
-@@ -1307,9 +1330,11 @@
- $(RM) -r $(GIT_TARNAME) .doc-tmp-dir
- $(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
- $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
-- $(RM) gitweb/gitweb.cgi
- $(MAKE) -C Documentation/ clean
-+ifndef NO_PERL
-+ $(RM) gitweb/gitweb.cgi
- $(MAKE) -C perl clean
-+endif
- $(MAKE) -C templates/ clean
- $(MAKE) -C t/ clean
- ifndef NO_TCLTK
-diff -Nuar git-1.5.5.1.orig/t/lib-git-svn.sh git-1.5.5.1/t/lib-git-svn.sh
---- git-1.5.5.1.orig/t/lib-git-svn.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/lib-git-svn.sh 2008-04-23 16:58:51.712091375 -0700
-@@ -6,6 +6,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-svn tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- GIT_DIR=$PWD/.git
- GIT_SVN_DIR=$GIT_DIR/svn/git-svn
-diff -Nuar git-1.5.5.1.orig/t/t5505-remote.sh git-1.5.5.1/t/t5505-remote.sh
---- git-1.5.5.1.orig/t/t5505-remote.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t5505-remote.sh 2008-04-23 16:58:51.712091375 -0700
-@@ -3,6 +3,12 @@
- test_description='git remote porcelain-ish'
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- setup_repository () {
- mkdir "$1" && (
-diff -Nuar git-1.5.5.1.orig/t/t7501-commit.sh git-1.5.5.1/t/t7501-commit.sh
---- git-1.5.5.1.orig/t/t7501-commit.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t7501-commit.sh 2008-04-23 16:58:51.712091375 -0700
-@@ -38,7 +38,7 @@
- "echo King of the bongo >file &&
- ! git-commit -m foo -a file"
-
--test_expect_success \
-+[ -z "$NO_PERL" ] && test_expect_success \
- "using paths with --interactive" \
- "echo bong-o-bong >file &&
- ! echo 7 | git-commit -m foo --interactive file"
-@@ -119,7 +119,7 @@
- "echo 'gak' >file && \
- git-commit -m 'author' --author 'Rubber Duck <rduck@convoy.org>' -a"
-
--test_expect_success \
-+[ -z "$NO_PERL" ] && test_expect_success \
- "interactive add" \
- "echo 7 | git-commit --interactive | grep 'What now'"
-
-diff -Nuar git-1.5.5.1.orig/t/t9001-send-email.sh git-1.5.5.1/t/t9001-send-email.sh
---- git-1.5.5.1.orig/t/t9001-send-email.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t9001-send-email.sh 2008-04-23 16:58:51.712091375 -0700
-@@ -2,6 +2,12 @@
-
- test_description='git-send-email'
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-send-email tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- PROG='git send-email'
- test_expect_success \
-diff -Nuar git-1.5.5.1.orig/t/t9200-git-cvsexportcommit.sh git-1.5.5.1/t/t9200-git-cvsexportcommit.sh
---- git-1.5.5.1.orig/t/t9200-git-cvsexportcommit.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t9200-git-cvsexportcommit.sh 2008-04-23 16:58:51.715484206 -0700
-@@ -13,6 +13,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsexportcommit tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- CVSROOT=$(pwd)/cvsroot
- CVSWORK=$(pwd)/cvswork
-diff -Nuar git-1.5.5.1.orig/t/t9400-git-cvsserver-server.sh git-1.5.5.1/t/t9400-git-cvsserver-server.sh
---- git-1.5.5.1.orig/t/t9400-git-cvsserver-server.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t9400-git-cvsserver-server.sh 2008-04-23 16:58:51.715484206 -0700
-@@ -17,6 +17,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsserver tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
- perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
- test_expect_success 'skipping git-cvsserver tests, Perl SQLite interface unavailable' :
- test_done
-diff -Nuar git-1.5.5.1.orig/t/t9500-gitweb-standalone-no-errors.sh git-1.5.5.1/t/t9500-gitweb-standalone-no-errors.sh
---- git-1.5.5.1.orig/t/t9500-gitweb-standalone-no-errors.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t9500-gitweb-standalone-no-errors.sh 2008-04-23 16:58:51.715484206 -0700
-@@ -67,6 +67,13 @@
- }
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping gitweb-standalone-no-errors tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-+
-
- perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
- test_expect_success 'skipping gitweb tests, perl version is too old' :
-diff -Nuar git-1.5.5.1.orig/t/t9600-cvsimport.sh git-1.5.5.1/t/t9600-cvsimport.sh
---- git-1.5.5.1.orig/t/t9600-cvsimport.sh 2008-04-20 15:17:13.000000000 -0700
-+++ git-1.5.5.1/t/t9600-cvsimport.sh 2008-04-23 16:58:51.715484206 -0700
-@@ -15,6 +15,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
- case "$cvsps_version" in
diff --git a/dev-util/git/files/20080528-git-1.5.5.3-noperl.patch b/dev-util/git/files/20080528-git-1.5.5.3-noperl.patch
deleted file mode 100644
index d16b6a56f50d..000000000000
--- a/dev-util/git/files/20080528-git-1.5.5.3-noperl.patch
+++ /dev/null
@@ -1,341 +0,0 @@
-Implement 95% of the NO_PERL functionality, to build Git without any Perl
-support, because some Gentoo users want a Git without any Perl whatesoever
-(Gentoo bug #214168).
-
-Remaining bits are doing configure.ac as well as git-remote usage in:
-t5502-quickfetch.sh
-t5512-ls-remote.sh
-t5520-pull.sh
-
-Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-Bugzilla-URL: http://bugs.gentoo.org/show_bug.cgi?id=214168
-Notes: Ported from 20080423-git-1.5.5.1-noperl.patch
-Notes: Ported from 20080322-git-1.5.4.5-noperl.patch
-
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/builtin-add.c git-1.5.5.3/builtin-add.c
---- git-1.5.5.3.orig/builtin-add.c 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/builtin-add.c 2008-05-28 10:38:12.566970120 -0700
-@@ -135,6 +135,7 @@
- free(seen);
- }
-
-+#ifndef NO_PERL
- static const char **validate_pathspec(int argc, const char **argv, const char *prefix)
- {
- const char **pathspec = get_pathspec(prefix, argv);
-@@ -170,6 +171,7 @@
- free(args);
- return status;
- }
-+#endif
-
- static struct lock_file lock_file;
-
-@@ -182,8 +184,10 @@
- OPT__DRY_RUN(&show_only),
- OPT__VERBOSE(&verbose),
- OPT_GROUP(""),
-+#ifndef NO_PERL
- OPT_BOOLEAN('i', "interactive", &add_interactive, "interactive picking"),
- OPT_BOOLEAN('p', "patch", &patch_interactive, "interactive patching"),
-+#endif
- OPT_BOOLEAN('f', NULL, &ignored_too, "allow adding otherwise ignored files"),
- OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update tracked files"),
- OPT_BOOLEAN( 0 , "refresh", &refresh_only, "don't add, only refresh the index"),
-@@ -198,10 +202,12 @@
-
- argc = parse_options(argc, argv, builtin_add_options,
- builtin_add_usage, 0);
-+#ifndef NO_PERL
- if (patch_interactive)
- add_interactive = 1;
- if (add_interactive)
- exit(interactive_add(argc, argv, prefix));
-+#endif
-
- git_config(git_default_config);
-
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/builtin-commit.c git-1.5.5.3/builtin-commit.c
---- git-1.5.5.3.orig/builtin-commit.c 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/builtin-commit.c 2008-05-28 10:38:25.556703720 -0700
-@@ -97,7 +97,9 @@
- OPT_GROUP("Commit contents options"),
- OPT_BOOLEAN('a', "all", &all, "commit all changed files"),
- OPT_BOOLEAN('i', "include", &also, "add specified files to index for commit"),
-+#ifndef NO_PERL
- OPT_BOOLEAN(0, "interactive", &interactive, "interactively add files"),
-+#endif
- OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
- OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
- OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
-@@ -217,6 +219,7 @@
- struct path_list partial;
- const char **pathspec = NULL;
-
-+#ifndef NO_PERL
- if (interactive) {
- interactive_add(argc, argv, prefix);
- if (read_cache() < 0)
-@@ -224,6 +227,7 @@
- commit_style = COMMIT_AS_IS;
- return get_index_file();
- }
-+#endif
-
- if (read_cache() < 0)
- die("index file corrupt");
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/Makefile git-1.5.5.3/Makefile
---- git-1.5.5.3.orig/Makefile 2008-05-28 10:38:03.608016000 -0700
-+++ git-1.5.5.3/Makefile 2008-05-28 10:38:12.571288044 -0700
-@@ -130,6 +130,8 @@
- #
- # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
- # MakeMaker (e.g. using ActiveState under Cygwin).
-+
-+# Define NO_PERL if you do not want Perl scripts at all.
- #
- # Define NO_TCLTK if you do not want Tcl/Tk GUI.
- #
-@@ -255,6 +257,8 @@
- SCRIPT_SH += git-submodule.sh
- SCRIPT_SH += git-web--browse.sh
-
-+SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
-+ifndef NO_PERL
- SCRIPT_PERL += git-add--interactive.perl
- SCRIPT_PERL += git-archimport.perl
- SCRIPT_PERL += git-cvsexportcommit.perl
-@@ -263,10 +267,11 @@
- SCRIPT_PERL += git-relink.perl
- SCRIPT_PERL += git-send-email.perl
- SCRIPT_PERL += git-svn.perl
--
--SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
-- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-- git-instaweb
-+SCRIPTS += $(patsubst %.perl,%,$(SCRIPT_PERL)) \
-+ git-instaweb
-+else
-+SCRIPT_PERL =
-+endif
-
- # Empty...
- EXTRA_PROGRAMS =
-@@ -315,7 +320,10 @@
- ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS)
-
- # what 'all' will build but not install in gitexecdir
--OTHER_PROGRAMS = git$X gitweb/gitweb.cgi
-+OTHER_PROGRAMS = git$X
-+ifndef NO_PERL
-+OTHER_PROGRAMS += gitweb/gitweb.cgi
-+endif
-
- # Set paths to tools early so that they can be used for version tests.
- ifndef SHELL_PATH
-@@ -716,6 +724,10 @@
- endif
- endif
-
-+ifdef NO_PERL
-+ BASIC_CFLAGS += -DNO_PERL
-+endif
-+
- ifdef ZLIB_PATH
- BASIC_CFLAGS += -I$(ZLIB_PATH)/include
- EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib)
-@@ -896,6 +908,11 @@
- ifeq ($(TCLTK_PATH),)
- NO_TCLTK=NoThanks
- endif
-+ifeq ($(PERL_PATH),)
-+NO_PERL=NoThanks
-+export NO_PERL
-+export NO_PERL_MAKEMAKER
-+endif
-
- QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
- QUIET_SUBDIR1 =
-@@ -968,7 +985,9 @@
- $(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all
- $(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all
- endif
-+ifndef NO_PERL
- $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all
-+endif
- $(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1)
-
- strip: $(PROGRAMS) git$X
-@@ -1007,6 +1026,7 @@
- chmod +x $@+ && \
- mv $@+ $@
-
-+ifndef NO_PERL
- $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
-
- perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
-@@ -1065,6 +1085,7 @@
- $@.sh > $@+ && \
- chmod +x $@+ && \
- mv $@+ $@
-+endif # NO_PERL
-
- configure: configure.ac
- $(QUIET_GEN)$(RM) $@ $<+ && \
-@@ -1218,7 +1239,9 @@
- $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
- $(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)'
- $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
-+ifndef NO_PERL
- $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
-+endif
- ifndef NO_TCLTK
- $(MAKE) -C gitk-git install
- $(MAKE) -C git-gui install
-@@ -1307,9 +1330,11 @@
- $(RM) -r $(GIT_TARNAME) .doc-tmp-dir
- $(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
- $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
-- $(RM) gitweb/gitweb.cgi
- $(MAKE) -C Documentation/ clean
-+ifndef NO_PERL
-+ $(RM) gitweb/gitweb.cgi
- $(MAKE) -C perl clean
-+endif
- $(MAKE) -C templates/ clean
- $(MAKE) -C t/ clean
- ifndef NO_TCLTK
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/lib-git-svn.sh git-1.5.5.3/t/lib-git-svn.sh
---- git-1.5.5.3.orig/t/lib-git-svn.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/lib-git-svn.sh 2008-05-28 10:38:12.571288044 -0700
-@@ -6,6 +6,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-svn tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- GIT_DIR=$PWD/.git
- GIT_SVN_DIR=$GIT_DIR/svn/git-svn
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t5505-remote.sh git-1.5.5.3/t/t5505-remote.sh
---- git-1.5.5.3.orig/t/t5505-remote.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t5505-remote.sh 2008-05-28 10:38:12.571288044 -0700
-@@ -3,6 +3,12 @@
- test_description='git remote porcelain-ish'
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- setup_repository () {
- mkdir "$1" && (
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t7501-commit.sh git-1.5.5.3/t/t7501-commit.sh
---- git-1.5.5.3.orig/t/t7501-commit.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t7501-commit.sh 2008-05-28 10:38:12.571288044 -0700
-@@ -38,7 +38,7 @@
- "echo King of the bongo >file &&
- ! git-commit -m foo -a file"
-
--test_expect_success \
-+[ -z "$NO_PERL" ] && test_expect_success \
- "using paths with --interactive" \
- "echo bong-o-bong >file &&
- ! echo 7 | git-commit -m foo --interactive file"
-@@ -119,7 +119,7 @@
- "echo 'gak' >file && \
- git-commit -m 'author' --author 'Rubber Duck <rduck@convoy.org>' -a"
-
--test_expect_success \
-+[ -z "$NO_PERL" ] && test_expect_success \
- "interactive add" \
- "echo 7 | git-commit --interactive | grep 'What now'"
-
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t9001-send-email.sh git-1.5.5.3/t/t9001-send-email.sh
---- git-1.5.5.3.orig/t/t9001-send-email.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t9001-send-email.sh 2008-05-28 10:38:12.571288044 -0700
-@@ -2,6 +2,12 @@
-
- test_description='git-send-email'
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-send-email tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- PROG='git send-email'
- test_expect_success \
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t9200-git-cvsexportcommit.sh git-1.5.5.3/t/t9200-git-cvsexportcommit.sh
---- git-1.5.5.3.orig/t/t9200-git-cvsexportcommit.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t9200-git-cvsexportcommit.sh 2008-05-28 10:38:12.571288044 -0700
-@@ -13,6 +13,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsexportcommit tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- CVSROOT=$(pwd)/cvsroot
- CVSWORK=$(pwd)/cvswork
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t9400-git-cvsserver-server.sh git-1.5.5.3/t/t9400-git-cvsserver-server.sh
---- git-1.5.5.3.orig/t/t9400-git-cvsserver-server.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t9400-git-cvsserver-server.sh 2008-05-28 10:38:12.573745493 -0700
-@@ -17,6 +17,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsserver tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
- perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
- test_expect_success 'skipping git-cvsserver tests, Perl SQLite interface unavailable' :
- test_done
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t9500-gitweb-standalone-no-errors.sh git-1.5.5.3/t/t9500-gitweb-standalone-no-errors.sh
---- git-1.5.5.3.orig/t/t9500-gitweb-standalone-no-errors.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t9500-gitweb-standalone-no-errors.sh 2008-05-28 10:38:12.573745493 -0700
-@@ -67,6 +67,13 @@
- }
-
- . ./test-lib.sh
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping gitweb-standalone-no-errors tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-+
-
- perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
- test_expect_success 'skipping gitweb tests, perl version is too old' :
-diff -Nuar --exclude '*.orig' --exclude '*.rej' git-1.5.5.3.orig/t/t9600-cvsimport.sh git-1.5.5.3/t/t9600-cvsimport.sh
---- git-1.5.5.3.orig/t/t9600-cvsimport.sh 2008-05-28 00:56:46.000000000 -0700
-+++ git-1.5.5.3/t/t9600-cvsimport.sh 2008-05-28 10:38:12.573745493 -0700
-@@ -15,6 +15,12 @@
- test_done
- exit
- fi
-+if test -n "$NO_PERL"
-+then
-+ test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
-+ test_done
-+ exit
-+fi
-
- cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
- case "$cvsps_version" in
diff --git a/dev-util/git/files/50git-gentoo.el b/dev-util/git/files/50git-gentoo.el
deleted file mode 100644
index 42edd7714f07..000000000000
--- a/dev-util/git/files/50git-gentoo.el
+++ /dev/null
@@ -1,13 +0,0 @@
-
-;;; dev-util/git site-lisp configuration
-
-(add-to-list 'load-path "@SITELISP@")
-(autoload 'git-status "git" "Entry point into git-status mode." t)
-;;(autoload 'git-blame-mode "git-blame"
-;; "Minor mode for incremental blame for Git." t)
-
-;; GNU Emacs >=22.2 already includes vc-git.el.
-;; Enable the following only if Emacs has no GIT support.
-(unless (fboundp 'vc-git-registered)
- (add-to-list 'load-path "@SITELISP@/compat")
- (add-to-list 'vc-handled-backends 'GIT))
diff --git a/dev-util/git/files/70git-gentoo.el b/dev-util/git/files/70git-gentoo.el
deleted file mode 100644
index ed65bb489881..000000000000
--- a/dev-util/git/files/70git-gentoo.el
+++ /dev/null
@@ -1,4 +0,0 @@
-;;; git site-lisp configuration
-
-(add-to-list 'vc-handled-backends 'GIT)
-(require 'git)
diff --git a/dev-util/git/files/72git-gentoo.el b/dev-util/git/files/72git-gentoo.el
deleted file mode 100644
index 5d58165fa598..000000000000
--- a/dev-util/git/files/72git-gentoo.el
+++ /dev/null
@@ -1,11 +0,0 @@
-
-;;; dev-util/git site-lisp configuration
-
-;; GNU Emacs >=22.2 already includes vc-git.el.
-;; Enable the following only if Emacs has no GIT support.
-(unless (fboundp 'vc-git-registered)
- (add-to-list 'load-path "@SITELISP@")
- (add-to-list 'vc-handled-backends 'GIT)
- (autoload 'git-status "git" "Entry point into git-status mode." t)
- (autoload 'git-blame-mode "git-blame"
- "Minor mode for incremental blame for Git." t))
diff --git a/dev-util/git/files/git-1.5.0-symlinks.patch b/dev-util/git/files/git-1.5.0-symlinks.patch
deleted file mode 100644
index 282dee8d58b8..000000000000
--- a/dev-util/git/files/git-1.5.0-symlinks.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 084b7fe..ea297a4 100644
---- a/Makefile
-+++ b/Makefile
-@@ -901,7 +901,7 @@ install: all
- cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
- '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
- fi
-- $(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
-+ $(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
- ifneq (,$X)
- $(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
- endif
diff --git a/dev-util/git/files/git-1.5.3-symlinks.patch b/dev-util/git/files/git-1.5.3-symlinks.patch
deleted file mode 100644
index 3a4d834a2d5f..000000000000
--- a/dev-util/git/files/git-1.5.3-symlinks.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 2f3b9b2..5c595ac 100644
---- a/Makefile
-+++ b/Makefile
-@@ -997,7 +997,7 @@ endif
- cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
- '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
- fi
-- $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
-+ $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
- ifneq (,$X)
- $(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
- endif
diff --git a/dev-util/git/files/git-1.5.3.8-t9101.patch b/dev-util/git/files/git-1.5.3.8-t9101.patch
deleted file mode 100644
index 84db3adaff04..000000000000
--- a/dev-util/git/files/git-1.5.3.8-t9101.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-commit d99c74e2913ab098953bd5b422b95f39e2dcfb55
-Author: Sam Vilain <sam.vilain@catalyst.net.nz>
-Date: Fri Sep 21 14:02:34 2007 +1200
-
- git-svn: fix test for trunk svn (transaction out of date)
-
- Older svn clients did not raise a 'transaction out of date' error here, but
- trunk does - so 'svn up'.
-
- Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
- Acked-by: Eric Wong <normalperson@yhbt.net>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
-
-diff --git a/t/t9101-git-svn-props.sh b/t/t9101-git-svn-props.sh
-index 622ea1c..5aac644 100755
---- a/t/t9101-git-svn-props.sh
-+++ b/t/t9101-git-svn-props.sh
-@@ -140,6 +140,7 @@ test_expect_success 'test show-ignore' "
- cd test_wc &&
- mkdir -p deeply/nested/directory &&
- svn add deeply &&
-+ svn up &&
- svn propset -R svn:ignore 'no-such-file*' .
- svn commit -m 'propset svn:ignore'
- cd .. &&
diff --git a/dev-util/git/files/git-1.5.3.8-t9106.patch b/dev-util/git/files/git-1.5.3.8-t9106.patch
deleted file mode 100644
index b5df85f3994d..000000000000
--- a/dev-util/git/files/git-1.5.3.8-t9106.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit 8d92f24852420c425f3ee499d3c3be01be4dc15c
-Author: Eric Wong <normalperson@yhbt.net>
-Date: Wed Nov 21 00:57:33 2007 -0800
-
- t9106: fix a race condition that caused svn to miss modifications
-
- carbonated beverage noticed this test was occasionally failing.
-
- Signed-off-by: Eric Wong <normalperson@yhbt.net>
-
-diff --git a/t/t9106-git-svn-dcommit-clobber-series.sh b/t/t9106-git-svn-dcommit-clobber-series.sh
-index d59acc8..7452546 100755
---- a/t/t9106-git-svn-dcommit-clobber-series.sh
-+++ b/t/t9106-git-svn-dcommit-clobber-series.sh
-@@ -22,6 +22,7 @@ test_expect_success '(supposedly) non-conflicting change from SVN' "
- cd tmp &&
- perl -i -p -e 's/^58\$/5588/' file &&
- perl -i -p -e 's/^61\$/6611/' file &&
-+ poke file &&
- test x\"\`sed -n -e 58p < file\`\" = x5588 &&
- test x\"\`sed -n -e 61p < file\`\" = x6611 &&
- svn commit -m '58 => 5588, 61 => 6611' &&
diff --git a/dev-util/git/git-1.5.1.6.ebuild b/dev-util/git/git-1.5.1.6.ebuild
deleted file mode 100644
index 7d8eabe949e6..000000000000
--- a/dev-util/git/git-1.5.1.6.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.1.6.ebuild,v 1.16 2008/02/27 02:19:03 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="curl doc elibc_uclibc emacs gtk mozsha1 perl ppcsha1 tk webdav"
-
-DEPEND="dev-libs/openssl
- sys-libs/zlib
- !app-misc/git
- curl? ( net-misc/curl )
- webdav? ( dev-libs/expat )
- emacs? ( virtual/emacs )"
-RDEPEND="${DEPEND}
- dev-lang/perl
- perl? ( dev-perl/Error )
- tk? ( dev-lang/tk )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-S="${WORKDIR}/${MY_P}"
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
- fi
-
- myopts="${myopts} WITH_SEND_EMAIL=YesPlease"
-
- use elibc_uclibc && myopts="${myopts} NO_ICONV=YesPlease"
-
- export MY_MAKEOPTS=${myopts}
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-1.5.0-symlinks.patch
-
- sed -i \
- -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- -e 's:ln :ln -s :g' \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || die "make install failed"
-
- use tk || rm "${D}"/usr/bin/gitk
-
- doman "${WORKDIR}"/man?/*
-
- dodoc README Documentation/SubmittingPatches
- if use doc ; then
- dodoc Documentation/technical/*
- dodir /usr/share/doc/${PF}/html
- cp -r "${WORKDIR}"/{*.html,howto} "${D}"/usr/share/doc/${PF}/html
- fi
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- insinto "${SITELISP}"
- doins contrib/emacs/{,vc-}git.el*
- elisp-site-file-install "${FILESDIR}"/70git-gentoo.el
- fi
-
- if use gtk ; then
- dobin contrib/gitview/gitview
- use doc && dodoc contrib/gitview/gitview.txt
- fi
-
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- has_version dev-util/subversion || \
- MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
- has_version app-arch/unzip || \
- rm "${S}"/t/t5000-tar-tree.sh
- # Stupid CVS won't let some people commit as root
- rm "${S}"/t/t9200-git-cvsexportcommit.sh
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
- showpkgdeps git-svnimport "dev-util/subversion(USE=perl)"
- showpkgdeps git-svn "dev-util/subversion(USE=perl)" "dev-perl/libwww-perl"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
- showpkgdeps git-instaweb "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
- showpkgdeps git-send-email "USE=perl"
- showpkgdeps git-remote "USE=perl"
- echo
-}
-
-pkg_postrm() {
- # regenerate site-gentoo if we are merged USE=emacs and unmerged
- # USE=-emacs
- has_version virtual/emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.3.7-r1.ebuild b/dev-util/git/git-1.5.3.7-r1.ebuild
deleted file mode 100644
index 0df5c52284d1..000000000000
--- a/dev-util/git/git-1.5.3.7-r1.ebuild
+++ /dev/null
@@ -1,224 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.3.7-r1.ebuild,v 1.12 2008/02/01 10:46:40 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk webdav"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- dev-lang/perl
- app-arch/cpio
- tk? ( dev-lang/tk )
- curl? ( net-misc/curl )
- webdav? ( dev-libs/expat )
- emacs? ( virtual/emacs )"
-RDEPEND="${DEPEND}
- cgi? ( virtual/perl-CGI )
- perl? ( dev-perl/Error )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
- fi
-
- myopts="${myopts} WITH_SEND_EMAIL=YesPlease"
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
-
- export MY_MAKEOPTS=${myopts}
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
-
- sed -i \
- -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- -e 's:ln :ln -s :g' \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- einfo "Doing Documentation${d}"
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- newbin "${S}"/contrib/blameview/blameview.perl blameview
- newdoc "${S}"/contrib/blameview/README README.blameview
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- dodir /usr/share/${PN}/contrib
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh vim stats \
- workdir ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.{cgi,css}
- doins "${S}"/gitweb/git-{favicon,logo}.png
- docinto /
- # INSTALL discusses configuration issues, not just installation
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- has_version dev-util/subversion || \
- MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
- has_version app-arch/unzip || \
- rm "${S}"/t/t5000-tar-tree.sh
- # Stupid CVS won't let some people commit as root
- if has userpriv "${FEATURES}"; then
- einfo "Enabling CVS tests as we have FEATURES=userpriv"
- else
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- for i in t9200-git-cvsexportcommit.sh t9600-cvsimport.sh ; do
- rm "${S}"/t/${i} || die "Failed to remove ${i}"
- done
- fi
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- elog "These additional scripts need some dependencies:"
- elog "(These are also needed for FEATURES=test)"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
- showpkgdeps git-svnimport \
- "USE=perl" \
- "dev-util/subversion(USE=perl)" \
- "dev-perl/libwww-perl"
- showpkgdeps git-svn \
- "dev-util/subversion(USE=perl)" \
- "dev-perl/libwww-perl" \
- "dev-perl/TermReadKey"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
- showpkgdeps git-send-email "USE=perl"
- showpkgdeps git-remote "USE=perl"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.3.8.ebuild b/dev-util/git/git-1.5.3.8.ebuild
deleted file mode 100644
index 87ec993e795d..000000000000
--- a/dev-util/git/git-1.5.3.8.ebuild
+++ /dev/null
@@ -1,224 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.3.8.ebuild,v 1.3 2008/02/01 10:46:40 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk webdav"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- dev-lang/perl
- app-arch/cpio
- tk? ( dev-lang/tk )
- curl? ( net-misc/curl )
- webdav? ( dev-libs/expat )
- emacs? ( virtual/emacs )"
-RDEPEND="${DEPEND}
- cgi? ( virtual/perl-CGI )
- perl? ( dev-perl/Error )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
- fi
-
- myopts="${myopts} WITH_SEND_EMAIL=YesPlease"
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
-
- export MY_MAKEOPTS=${myopts}
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
- epatch "${FILESDIR}"/${P}-t9106.patch
- epatch "${FILESDIR}"/${P}-t9101.patch
-
- sed -i \
- -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- -e 's:ln :ln -s :g' \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- newbin "${S}"/contrib/blameview/blameview.perl blameview
- newdoc "${S}"/contrib/blameview/README README.blameview
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- dodir /usr/share/${PN}/contrib
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh vim stats \
- workdir ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.{cgi,css}
- doins "${S}"/gitweb/git-{favicon,logo}.png
- docinto /
- # INSTALL discusses configuration issues, not just installation
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- has_version dev-util/subversion || \
- MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
- has_version app-arch/unzip || \
- rm "${S}"/t/t5000-tar-tree.sh
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- for i in t9200-git-cvsexportcommit.sh t9600-cvsimport.sh ; do
- rm "${S}"/t/${i} || die "Failed to remove ${i}"
- done
- fi
- built_with_use dev-util/cvs server || rm "${S}"/t/t9600-cvsimport.sh
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- elog "These additional scripts need some dependencies:"
- elog "(These are also needed for FEATURES=test)"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
- showpkgdeps git-svnimport \
- "USE=perl" \
- "dev-util/subversion(USE=perl)" \
- "dev-perl/libwww-perl"
- showpkgdeps git-svn \
- "USE=perl" \
- "dev-util/subversion(USE=perl)" \
- "dev-perl/libwww-perl" \
- "dev-perl/TermReadKey"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- showpkgdeps git-send-email "USE=perl"
- showpkgdeps git-remote "USE=perl"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.4.5.ebuild b/dev-util/git/git-1.5.4.5.ebuild
deleted file mode 100644
index c69c9f5121a7..000000000000
--- a/dev-util/git/git-1.5.4.5.ebuild
+++ /dev/null
@@ -1,270 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.4.5.ebuild,v 1.9 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? ( net-misc/curl )
- webdav? ( dev-libs/expat )
- emacs? ( virtual/emacs )"
-# dev-perl/{Authen-SASL,Net-SMTP-SSL} are used by git-send-email
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- if use cgi || use cvs || use subversion ; then
- eerror "You must built dev-util/git with USE=perl and the"
- eerror "applicable USE flag to use any of the following:"
- eerror "gitweb, git-cvs*, git-svn, git-archimport, git-quiltimport"
- die "You need USE=perl to satisfy your other USE= requests!"
- fi
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
- epatch "${FILESDIR}"/20080322-${PN}-1.5.4.4-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- -e 's:ln :ln -s :g' \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh vim stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.{cgi,css}
- doins "${S}"/gitweb/git-{favicon,logo}.png
- docinto /
- # INSTALL discusses configuration issues, not just installation
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.5.3-r1.ebuild b/dev-util/git/git-1.5.5.3-r1.ebuild
deleted file mode 100644
index 9e1c4bd260e8..000000000000
--- a/dev-util/git/git-1.5.5.3-r1.ebuild
+++ /dev/null
@@ -1,280 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.5.3-r1.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080528-${PN}-1.5.5.3-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.5.3.ebuild b/dev-util/git/git-1.5.5.3.ebuild
deleted file mode 100644
index b56390a80d03..000000000000
--- a/dev-util/git/git-1.5.5.3.ebuild
+++ /dev/null
@@ -1,282 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.5.3.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? ( net-misc/curl )
- webdav? ( dev-libs/expat )
- emacs? ( virtual/emacs )"
-# dev-perl/{Authen-SASL,Net-SMTP-SSL} are used by git-send-email
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- if use cgi || use cvs || use subversion ; then
- eerror "You must built dev-util/git with USE=perl and the"
- eerror "applicable USE flag to use any of the following:"
- eerror "gitweb, git-cvs*, git-svn, git-archimport, git-quiltimport"
- die "You need USE=perl to satisfy your other USE= requests!"
- fi
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
- epatch "${FILESDIR}"/20080528-${PN}-1.5.5.3-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- -e 's:ln :ln -s :g' \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.5.4.ebuild b/dev-util/git/git-1.5.5.4.ebuild
deleted file mode 100644
index 130df120a538..000000000000
--- a/dev-util/git/git-1.5.5.4.ebuild
+++ /dev/null
@@ -1,280 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.5.4.ebuild,v 1.4 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080528-${PN}-1.5.5.3-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.6.1.ebuild b/dev-util/git/git-1.5.6.1.ebuild
deleted file mode 100644
index 6c6a3b27baf8..000000000000
--- a/dev-util/git/git-1.5.6.1.ebuild
+++ /dev/null
@@ -1,280 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.6.1.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.6.2.ebuild b/dev-util/git/git-1.5.6.2.ebuild
deleted file mode 100644
index 69722b01bc0d..000000000000
--- a/dev-util/git/git-1.5.6.2.ebuild
+++ /dev/null
@@ -1,280 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.6.2.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.6.3.ebuild b/dev-util/git/git-1.5.6.3.ebuild
deleted file mode 100644
index 42610678939a..000000000000
--- a/dev-util/git/git-1.5.6.3.ebuild
+++ /dev/null
@@ -1,280 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.6.3.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-archimport "dev-util/tla"
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.6.4.ebuild b/dev-util/git/git-1.5.6.4.ebuild
deleted file mode 100644
index 834fb35d064c..000000000000
--- a/dev-util/git/git-1.5.6.4.ebuild
+++ /dev/null
@@ -1,279 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.6.4.ebuild,v 1.12 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.5.6.5.ebuild b/dev-util/git/git-1.5.6.5.ebuild
deleted file mode 100644
index 3c47d93973c9..000000000000
--- a/dev-util/git/git-1.5.6.5.ebuild
+++ /dev/null
@@ -1,279 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.6.5.ebuild,v 1.4 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- has_version app-arch/unzip || \
- einfo "Disabling tar-tree tests" && \
- disabled="${disabled} \
- t5000-tar-tree.sh"
-
- if ! has userpriv "${FEATURES}"; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} \
- ${tests_cvs}"
- fi
-
- use cvs && \
- has_version dev-util/cvs && \
- built_with_use dev-util/cvs server || \
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])" && \
- disabled="${disabled} \
- ${tests_cvs}"
-
- use perl || \
- einfo "Disabling tests that need Perl" && \
- disabled="${disabled} \
- ${tests_perl}"
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.1.ebuild b/dev-util/git/git-1.6.0.1.ebuild
deleted file mode 100644
index 3166e4ef5891..000000000000
--- a/dev-util/git/git-1.6.0.1.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.1.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.2.ebuild b/dev-util/git/git-1.6.0.2.ebuild
deleted file mode 100644
index fc88e2737c6d..000000000000
--- a/dev-util/git/git-1.6.0.2.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.2.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.3.ebuild b/dev-util/git/git-1.6.0.3.ebuild
deleted file mode 100644
index 6561ff4d57ca..000000000000
--- a/dev-util/git/git-1.6.0.3.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.3.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.4-r1.ebuild b/dev-util/git/git-1.6.0.4-r1.ebuild
deleted file mode 100644
index 4fb0c84ff1cd..000000000000
--- a/dev-util/git/git-1.6.0.4-r1.ebuild
+++ /dev/null
@@ -1,311 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.4-r1.ebuild,v 1.5 2008/11/24 01:24:00 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=50${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
- if use subversion && has_version dev-util/subversion && built_with_use --missing false dev-util/subversion dso ; then
- ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
- ewarn "with USE=dso, there may be weird crashes in git-svn. You"
- ewarn "have been warned."
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && \
- cd "${S}"/Documentation && \
- unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
- epatch "${FILESDIR}"/20081123-git-1.6.0.4-noperl-cvsserver.patch
-
- sed -i \
- -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
- -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/git.{el,elc} || die
- elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}${SITELISP}/${PN}/compat/.nosearch"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.4-r2.ebuild b/dev-util/git/git-1.6.0.4-r2.ebuild
deleted file mode 100644
index 331fda5ca4e7..000000000000
--- a/dev-util/git/git-1.6.0.4-r2.ebuild
+++ /dev/null
@@ -1,311 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.4-r2.ebuild,v 1.1 2008/11/24 09:24:44 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=50${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
- if use subversion && has_version dev-util/subversion && built_with_use --missing false dev-util/subversion dso ; then
- ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
- ewarn "with USE=dso, there may be weird crashes in git-svn. You"
- ewarn "have been warned."
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && \
- cd "${S}"/Documentation && \
- unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
- epatch "${FILESDIR}"/20081123-git-1.6.0.4-noperl-cvsserver.patch
-
- sed -i \
- -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
- -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/git.{el,elc} || die
- elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}${SITELISP}/${PN}/compat/.nosearch"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.4.ebuild b/dev-util/git/git-1.6.0.4.ebuild
deleted file mode 100644
index 861f55594e5d..000000000000
--- a/dev-util/git/git-1.6.0.4.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.4.ebuild,v 1.3 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.0.ebuild b/dev-util/git/git-1.6.0.ebuild
deleted file mode 100644
index 8cc3743c117f..000000000000
--- a/dev-util/git/git-1.6.0.ebuild
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.0.ebuild,v 1.4 2008/11/24 01:20:46 robbat2 Exp $
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://git.or.cz/"
-SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion vim-syntax"
-
-DEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${DEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 )"
-
-SITEFILE=72${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
-
- epatch "${FILESDIR}"/20080626-git-1.5.6.1-noperl.patch
-
- sed -i \
- -e "s:^\(CFLAGS =\).*$:\1 ${CFLAGS} -Wall:" \
- -e "s:^\(LDFLAGS =\).*$:\1 ${LDFLAGS}:" \
- -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
- -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
- Makefile || die "sed failed"
-
- exportmakeopts
-}
-
-src_compile() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
- fi
- if use perl && use cgi ; then
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- prefix=/usr \
- gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
- fi
-}
-
-src_install() {
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
- die "make install failed"
-
- doman man?/*
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
- die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE}
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}"/"${SITELISP}"/${PN}/.nosearch
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- if use vim-syntax ; then
- insinto /usr/share/vim/vimfiles/syntax/
- doins contrib/vim/syntax/gitcommit.vim
- insinto /usr/share/vim/vimfiles/ftdetect/
- newins "${FILESDIR}"/vim-ftdetect-gitcommit.vim gitcommit.vim
- fi
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- if use emacs ; then
- elisp-site-regen
- elog "GNU Emacs has built-in Git support in versions greater 22.1."
- elog "You can disable the emacs USE flag for dev-util/git"
- elog "if you are using such a version."
- fi
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-util/git/git-1.6.3_rc4.ebuild b/dev-util/git/git-1.6.3_rc4.ebuild
deleted file mode 100644
index 4a3556aad9da..000000000000
--- a/dev-util/git/git-1.6.3_rc4.ebuild
+++ /dev/null
@@ -1,356 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.3_rc4.ebuild,v 1.4 2009/05/05 19:15:12 robbat2 Exp $
-
-EAPI=2
-
-inherit toolchain-funcs eutils elisp-common perl-module bash-completion
-[ "$PV" == "9999" ] && inherit git
-
-MY_PV="${PV/_rc/.rc}"
-MY_P="${PN}-${MY_PV}"
-
-DOC_VER=${MY_PV}
-
-DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
-HOMEPAGE="http://www.git-scm.com/"
-if [ "$PV" != "9999" ]; then
- SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
- mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
- doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
-else
- SRC_URI=""
- EGIT_BRANCH="master"
- EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
- # EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk threads webdav xinetd cvs subversion"
-
-# Common to both DEPEND and RDEPEND
-CDEPEND="
- !app-misc/git
- dev-libs/openssl
- sys-libs/zlib
- app-arch/cpio
- perl? ( dev-lang/perl )
- tk? ( dev-lang/tk )
- curl? (
- net-misc/curl
- webdav? ( dev-libs/expat )
- )
- emacs? ( virtual/emacs )"
-
-RDEPEND="${CDEPEND}
- perl? ( dev-perl/Error
- dev-perl/Net-SMTP-SSL
- dev-perl/Authen-SASL
- cgi? ( virtual/perl-CGI )
- cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
- subversion? ( dev-util/subversion[-dso] dev-perl/libwww-perl dev-perl/TermReadKey )
- )
- gtk? ( >=dev-python/pygtk-2.8 dev-python/gtksourceview-python )"
-
-DEPEND="${CDEPEND}"
-
-# These are needed to build the docs
-if [ "$PV" == "9999" ]; then
- DEPEND="${DEPEND}
- doc? (
- app-text/asciidoc
- app-text/xmlto
- app-text/docbook2X
- )"
-fi
-
-SITEFILE=50${PN}-gentoo.el
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use perl ; then
- use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
- use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
- use subversion && ewarn "git-svn needs USE=perl, it won't work"
- fi
- if use webdav && ! use curl ; then
- ewarn "USE=webdav needs USE=curl. Ignoring"
- fi
- if use subversion && has_version dev-util/subversion && built_with_use --missing false dev-util/subversion dso ; then
- ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
- ewarn "with USE=dso, there may be weird crashes in git-svn. You"
- ewarn "have been warned."
- fi
-}
-
-# This is needed because for some obscure reasons future calls to make don't
-# pick up these exports if we export them in src_unpack()
-exportmakeopts() {
- local myopts
-
- if use mozsha1 ; then
- myopts="${myopts} MOZILLA_SHA1=YesPlease"
- elif use ppcsha1 ; then
- myopts="${myopts} PPC_SHA1=YesPlease"
- fi
-
- if use curl ; then
- use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
- else
- myopts="${myopts} NO_CURL=YesPlease"
- fi
-
- use iconv || myopts="${myopts} NO_ICONV=YesPlease"
- use tk || myopts="${myopts} NO_TCLTK=YesPlease"
- use perl || myopts="${myopts} NO_PERL=YesPlease"
- use threads && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
- use subversion || myopts="${myopts} NO_SVN_TESTS=YesPlease"
-
- export MY_MAKEOPTS="${myopts}"
-}
-
-src_unpack() {
- if [ "${PV}" != "9999" ]; then
- unpack ${MY_P}.tar.bz2
- cd "${S}"
- unpack ${PN}-manpages-${DOC_VER}.tar.bz2
- use doc && \
- cd "${S}"/Documentation && \
- unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
- cd "${S}"
- else
- git_src_unpack
- cd "${S}"
- #cp "${FILESDIR}"/GIT-VERSION-GEN .
- fi
-
-}
-
-src_prepare() {
- # Noperl is being merged to upstream as of 2009/04/05
- #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
-
- # GetOpt-Long v2.38 is strict
- epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
-
- sed -i \
- -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
- -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
- -e 's:^\(CC = \).*$:\1$(OPTCC):' \
- -e 's:^\(AR = \).*$:\1$(OPTAR):' \
- Makefile || die "sed failed"
-
- # Fix docbook2texi command
- sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
- Documentation/Makefile || die "sed failed"
-}
-
-git_emake() {
- emake ${MY_MAKEOPTS} \
- DESTDIR="${D}" \
- OPTCFLAGS="${CFLAGS}" \
- OPTLDFLAGS="${LDFLAGS}" \
- OPTCC="$(tc-getCC)" \
- OPTAR="$(tc-getAR)" \
- prefix=/usr \
- htmldir=/usr/share/doc/${PF}/html \
- "$@"
-}
-
-src_configure() {
- exportmakeopts
-}
-
-src_compile() {
- git_emake || die "emake failed"
-
- if use emacs ; then
- elisp-compile contrib/emacs/git{,-blame}.el \
- || die "emacs modules failed"
- fi
-
- if use perl && use cgi ; then
- git_emake \
- gitweb/gitweb.cgi \
- || die "emake gitweb/gitweb.cgi failed"
- fi
-
- if [[ "$PV" == "9999" ]] && use doc; then
- cd Documentation
- git_emake man info html \
- || die "emake man html info failed"
- fi
-}
-
-src_install() {
- git_emake \
- install || \
- die "make install failed"
-
- doman man?/*.[157] Documentation/*.[157]
-
- dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
- use doc && dodir /usr/share/doc/${PF}/html
- for d in / /howto/ /technical/ ; do
- docinto ${d}
- dodoc Documentation${d}*.txt
- use doc && dohtml -p ${d} Documentation${d}*.html
- done
- docinto /
-
- dobashcompletion contrib/completion/git-completion.bash ${PN}
-
- if use emacs ; then
- elisp-install ${PN} contrib/emacs/git.{el,elc} || die
- elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
- #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
- # don't add automatically to the load-path, so the sitefile
- # can do a conditional loading
- touch "${D}${SITELISP}/${PN}/compat/.nosearch"
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
- fi
-
- if use gtk ; then
- dobin "${S}"/contrib/gitview/gitview
- dodoc "${S}"/contrib/gitview/gitview.txt
- fi
-
- dobin contrib/fast-import/git-p4
- dodoc contrib/fast-import/git-p4.txt
- newbin contrib/fast-import/import-tars.perl import-tars
-
- dodir /usr/share/${PN}/contrib
- # The following are excluded:
- # svnimport - use git-svn
- # p4import - excluded because fast-import has a better one
- # examples - these are stuff that is not used in Git anymore actually
- # patches - stuff the Git guys made to go upstream to other places
- for i in continuous fast-import hg-to-git \
- hooks remotes2config.sh stats \
- workdir convert-objects blameview ; do
- cp -rf \
- "${S}"/contrib/${i} \
- "${D}"/usr/share/${PN}/contrib \
- || die "Failed contrib ${i}"
- done
-
- if use perl && use cgi ; then
- dodir /usr/share/${PN}/gitweb
- insinto /usr/share/${PN}/gitweb
- doins "${S}"/gitweb/gitweb.cgi
- doins "${S}"/gitweb/gitweb.css
- doins "${S}"/gitweb/git-{favicon,logo}.png
-
- # Make sure it can run
- fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
-
- # INSTALL discusses configuration issues, not just installation
- docinto /
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
- newdoc "${S}"/gitweb/README README.gitweb
-
- find "${D}"/usr/lib64/perl5/ \
- -name .packlist \
- -exec rm \{\} \;
- fi
- if ! use subversion ; then
- rm -f "${D}"/usr/libexec/git-core/git-svn \
- "${D}"/usr/share/man/man1/git-svn.1*
- fi
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon
- fi
-
- newinitd "${FILESDIR}"/git-daemon.initd git-daemon
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon
-
- fixlocalpod
-}
-
-src_test() {
- local disabled=""
- local tests_cvs="t9200-git-cvsexportcommit.sh \
- t9400-git-cvsserver-server.sh \
- t9600-cvsimport.sh"
- local tests_perl="t5502-quickfetch.sh \
- t5512-ls-remote.sh \
- t5520-pull.sh"
-
- # Unzip is used only for the testcase code, not by any normal parts of Git.
- if ! has_version app-arch/unzip ; then
- einfo "Disabling tar-tree tests"
- disabled="${disabled} t5000-tar-tree.sh"
- fi
-
- cvs=0
- use cvs && let cvs=$cvs+1
- if ! has userpriv "${FEATURES}"; then
- if [[ $cvs -eq 1 ]]; then
- ewarn "Skipping CVS tests because CVS does not work as root!"
- ewarn "You should retest with FEATURES=userpriv!"
- disabled="${disabled} ${tests_cvs}"
- fi
- # Bug #225601 - t0004 is not suitable for root perm
- # Bug #219839 - t1004 is not suitable for root perm
- disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
- else
- [[ $cvs -gt 0 ]] && \
- has_version dev-util/cvs && \
- let cvs=$cvs+1
- [[ $cvs -gt 0 ]] && \
- built_with_use dev-util/cvs server && \
- let cvs=$cvs+1
- if [[ $cvs -lt 3 ]]; then
- einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
- disabled="${disabled} ${tests_cvs}"
- fi
- fi
-
- if ! use perl ; then
- einfo "Disabling tests that need Perl"
- disabled="${disabled} ${tests_perl}"
- fi
-
- # Reset all previously disabled tests
- cd "${S}/t"
- for i in *.sh.DISABLED ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
- done
- einfo "Disabled tests:"
- for i in ${disabled} ; do
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
- done
- cd "${S}"
- # Now run the tests
- einfo "Start test run"
- git_emake \
- test || die "tests failed"
-}
-
-showpkgdeps() {
- local pkg=$1
- shift
- elog " $(printf "%-17s:" ${pkg}) ${@}"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
- if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
- ewarn "You must build dev-util/subversion with USE=perl"
- ewarn "to get the full functionality of git-svn!"
- fi
- elog "These additional scripts need some dependencies:"
- echo
- showpkgdeps git-quiltimport "dev-util/quilt"
- showpkgdeps git-instaweb \
- "|| ( www-servers/lighttpd www-servers/apache )"
- echo
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}