1 |
commit: 1ed9e9a7ec2e0a91196a2639cf4ef166427dad46 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 07:09:55 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 07:09:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed9e9a7 |
7 |
|
8 |
dev-vcs/git: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-vcs/git/Manifest | 3 - |
13 |
dev-vcs/git/git-2.13.2.ebuild | 677 ------------------------------------------ |
14 |
2 files changed, 680 deletions(-) |
15 |
|
16 |
diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest |
17 |
index 1748616c411..1cdf367e3c5 100644 |
18 |
--- a/dev-vcs/git/Manifest |
19 |
+++ b/dev-vcs/git/Manifest |
20 |
@@ -1,12 +1,9 @@ |
21 |
DIST git-2.13.0.tar.xz 4744388 SHA256 4bbf2ab6f2341253a38f95306ec7936833eb1c42572da5c1fa61f0abb2191258 SHA512 709e78ce1a7396c021af5802a89cd4a90802781c4ce4408af50ad8d11a5fc394a108ef24843fb901321e2e0597018111414443ce0d166ca5b1475db503246372 WHIRLPOOL ba5c6b247ea5a92460a90f36920602b2c8134892d8d94291c8a4aac8012d560a5404a2819f33a23b927c7f0435bd928d54265ce182066ccce902e2d85f27e0d8 |
22 |
-DIST git-2.13.2.tar.xz 4751380 SHA256 0d10ac3751466f81652b62cbda83cc8d8ffd014911462138e039f176e413dde5 SHA512 07d78ab867179db75738863edf119662b28ea0b15416861cc447d8af1d9d61930873ba5d19205cf3f274aeeedc980acd4c3aceb89633f90c92d84a87216aa1c1 WHIRLPOOL db70baa5aa36dd1fb9dee75e0b6cbbc28a18a593bc6fd1f00c8cc542a7fa559c280d7cff55438f2590ebc996837efd8d4ada722dac1aa974abc60526849cc6ba |
23 |
DIST git-2.13.3.tar.xz 4754532 SHA256 91aa23be428f67eb19616f43fa0229d567e9acf4f08fba33eb0b627e4d323e62 SHA512 8a8db4d675c9d8d0e834620c5c7ce7937edd7f4bf1d8a176e1218e5773960e2635c48cb931dfe206b237e2da8371e521acf9c2776847605bea13f8a7304c9f9b WHIRLPOOL 117f84d13f9a6366f5323c136df0ae7aef7d038bb34c392f9852c5e38d2b98535a5ea9e77985aa0b25939eafc4a1441655bd38af007bb832e847ec4c6bcf4c69 |
24 |
DIST git-2.13.4.tar.xz 4755472 SHA256 371a592a52d240a6350d4ec6b63cd8301e1fab6dd03388a339a8c7429305afda SHA512 dbe6c08a6cb4931f0d1c16dabc23595c8e328a397552817ceb29cb1bf38f546e3a6ec9943db06e3adb39b15772f9e79e94c08fb4cd1f1807663602cb132983f5 WHIRLPOOL 449426e629fb722a77bbaf4ca1a11d3712e82e31286f27d67b682cab9e712850e21db5f76beaa201a82c5e9dbf246a6008deeeb20c2b568f0280f8d33731fbcb |
25 |
DIST git-htmldocs-2.13.0.tar.xz 1107480 SHA256 d5ddfb8eedd5a53c0e46e183ed1513dbdd4f5d5e7ef6624040ba0b7381221e3a SHA512 053b3584b1bdb6968ce54d97d9c58ec221c604f90c3953c9e850009e9263e71bf970f0f268a35769ea4f0e617811297bc771c20eefab8e600a22d1f4efe7f675 WHIRLPOOL fb5f37a95fc459dd96a8d811103886c0c308df38f57a63fa5b3db3e9d51c6024cab79df7a9e86772ce6a6b388546166a39a531e47773459482aa97502733dc2e |
26 |
-DIST git-htmldocs-2.13.2.tar.xz 1109048 SHA256 54f0d36d375e7f71441994e60c18b6e2cc43581d5827e806e0bddb6904e17dfc SHA512 95fa6d14b7fa9548a8f9a39dcbd9099684949b6e2519b1478fcebe5e3bba32f87ff8a30d10d27464d7c750231284123efc0f7a52f15c8fcf0e8e3d7948730b3e WHIRLPOOL b53758892d34b1ca332055a3d3ee6127574191e241ebe64904b25727c3ef28bfdb032eacf24ddce507720fb55d446ab208d885858784f5ecba373d534db9097a |
27 |
DIST git-htmldocs-2.13.3.tar.xz 1109392 SHA256 c5f8ad546724b8712286dd7814ea46abf829b14f2de8f6e565b8775469880c66 SHA512 6ac9bd2f401bc3330d5a23a4f48afbe224c6d558154281737f6cd83b8ae6b73c32e7fcb491c642f926a9c5f95019964cbe7902c0ec18456b53847fd6c3b7e292 WHIRLPOOL cef80aa25644993fc95458fedcfde2672da22b8d9e5853e4149cc0196782812008f2876c32f6e857abc65d30545767c9b822913f42b1470342b72a7573347d90 |
28 |
DIST git-htmldocs-2.13.4.tar.xz 1109720 SHA256 1dbb459cf47f0023456fde9d0155aa858540479e258fbf2c808c5c4fd9f44f93 SHA512 571c3366f35265e041403300dee37e518cd6a5812eeb670b7297b0c29c8fe4eaba405c5f68b38ff3dbd672b5697c5524c025106fb24df156644e73cf792e4708 WHIRLPOOL c9ec8b2dfbb22b4227e7032cd1ed8da6a52653b6e30cd8802320f160afda12d754927f9f388bfd32a1760f18aff06c834d9516ac74c08b6b26b3d3b1ea2446c8 |
29 |
DIST git-manpages-2.13.0.tar.xz 407460 SHA256 8414f9c62e2b099cd0ea2ca22c55fb6538b13fc7a3ed1508fb9881aae42a97c9 SHA512 175ec2cd9293eedfbdb70445e19966f1dabdbf86beb220b3ed74862a36036101497bf9f322c3635e57bfcb7d2ce9d5efe8bdd6bb3ad73563dfa283c48da6bd1c WHIRLPOOL 11ba557437a2a93327406d3dfb69586668a0a34e20265bbb3053c10b1b37b5ad19fa66d9b0c2188268837acb5d56bd211bb763e0dc1ee8edfda5422b60cb4ed2 |
30 |
-DIST git-manpages-2.13.2.tar.xz 407684 SHA256 30e1e1313000eb81f0e348e5083758a33703941a60ab111057b46c3dad968b6e SHA512 9b205df22bdd021d3379d95495658e3a679cf2a870c529f757896650bec065ae53bb23404737a11b4f52ff8d3044b71fc27abdeda66895a6fe879db089258416 WHIRLPOOL b65a2aaa4ef7e8363c5b50188bdbe2d368e9d1891ef2da4896dde0eac34307874bbdd6bc4ff3d180f9ab5a35a18d179da3bdeda0e0c1a718dd8ddcd04ebc6f18 |
31 |
DIST git-manpages-2.13.3.tar.xz 407640 SHA256 1128db0302a41b55132bfd507863a7921b995d9ad308396ff2c4ca91177481c2 SHA512 9c81335f3d882df1220801ea6fdedea90533c904a1e4dd0394b42721aa31392e6c923568a81c05479fe77a89a974e02fd40b4bcff397c4f739306ba4cb874501 WHIRLPOOL f735c2657fd63a2b7b8bca5e511c789680b615f519ac1d9aa7b67c0aead5607f534021494a03ade9752274c932a22eb82457d243c5328d3dbe8613ac44e8c595 |
32 |
DIST git-manpages-2.13.4.tar.xz 407656 SHA256 674fa9a299cbcb91e49affd7dfd69952be1ee88cb7a3d5ee5b294e7da29b5d52 SHA512 ac6bb226a9425f8b949fe6eaf82ccc620264bf866308557906bff49e9c894c7ab9cb13351461db2fd073bb5835653dbaa6bb32487e40033d943d8f16e9a55701 WHIRLPOOL c873be52695a6b9df75b783331620ad98c3b2db9ed74e204250cff1f6807157f063fb6c25da86f9aeb66fcf0978d9d0693d4f286c8f68e6efa4473ea6dde2f21 |
33 |
|
34 |
diff --git a/dev-vcs/git/git-2.13.2.ebuild b/dev-vcs/git/git-2.13.2.ebuild |
35 |
deleted file mode 100644 |
36 |
index f58a551ff7b..00000000000 |
37 |
--- a/dev-vcs/git/git-2.13.2.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,677 +0,0 @@ |
40 |
-# Copyright 1999-2017 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
- |
43 |
-EAPI=6 |
44 |
- |
45 |
-GENTOO_DEPEND_ON_PERL=no |
46 |
- |
47 |
-# bug #329479: git-remote-testgit is not multiple-version aware |
48 |
-PYTHON_COMPAT=( python2_7 ) |
49 |
-[[ ${PV} == *9999 ]] && SCM="git-r3" |
50 |
-# Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches. |
51 |
-# See https://git-scm.com/docs/gitworkflows#_graduation |
52 |
-# In order of stability: |
53 |
-# 9999-r0: maint |
54 |
-# 9999-r1: master |
55 |
-# 9999-r2: next |
56 |
-# 9999-r3: pu |
57 |
-EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
58 |
-EGIT_BRANCH=maint |
59 |
-PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN" |
60 |
- |
61 |
-inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM} |
62 |
- |
63 |
-MY_PV="${PV/_rc/.rc}" |
64 |
-MY_P="${PN}-${MY_PV}" |
65 |
- |
66 |
-DOC_VER=${MY_PV} |
67 |
- |
68 |
-DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency" |
69 |
-HOMEPAGE="http://www.git-scm.com/" |
70 |
-if [[ ${PV} != *9999 ]]; then |
71 |
- SRC_URI_SUFFIX="xz" |
72 |
- SRC_URI_KORG="mirror://kernel/software/scm/git" |
73 |
- [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing' |
74 |
- SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX} |
75 |
- ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
76 |
- doc? ( |
77 |
- ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
78 |
- )" |
79 |
- [[ "${PV}" = *_rc* ]] || \ |
80 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
81 |
-fi |
82 |
- |
83 |
-LICENSE="GPL-2" |
84 |
-SLOT="0" |
85 |
-IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg highlight +iconv libressl mediawiki mediawiki-experimental +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test" |
86 |
- |
87 |
-# Common to both DEPEND and RDEPEND |
88 |
-CDEPEND=" |
89 |
- gnome-keyring? ( app-crypt/libsecret ) |
90 |
- !libressl? ( dev-libs/openssl:0= ) |
91 |
- libressl? ( dev-libs/libressl:= ) |
92 |
- sys-libs/zlib |
93 |
- pcre? ( dev-libs/libpcre ) |
94 |
- perl? ( dev-lang/perl:=[-build(-)] ) |
95 |
- tk? ( dev-lang/tk:0= ) |
96 |
- curl? ( |
97 |
- net-misc/curl |
98 |
- webdav? ( dev-libs/expat ) |
99 |
- ) |
100 |
- emacs? ( virtual/emacs ) |
101 |
-" |
102 |
- |
103 |
-RDEPEND="${CDEPEND} |
104 |
- gpg? ( app-crypt/gnupg ) |
105 |
- mediawiki? ( |
106 |
- dev-perl/DateTime-Format-ISO8601 |
107 |
- dev-perl/HTML-Tree |
108 |
- dev-perl/MediaWiki-API |
109 |
- ) |
110 |
- perl? ( dev-perl/Error |
111 |
- dev-perl/Net-SMTP-SSL |
112 |
- dev-perl/Authen-SASL |
113 |
- cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) ) |
114 |
- cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite ) |
115 |
- subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
116 |
- ) |
117 |
- python? ( ${PYTHON_DEPS} ) |
118 |
-" |
119 |
- |
120 |
-# This is how info docs are created with Git: |
121 |
-# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
122 |
-# .xml/docbook --(docbook2texi.pl)--> .texi |
123 |
-# .texi --(makeinfo)---------> .info |
124 |
-DEPEND="${CDEPEND} |
125 |
- doc? ( |
126 |
- app-text/asciidoc |
127 |
- app-text/docbook2X |
128 |
- sys-apps/texinfo |
129 |
- app-text/xmlto |
130 |
- ) |
131 |
- nls? ( sys-devel/gettext ) |
132 |
- test? ( app-crypt/gnupg )" |
133 |
- |
134 |
-# Live ebuild builds man pages and HTML docs, additionally |
135 |
-if [[ ${PV} == *9999 ]]; then |
136 |
- DEPEND="${DEPEND} |
137 |
- app-text/asciidoc" |
138 |
-fi |
139 |
- |
140 |
-SITEFILE=50${PN}-gentoo.el |
141 |
-S="${WORKDIR}/${MY_P}" |
142 |
- |
143 |
-REQUIRED_USE=" |
144 |
- cgi? ( perl ) |
145 |
- cvs? ( perl ) |
146 |
- mediawiki? ( perl ) |
147 |
- mediawiki-experimental? ( mediawiki ) |
148 |
- subversion? ( perl ) |
149 |
- webdav? ( curl ) |
150 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
151 |
-" |
152 |
- |
153 |
-PATCHES=( |
154 |
- # bug #350330 - automagic CVS when we don't want it is bad. |
155 |
- "${FILESDIR}"/git-2.12.0-optional-cvs.patch |
156 |
- |
157 |
- # install mediawiki perl modules also in vendor_dir |
158 |
- # hack, needs better upstream solution |
159 |
- "${FILESDIR}"/git-1.8.5-mw-vendor.patch |
160 |
- |
161 |
- "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch |
162 |
- |
163 |
- # Bug #493306, where FreeBSD 10.x merged libiconv into its libc. |
164 |
- "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch |
165 |
-) |
166 |
- |
167 |
-pkg_setup() { |
168 |
- if use subversion && has_version "dev-vcs/subversion[dso]"; then |
169 |
- ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
170 |
- ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
171 |
- ewarn "have been warned." |
172 |
- fi |
173 |
- if use python ; then |
174 |
- python-single-r1_pkg_setup |
175 |
- fi |
176 |
-} |
177 |
- |
178 |
-# This is needed because for some obscure reasons future calls to make don't |
179 |
-# pick up these exports if we export them in src_unpack() |
180 |
-exportmakeopts() { |
181 |
- local myopts |
182 |
- |
183 |
- if use blksha1 ; then |
184 |
- myopts+=" BLK_SHA1=YesPlease" |
185 |
- elif use ppcsha1 ; then |
186 |
- myopts+=" PPC_SHA1=YesPlease" |
187 |
- fi |
188 |
- |
189 |
- if use curl ; then |
190 |
- use webdav || myopts+=" NO_EXPAT=YesPlease" |
191 |
- else |
192 |
- myopts+=" NO_CURL=YesPlease" |
193 |
- fi |
194 |
- |
195 |
- # broken assumptions, because of broken build system ... |
196 |
- myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
197 |
- myopts+=" INSTALL=install TAR=tar" |
198 |
- myopts+=" SHELL_PATH=${EPREFIX}/bin/sh" |
199 |
- myopts+=" SANE_TOOL_PATH=" |
200 |
- myopts+=" OLD_ICONV=" |
201 |
- myopts+=" NO_EXTERNAL_GREP=" |
202 |
- |
203 |
- # For svn-fe |
204 |
- extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')" |
205 |
- |
206 |
- # can't define this to null, since the entire makefile depends on it |
207 |
- sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
208 |
- |
209 |
- use iconv \ |
210 |
- || myopts+=" NO_ICONV=YesPlease" |
211 |
- use nls \ |
212 |
- || myopts+=" NO_GETTEXT=YesPlease" |
213 |
- use tk \ |
214 |
- || myopts+=" NO_TCLTK=YesPlease" |
215 |
- use pcre \ |
216 |
- && myopts+=" USE_LIBPCRE=yes" \ |
217 |
- && extlibs+=" -lpcre" |
218 |
- use perl \ |
219 |
- && myopts+=" INSTALLDIRS=vendor" \ |
220 |
- || myopts+=" NO_PERL=YesPlease" |
221 |
- use python \ |
222 |
- || myopts+=" NO_PYTHON=YesPlease" |
223 |
- use subversion \ |
224 |
- || myopts+=" NO_SVN_TESTS=YesPlease" |
225 |
- use threads \ |
226 |
- && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \ |
227 |
- || myopts+=" NO_PTHREADS=YesPlease" |
228 |
- use cvs \ |
229 |
- || myopts+=" NO_CVS=YesPlease" |
230 |
- use elibc_musl \ |
231 |
- && myopts+=" NO_REGEX=YesPlease" |
232 |
-# Disabled until ~m68k-mint can be keyworded again |
233 |
-# if [[ ${CHOST} == *-mint* ]] ; then |
234 |
-# myopts+=" NO_MMAP=YesPlease" |
235 |
-# myopts+=" NO_IPV6=YesPlease" |
236 |
-# myopts+=" NO_STRLCPY=YesPlease" |
237 |
-# myopts+=" NO_MEMMEM=YesPlease" |
238 |
-# myopts+=" NO_MKDTEMP=YesPlease" |
239 |
-# myopts+=" NO_MKSTEMPS=YesPlease" |
240 |
-# fi |
241 |
- if [[ ${CHOST} == ia64-*-hpux* ]]; then |
242 |
- myopts+=" NO_NSEC=YesPlease" |
243 |
- fi |
244 |
- if [[ ${CHOST} == *-*-aix* ]]; then |
245 |
- myopts+=" NO_FNMATCH_CASEFOLD=YesPlease" |
246 |
- fi |
247 |
- if [[ ${CHOST} == *-solaris* ]]; then |
248 |
- myopts+=" NEEDS_LIBICONV=YesPlease" |
249 |
- myopts+=" HAVE_CLOCK_MONOTONIC=1" |
250 |
- myopts+=" HAVE_GETDELIM=1" |
251 |
- fi |
252 |
- |
253 |
- has_version '>=app-text/asciidoc-8.0' \ |
254 |
- && myopts+=" ASCIIDOC8=YesPlease" |
255 |
- myopts+=" ASCIIDOC_NO_ROFF=YesPlease" |
256 |
- |
257 |
- # Bug 290465: |
258 |
- # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
259 |
- [[ "${CHOST}" == *-uclibc* ]] && \ |
260 |
- myopts+=" NO_NSEC=YesPlease" |
261 |
- |
262 |
- export MY_MAKEOPTS="${myopts}" |
263 |
- export EXTLIBS="${extlibs}" |
264 |
-} |
265 |
- |
266 |
-src_unpack() { |
267 |
- if [[ ${PV} != *9999 ]]; then |
268 |
- unpack ${MY_P}.tar.${SRC_URI_SUFFIX} |
269 |
- cd "${S}" |
270 |
- unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
271 |
- use doc && \ |
272 |
- cd "${S}"/Documentation && \ |
273 |
- unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
274 |
- cd "${S}" |
275 |
- else |
276 |
- git-r3_src_unpack |
277 |
- cd "${S}" |
278 |
- #cp "${FILESDIR}"/GIT-VERSION-GEN . |
279 |
- fi |
280 |
- |
281 |
-} |
282 |
- |
283 |
-src_prepare() { |
284 |
- # add experimental patches to improve mediawiki support |
285 |
- # see patches for origin |
286 |
- if use mediawiki-experimental ; then |
287 |
- PATCHES+=( |
288 |
- "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch |
289 |
- "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch |
290 |
- "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch |
291 |
- ) |
292 |
- fi |
293 |
- |
294 |
- default |
295 |
- |
296 |
- sed -i \ |
297 |
- -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
298 |
- -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \ |
299 |
- -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \ |
300 |
- -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \ |
301 |
- -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
302 |
- -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
303 |
- Makefile contrib/svn-fe/Makefile || die "sed failed" |
304 |
- |
305 |
- # Never install the private copy of Error.pm (bug #296310) |
306 |
- sed -i \ |
307 |
- -e '/private-Error.pm/s,^,#,' \ |
308 |
- perl/Makefile.PL |
309 |
- |
310 |
- # Fix docbook2texi command |
311 |
- sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \ |
312 |
- Documentation/Makefile || die "sed failed" |
313 |
- |
314 |
- # Fix git-subtree missing DESTDIR |
315 |
- sed -i \ |
316 |
- -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \ |
317 |
- -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \ |
318 |
- contrib/subtree/Makefile |
319 |
-} |
320 |
- |
321 |
-git_emake() { |
322 |
- # bug #326625: PERL_PATH, PERL_MM_OPT |
323 |
- # bug #320647: PYTHON_PATH |
324 |
- PYTHON_PATH="" |
325 |
- use python && PYTHON_PATH="${PYTHON}" |
326 |
- emake ${MY_MAKEOPTS} \ |
327 |
- DESTDIR="${D}" \ |
328 |
- OPTCFLAGS="${CFLAGS}" \ |
329 |
- OPTLDFLAGS="${LDFLAGS}" \ |
330 |
- OPTCC="$(tc-getCC)" \ |
331 |
- OPTAR="$(tc-getAR)" \ |
332 |
- prefix="${EPREFIX}"/usr \ |
333 |
- htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
334 |
- sysconfdir="${EPREFIX}"/etc \ |
335 |
- PYTHON_PATH="${PYTHON_PATH}" \ |
336 |
- PERL_MM_OPT="" \ |
337 |
- GIT_TEST_OPTS="--no-color" \ |
338 |
- V=1 \ |
339 |
- "$@" |
340 |
- # This is the fix for bug #326625, but it also causes breakage, see bug |
341 |
- # #352693. |
342 |
- # PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
343 |
-} |
344 |
- |
345 |
-src_configure() { |
346 |
- exportmakeopts |
347 |
-} |
348 |
- |
349 |
-src_compile() { |
350 |
- if use perl ; then |
351 |
- git_emake perl/PM.stamp || die "emake perl/PM.stamp failed" |
352 |
- git_emake perl/perl.mak || die "emake perl/perl.mak failed" |
353 |
- fi |
354 |
- git_emake || die "emake failed" |
355 |
- |
356 |
- if use emacs ; then |
357 |
- elisp-compile contrib/emacs/git{,-blame}.el |
358 |
- fi |
359 |
- |
360 |
- if use perl && use cgi ; then |
361 |
- git_emake \ |
362 |
- gitweb \ |
363 |
- || die "emake gitweb (cgi) failed" |
364 |
- fi |
365 |
- |
366 |
- if [[ ${CHOST} == *-darwin* ]]; then |
367 |
- cd "${S}"/contrib/credential/osxkeychain || die |
368 |
- git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ |
369 |
- || die "emake credential-osxkeychain" |
370 |
- fi |
371 |
- |
372 |
- cd "${S}"/Documentation |
373 |
- if [[ ${PV} == *9999 ]] ; then |
374 |
- git_emake man \ |
375 |
- || die "emake man failed" |
376 |
- if use doc ; then |
377 |
- git_emake info html \ |
378 |
- || die "emake info html failed" |
379 |
- fi |
380 |
- else |
381 |
- if use doc ; then |
382 |
- git_emake info \ |
383 |
- || die "emake info html failed" |
384 |
- fi |
385 |
- fi |
386 |
- |
387 |
- if use subversion ; then |
388 |
- cd "${S}"/contrib/svn-fe |
389 |
- # by defining EXTLIBS we override the detection for libintl and |
390 |
- # libiconv, bug #516168 |
391 |
- local nlsiconv= |
392 |
- use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
393 |
- use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
394 |
- git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
395 |
- if use doc ; then |
396 |
- git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
397 |
- fi |
398 |
- cd "${S}" |
399 |
- fi |
400 |
- |
401 |
- if use gnome-keyring ; then |
402 |
- cd "${S}"/contrib/credential/libsecret |
403 |
- git_emake || die "emake git-credential-libsecret failed" |
404 |
- fi |
405 |
- |
406 |
- cd "${S}"/contrib/subtree || die |
407 |
- git_emake |
408 |
- use doc && git_emake doc |
409 |
- |
410 |
- if use mediawiki ; then |
411 |
- cd "${S}"/contrib/mw-to-git |
412 |
- git_emake |
413 |
- fi |
414 |
-} |
415 |
- |
416 |
-src_install() { |
417 |
- git_emake \ |
418 |
- install || \ |
419 |
- die "make install failed" |
420 |
- |
421 |
- if [[ ${CHOST} == *-darwin* ]]; then |
422 |
- dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
423 |
- fi |
424 |
- |
425 |
- # Depending on the tarball and manual rebuild of the documentation, the |
426 |
- # manpages may exist in either OR both of these directories. |
427 |
- find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
428 |
- find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
429 |
- dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} |
430 |
- use doc && dodir /usr/share/doc/${PF}/html |
431 |
- for d in / /howto/ /technical/ ; do |
432 |
- docinto ${d} |
433 |
- dodoc Documentation${d}*.txt |
434 |
- if use doc ; then |
435 |
- docinto ${d}/html |
436 |
- dodoc Documentation${d}*.html |
437 |
- fi |
438 |
- done |
439 |
- docinto / |
440 |
- # Upstream does not ship this pre-built :-( |
441 |
- use doc && doinfo Documentation/{git,gitman}.info |
442 |
- |
443 |
- newbashcomp contrib/completion/git-completion.bash ${PN} |
444 |
- bashcomp_alias git gitk |
445 |
- # Not really a bash-completion file (bug #477920) |
446 |
- # but still needed uncompressed (bug #507480) |
447 |
- insinto /usr/share/${PN} |
448 |
- doins contrib/completion/git-prompt.sh |
449 |
- |
450 |
- if use emacs ; then |
451 |
- elisp-install ${PN} contrib/emacs/git.{el,elc} |
452 |
- elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
453 |
- #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
454 |
- # don't add automatically to the load-path, so the sitefile |
455 |
- # can do a conditional loading |
456 |
- touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
457 |
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
458 |
- fi |
459 |
- |
460 |
- #dobin contrib/fast-import/git-p4 # Moved upstream |
461 |
- #dodoc contrib/fast-import/git-p4.txt # Moved upstream |
462 |
- newbin contrib/fast-import/import-tars.perl import-tars |
463 |
- exeinto /usr/libexec/git-core/ |
464 |
- newexe contrib/git-resurrect.sh git-resurrect |
465 |
- |
466 |
- # git-subtree |
467 |
- cd "${S}"/contrib/subtree |
468 |
- git_emake install || die "Failed to emake install git-subtree" |
469 |
- if use doc ; then |
470 |
- git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
471 |
- fi |
472 |
- newdoc README README.git-subtree |
473 |
- dodoc git-subtree.txt |
474 |
- cd "${S}" |
475 |
- |
476 |
- if use mediawiki ; then |
477 |
- cd "${S}"/contrib/mw-to-git |
478 |
- git_emake install |
479 |
- cd "${S}" |
480 |
- fi |
481 |
- |
482 |
- # diff-highlight |
483 |
- dobin contrib/diff-highlight/diff-highlight |
484 |
- newdoc contrib/diff-highlight/README README.diff-highlight |
485 |
- |
486 |
- # git-jump |
487 |
- exeinto /usr/libexec/git-core/ |
488 |
- doexe contrib/git-jump/git-jump |
489 |
- newdoc contrib/git-jump/README git-jump.txt |
490 |
- |
491 |
- # git-contacts |
492 |
- exeinto /usr/libexec/git-core/ |
493 |
- doexe contrib/contacts/git-contacts |
494 |
- dodoc contrib/contacts/git-contacts.txt |
495 |
- |
496 |
- if use gnome-keyring ; then |
497 |
- cd "${S}"/contrib/credential/libsecret |
498 |
- dobin git-credential-libsecret |
499 |
- fi |
500 |
- |
501 |
- if use subversion ; then |
502 |
- cd "${S}"/contrib/svn-fe |
503 |
- dobin svn-fe |
504 |
- dodoc svn-fe.txt |
505 |
- if use doc ; then |
506 |
- doman svn-fe.1 |
507 |
- docinto html |
508 |
- dodoc svn-fe.html |
509 |
- fi |
510 |
- cd "${S}" |
511 |
- fi |
512 |
- |
513 |
- dodir /usr/share/${PN}/contrib |
514 |
- # The following are excluded: |
515 |
- # completion - installed above |
516 |
- # diff-highlight - done above |
517 |
- # emacs - installed above |
518 |
- # examples - these are stuff that is not used in Git anymore actually |
519 |
- # git-jump - done above |
520 |
- # gitview - installed above |
521 |
- # p4import - excluded because fast-import has a better one |
522 |
- # patches - stuff the Git guys made to go upstream to other places |
523 |
- # persistent-https - TODO |
524 |
- # mw-to-git - TODO |
525 |
- # subtree - build seperately |
526 |
- # svnimport - use git-svn |
527 |
- # thunderbird-patch-inline - fixes thunderbird |
528 |
- local contrib_objects=( |
529 |
- buildsystems |
530 |
- fast-import |
531 |
- hg-to-git |
532 |
- hooks |
533 |
- remotes2config.sh |
534 |
- rerere-train.sh |
535 |
- stats |
536 |
- workdir |
537 |
- ) |
538 |
- for i in "${contrib_objects[@]}" ; do |
539 |
- cp -rf \ |
540 |
- "${S}"/contrib/${i} \ |
541 |
- "${ED}"/usr/share/${PN}/contrib \ |
542 |
- || die "Failed contrib ${i}" |
543 |
- done |
544 |
- |
545 |
- if use perl && use cgi ; then |
546 |
- # We used to install in /usr/share/${PN}/gitweb |
547 |
- # but upstream installs in /usr/share/gitweb |
548 |
- # so we will install a symlink and use their location for compat with other |
549 |
- # distros |
550 |
- dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
551 |
- |
552 |
- # INSTALL discusses configuration issues, not just installation |
553 |
- docinto / |
554 |
- newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
555 |
- newdoc "${S}"/gitweb/README README.gitweb |
556 |
- |
557 |
- find "${ED}"/usr/lib64/perl5/ \ |
558 |
- -name .packlist \ |
559 |
- -exec rm \{\} \; |
560 |
- else |
561 |
- rm -rf "${ED}"/usr/share/gitweb |
562 |
- fi |
563 |
- |
564 |
- if ! use subversion ; then |
565 |
- rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
566 |
- "${ED}"/usr/share/man/man1/git-svn.1* |
567 |
- fi |
568 |
- |
569 |
- if use xinetd ; then |
570 |
- insinto /etc/xinetd.d |
571 |
- newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
572 |
- fi |
573 |
- |
574 |
- if use !prefix ; then |
575 |
- newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
576 |
- newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
577 |
- systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service" |
578 |
- systemd_dounit "${FILESDIR}/git-daemon.socket" |
579 |
- fi |
580 |
- |
581 |
- perl_delete_localpod |
582 |
- |
583 |
- # Remove disabled linguas |
584 |
- # we could remove sources in src_prepare, but install does not |
585 |
- # handle missing locale dir well |
586 |
- rm_loc() { |
587 |
- if [[ -e "${ED}/usr/share/locale/${1}" ]]; then |
588 |
- rm -r "${ED}/usr/share/locale/${1}" || die |
589 |
- fi |
590 |
- } |
591 |
- l10n_for_each_disabled_locale_do rm_loc |
592 |
-} |
593 |
- |
594 |
-src_test() { |
595 |
- local disabled="" |
596 |
- local tests_cvs="t9200-git-cvsexportcommit.sh \ |
597 |
- t9400-git-cvsserver-server.sh \ |
598 |
- t9401-git-cvsserver-crlf.sh \ |
599 |
- t9402-git-cvsserver-refs.sh \ |
600 |
- t9600-cvsimport.sh \ |
601 |
- t9601-cvsimport-vendor-branch.sh \ |
602 |
- t9602-cvsimport-branches-tags.sh \ |
603 |
- t9603-cvsimport-patchsets.sh \ |
604 |
- t9604-cvsimport-timestamps.sh" |
605 |
- local tests_perl="t3701-add-interactive.sh \ |
606 |
- t5502-quickfetch.sh \ |
607 |
- t5512-ls-remote.sh \ |
608 |
- t5520-pull.sh \ |
609 |
- t7106-reset-unborn-branch.sh \ |
610 |
- t7501-commit.sh" |
611 |
- # Bug #225601 - t0004 is not suitable for root perm |
612 |
- # Bug #219839 - t1004 is not suitable for root perm |
613 |
- # t0001-init.sh - check for init notices EPERM* fails |
614 |
- local tests_nonroot="t0001-init.sh \ |
615 |
- t0004-unwritable.sh \ |
616 |
- t0070-fundamental.sh \ |
617 |
- t1004-read-tree-m-u-wf.sh \ |
618 |
- t3700-add.sh \ |
619 |
- t7300-clean.sh" |
620 |
- # t9100 still fails with symlinks in SVN 1.7 |
621 |
- local test_svn="t9100-git-svn-basic.sh" |
622 |
- |
623 |
- # Unzip is used only for the testcase code, not by any normal parts of Git. |
624 |
- if ! has_version app-arch/unzip ; then |
625 |
- einfo "Disabling tar-tree tests" |
626 |
- disabled="${disabled} t5000-tar-tree.sh" |
627 |
- fi |
628 |
- |
629 |
- cvs=0 |
630 |
- use cvs && let cvs=$cvs+1 |
631 |
- if [[ ${EUID} -eq 0 ]]; then |
632 |
- if [[ $cvs -eq 1 ]]; then |
633 |
- ewarn "Skipping CVS tests because CVS does not work as root!" |
634 |
- ewarn "You should retest with FEATURES=userpriv!" |
635 |
- disabled="${disabled} ${tests_cvs}" |
636 |
- fi |
637 |
- einfo "Skipping other tests that require being non-root" |
638 |
- disabled="${disabled} ${tests_nonroot}" |
639 |
- else |
640 |
- [[ $cvs -gt 0 ]] && \ |
641 |
- has_version dev-vcs/cvs && \ |
642 |
- let cvs=$cvs+1 |
643 |
- [[ $cvs -gt 1 ]] && \ |
644 |
- has_version "dev-vcs/cvs[server]" && \ |
645 |
- let cvs=$cvs+1 |
646 |
- if [[ $cvs -lt 3 ]]; then |
647 |
- einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
648 |
- disabled="${disabled} ${tests_cvs}" |
649 |
- fi |
650 |
- fi |
651 |
- |
652 |
- if ! use perl ; then |
653 |
- einfo "Disabling tests that need Perl" |
654 |
- disabled="${disabled} ${tests_perl}" |
655 |
- fi |
656 |
- |
657 |
- einfo "Disabling tests that fail with SVN 1.7" |
658 |
- disabled="${disabled} ${test_svn}" |
659 |
- |
660 |
- # Reset all previously disabled tests |
661 |
- cd "${S}/t" |
662 |
- for i in *.sh.DISABLED ; do |
663 |
- [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
664 |
- done |
665 |
- einfo "Disabled tests:" |
666 |
- for i in ${disabled} ; do |
667 |
- [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
668 |
- done |
669 |
- |
670 |
- # Avoid the test system removing the results because we want them ourselves |
671 |
- sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
672 |
- -i "${S}"/t/Makefile |
673 |
- |
674 |
- # Clean old results first, must always run |
675 |
- cd "${S}/t" |
676 |
- nonfatal git_emake clean |
677 |
- |
678 |
- # Now run the tests, keep going if we hit an error, and don't terminate on |
679 |
- # failure |
680 |
- cd "${S}" |
681 |
- einfo "Start test run" |
682 |
- #MAKEOPTS=-j1 |
683 |
- nonfatal git_emake --keep-going test |
684 |
- rc=$? |
685 |
- |
686 |
- # Display nice results, now print the results |
687 |
- cd "${S}/t" |
688 |
- nonfatal git_emake aggregate-results |
689 |
- |
690 |
- # And bail if there was a problem |
691 |
- [ $rc -eq 0 ] || die "tests failed. Please file a bug." |
692 |
-} |
693 |
- |
694 |
-showpkgdeps() { |
695 |
- local pkg=$1 |
696 |
- shift |
697 |
- elog " $(printf "%-17s:" ${pkg}) ${@}" |
698 |
-} |
699 |
- |
700 |
-pkg_postinst() { |
701 |
- use emacs && elisp-site-regen |
702 |
- einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
703 |
- einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
704 |
- einfo "Note that the prompt bash code is now in that separate script" |
705 |
- elog "These additional scripts need some dependencies:" |
706 |
- echo |
707 |
- showpkgdeps git-quiltimport "dev-util/quilt" |
708 |
- showpkgdeps git-instaweb \ |
709 |
- "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
710 |
- echo |
711 |
- use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed." |
712 |
-} |
713 |
- |
714 |
-pkg_postrm() { |
715 |
- use emacs && elisp-site-regen |
716 |
-} |