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