Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: dev-vcs/git/
Date: Thu, 29 Dec 2011 22:57:57
Message-Id: 20425133b92f51bf663976d1de392b39dc9b9d6e.blueness@gentoo
1 commit: 20425133b92f51bf663976d1de392b39dc9b9d6e
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 22:55:43 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 22:55:43 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=20425133
7
8 dev-vcs/git: added working version 1.7.0.4
9
10 (Portage version: 2.1.10.41/git/Linux x86_64, signed Manifest commit with key 0xD0455535)
11
12 ---
13 dev-vcs/git/git-1.7.0.4.ebuild | 65 ++++++++++++++++++++++++++++++++++++++++
14 dev-vcs/git/metadata.xml | 31 +++++++++++++++++++
15 2 files changed, 96 insertions(+), 0 deletions(-)
16
17 diff --git a/dev-vcs/git/git-1.7.0.4.ebuild b/dev-vcs/git/git-1.7.0.4.ebuild
18 new file mode 100644
19 index 0000000..7a1db49
20 --- /dev/null
21 +++ b/dev-vcs/git/git-1.7.0.4.ebuild
22 @@ -0,0 +1,65 @@
23 +# Copyright 1999-2010 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/Attic/git-1.7.0.4.ebuild,v 1.4 2010/07/30 21:01:32 robbat2 dead $
26 +
27 +EAPI="4"
28 +
29 +inherit toolchain-funcs
30 +
31 +DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
32 +HOMEPAGE="http://www.git-scm.com/"
33 +SRC_URI="http://dev.gentoo.org/~blueness/misc/${P}.tgz"
34 +KEYWORDS="~amd64 ~x86"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +IUSE=""
39 +
40 +RDEPEND="sys-libs/zlib"
41 +DEPEND="${RDEPEND}
42 + app-arch/cpio"
43 +
44 +src_prepare() {
45 + sed -i \
46 + -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
47 + -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
48 + -e 's:^\(CC = \).*$:\1$(OPTCC):' \
49 + -e 's:^\(AR = \).*$:\1$(OPTAR):' \
50 + Makefile || die "sed failed"
51 +
52 + sed -i \
53 + -e '/private-Error.pm/s,^,#,' \
54 + perl/Makefile.PL
55 +
56 + sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
57 + Documentation/Makefile || die "sed failed"
58 +
59 +}
60 +
61 +git_emake() {
62 + emake ${MY_MAKEOPTS} \
63 + DESTDIR="${D}" \
64 + OPTCFLAGS="${CFLAGS}" \
65 + OPTLDFLAGS="${LDFLAGS}" \
66 + OPTCC="$(tc-getCC)" \
67 + OPTAR="$(tc-getAR)" \
68 + prefix=/usr \
69 + "$@"
70 +}
71 +
72 +src_configure() {
73 + local myopts
74 +
75 + [[ "${CHOST}" == *-uclibc* ]] && \
76 + myopts="${myopts} NO_NSEC=YesPlease"
77 +
78 + export MY_MAKEOPTS="${myopts}"
79 +}
80 +
81 +src_compile() {
82 + git_emake
83 +}
84 +
85 +src_install() {
86 + git_emake install
87 +}
88
89 diff --git a/dev-vcs/git/metadata.xml b/dev-vcs/git/metadata.xml
90 new file mode 100644
91 index 0000000..85188db
92 --- /dev/null
93 +++ b/dev-vcs/git/metadata.xml
94 @@ -0,0 +1,31 @@
95 +<?xml version="1.0" encoding="UTF-8"?>
96 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
97 +<pkgmetadata>
98 + <maintainer>
99 + <email>robbat2@g.o</email>
100 + <name>Robin H. Johnson</name>
101 + </maintainer>
102 + <longdescription lang="en">
103 + Git - Fast Version Control System. Official titled
104 + "GIT - the stupid content tracker".
105 +
106 + Git is a popular version control system designed to handle very large
107 + projects with speed and efficiency; it is used mainly for various open
108 + source projects, most notably the Linux kernel.
109 +
110 + Git falls in the category of distributed source code management tools,
111 + similar to e.g. GNU Arch or Monotone (or BitKeeper in the proprietary
112 + world). Every Git working directory is a full-fledged repository with full
113 + revision tracking capabilities, not dependent on network access or a central
114 + server.
115 + </longdescription>
116 + <use>
117 + <flag name="cgi">Install gitweb too</flag>
118 + <flag name="mozsha1">Makes git use an optimized SHA1 routine from Mozilla that should be fast on non-x86 machines.</flag>
119 + <flag name="blksha1">Use the new optimized SHA1 implementation.</flag>
120 + <flag name="ppcsha1">Make use of a bundled routine that is optimized for the PPC arch.</flag>
121 + <flag name="webdav">Adds support for push'ing to HTTP repositories via DAV.</flag>
122 + <flag name="gtk">Include the gitview contrib tool.</flag>
123 + <flag name="subversion">Include git-svn for <pkg>dev-vcs/subversion</pkg> support.</flag>
124 + </use>
125 +</pkgmetadata>