Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/
Date: Tue, 29 Sep 2015 07:52:05
Message-Id: 1443513115.95f026f084ba97aa8895f2d29e070c66d754febf.polynomial-c@gentoo
1 commit: 95f026f084ba97aa8895f2d29e070c66d754febf
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 29 07:51:15 2015 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 07:51:55 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95f026f0
7
8 dev-vcs/git: Removed old.
9
10 Package-Manager: portage-2.2.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-vcs/git/Manifest | 6 -
14 dev-vcs/git/git-2.4.8.ebuild | 636 ------------------------------------------
15 dev-vcs/git/git-2.5.2.ebuild | 639 -------------------------------------------
16 dev-vcs/git/git-2.5.3.ebuild | 639 -------------------------------------------
17 4 files changed, 1920 deletions(-)
18
19 diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest
20 index 0a7a34b..affb401 100644
21 --- a/dev-vcs/git/Manifest
22 +++ b/dev-vcs/git/Manifest
23 @@ -6,9 +6,7 @@ DIST git-2.2.3.tar.xz 3592292 SHA256 d56ba6a2b9ef51ec165b98b1894a36fbb635c6abb22
24 DIST git-2.3.8.tar.xz 3622512 SHA256 cb4d9228f63b7a9500d55383878bb4bbb60b80deb7ae1a5858c7103ba14de5a6 SHA512 bf693fbe7fc16a240470501af2a7736ebfdbf027c0cc8adbd601d2b1c98ec7d968959e06dd8a3d0e206dc351e83a161475191d59d76f9e2da3e13b4de8716fb4 WHIRLPOOL 93aa2d832e57181de25035952a566c9d3330105e277930f088eb10e2073120c296b6dd87375437c9e9b7880c9b56e2c0de0fda5f77f0da9d2f96840c2fe8eda8
25 DIST git-2.3.9.tar.xz 3622952 SHA256 90c2b4bc8cb081115d34269b2d061fb8c7961cf08406c345b278c43d7dcd25f7 SHA512 e02565b9b0176158418358a811735dde0e630adae1cc8401a3a578fdce69efb6d8893815ee749820ade8b8aa0f3b8b42ff85322bf98dad55de77298eeca50510 WHIRLPOOL 451717d03304ba38f964801be909f0265b03adef8cacd62dd1bb1af34e1c6cc4caef064f784e34984cdb9f1f8f7e3f9b93ab67c116f63a1c9486b96a5bde3e91
26 DIST git-2.4.6.tar.xz 3690432 SHA256 bdd944571c03474517b6c9941d6f1fd735eccbb164e59fd133d38644b69453b6 SHA512 2c95a00af81d6fbd8f4984e89d7cb23396caacadd684466aeb5a11f1b3acfbc625f832060cbef5aee0748e36c1fddcd88b3b9c26c4d7aec1d185e5f7311346ef WHIRLPOOL 1ae191666bf27a7e18686b910cbe610f85b5b7a43266232359615fa2a22b80bc659277b71b21394eab53df0c912d9ad911c7793c2a041cd6c7d768a5f0416f5b
27 -DIST git-2.4.8.tar.xz 3692460 SHA256 c7d2019d3c3b742862b252dcabb3d870b649e1af3fc8a132a0c0149f9e91dfcb SHA512 b1af6bf03dec006ed99601e66dda5b70e576c47d755d8fe5ca3cd974acc33cf2a6b76901549b56f6b4d3d3697f43c84dca35fc21c2cf5e8daad026f1bcc5b263 WHIRLPOOL e00d8e04c86ba611457547c71fb22ebef04b3a7e4316145b29cf073e4e58849bb62963b41660176f6d4e78b492c3b2ac513e80e8db42a91a4dcc31207718f012
28 DIST git-2.4.9.tar.xz 3692824 SHA256 0f5fba41639d3224fee02f40393e2053ee9468fa7b88d64c5b97f7e65667bd2b SHA512 d5df1f725d5af8449e091ee50f6c4371c2b1699d80d499321a751ecf6c61d75c6c3a286ea60661ae1608bf92c94e2c8977ad08731e153830bd5c5b4587d8ba82 WHIRLPOOL a670eeb5abbcf844324b2444d87ecc9eb8c2899d6f37da6aef9f27edbe53d90086907642aac14536396b61d4520cd4e7b77124f4d54cc7f9f9e5a769741e4d03
29 -DIST git-2.5.2.tar.xz 3744080 SHA256 4b4760a90ede51accee703bd6815f1f79afef68670acdcf3ea31dcc846a40c9b SHA512 b553aa521ac43c33323fc9ceed084a411fb5924ee48f6f30808152dd1185f36d339678788d05d8e62099d496be22a4b6b0242529505cff702884c394e13c58aa WHIRLPOOL 4049a000ccbdeeb1b2882b34484cfabac9ba7ef672644c3eb708075b5fbe63e17599fc908e056ddf25f3bb5c34e42d0354c3d951e4ba1978a51caeb20a285ae7
30 DIST git-2.5.3.tar.xz 3745096 SHA256 124d29d857a1282fd2111cf4a021f156e8bae917f455b4551b2aea87f0453a1a SHA512 ab73d67f76ec8a6350995c692eefa7ab60ae13590d5d7c2fbd3ec1105a8d435ec1b156106fd6c3d6b51080a27f3ebd66bbf0a85042b697bc835143d9f625474e WHIRLPOOL e0c0fde0b263fd4847c21353ec81449baf6f1d5631aed4fdaa41dab2665159b528d7c477dacaef4efb2786ecaf3c0bd44ef3a589765543eee9726e70c5207d66
31 DIST git-2.6.0.tar.xz 3808872 SHA256 211beb96ff41a83727e39704431ac388ecb1cebb5219cda067999bce4e1e15a6 SHA512 efcde5fa3ac56d577e25259e74f19026438ccf8888b79429eec2f141bb2a63bb83e73f65b1ea96bcc1f9f894fb90ec1b5ea81b9f0c1806d25352f6b266e7202a WHIRLPOOL de703ba5d4024a6205bb795330b1ed06c70b01fad311739c59d837e7b2c7cad27bfbcd7cae0ac18378a8baa9d0fc0a5341665c312d7749cbb488b14456745ad1
32 DIST git-htmldocs-1.8.5.6.tar.gz 2242475 SHA256 7c8e955d0798686fa030ba7b7b384a2eab2b74d5bd695d82faecac2e247bd211 SHA512 c9b2752bcdd7f8f817b14e99ab2743d153e3e7549bffb2aa98999e46d1e965d045850ec6a3e9f6bc83e6e4820ce20f281c33f946ebd2be16d275b85a5ddaee36 WHIRLPOOL 7db3fb74e6b51618890acfef8fb89ab09adf653d3196e82624671194bdb2b564b903429ffecf68b28faf96ce3ebb83b534459738d48ace048d873c158621d31c
33 @@ -19,9 +17,7 @@ DIST git-htmldocs-2.2.3.tar.xz 976124 SHA256 1e979c86d5447a4a4965de6a1a532e30ae6
34 DIST git-htmldocs-2.3.8.tar.xz 987840 SHA256 54b8d98e34bceeac906ffa8b7c93e8a2cd2cf3c7f4d0c0334e9d5e0c704ca23f SHA512 7aa72d55a6a2687a3ecb26f9db76f69e4003c87864b8239068b029a9d63f99a023bf76ec3ea60952ecf11608d2d684f4ad1b2ac76942cd44ec67bdf8f497330f WHIRLPOOL 60145b5a48a6780b0edb3a7ef50b3649193818e3aa8199de94dd9bf1cca110d7411902c8e7e3df881eec77aa59208780b60b946aeb5f13960de954af6fd88fbe
35 DIST git-htmldocs-2.3.9.tar.xz 987824 SHA256 bd2921280fafca0ef051baf407aa561f80c2bf51c69115aa3cfd48d4b50ef9f9 SHA512 c239cfbd1601ec38bc37a95834d5840fdb83362ea6ca2f8c0f48a5b3f0beed73aef47736e1b5e65a77a4fe1aec3e1b48807437a600fb36c7b2553194f4824daa WHIRLPOOL fef5ce4447d10d6f116bb425d678af53f9e8c8a3238153d241afd6109647f04045c0bc4782afda63e3d43df89cc864dc3d7d01cddbf9a71de566d7cbc1508e7e
36 DIST git-htmldocs-2.4.6.tar.xz 994712 SHA256 5213e8b882293ec3cda247dabbc75c6ee5243b9d330a8fafec004952fae91a88 SHA512 782fbc38a611380c0af2631bd6123d568b02159fb46159c763d97d75bd84debe43105d83ac3f321cd8383e1334806857bce1a48563fd0c19b43f527fe18615a8 WHIRLPOOL 170e4ecc8255e6d5d562274e6e3fb75c2fc62e415586d61498b680a076c74248664fca35bb7c532009f7f22be4ad14d1fe047e14791991fa32373bd7053e0396
37 -DIST git-htmldocs-2.4.8.tar.xz 996004 SHA256 73c9ac3b42da1d3427bfa91c3266c6b7df332137d6ce92217c43db8f479a74ea SHA512 fcd93a76b19bd559ccb28829fa78ae0a2840a70e0c59a2709b2f089f1127b8452ee2f4e8e74128766f50eeeb560d924248d73336f2b5746305823834a9311db2 WHIRLPOOL 249390556106b13e4c02112085bd527720edcb67c85c61e429bea67bc252e7be3b6f4f641534bc342e534d154a9531379e3717d32e5109e48f886174022dce02
38 DIST git-htmldocs-2.4.9.tar.xz 995724 SHA256 6000eb00fee2adc4d5a8fd8ace857049e6fb623aa7ec9087d983c29953319cd6 SHA512 42905ae5383e5f0444ec868a1d742bada31cf25eac582b95ab6e6334a3dfefd05d2e08a1c2f7c0354a841703cbac2c6dc25437ca9f681a5bb0a121dc94d2d938 WHIRLPOOL 9791ab122cf680f060d274c6a7bcdd1aaf0660f83ed4e91073fed1dd2f2b16e96e938fcbf04e03373768b8036e3f8dd0be54639f8d24bce59501c970e4225d73
39 -DIST git-htmldocs-2.5.2.tar.xz 1008940 SHA256 87e416455a293552c2bab46fb3ec75424e2143e6f98f5ce7bcb6d4e50c4020eb SHA512 5276e5aa82845d7a661a2f79d54d1b3e7a95f95220bd4b855cf8c6c13ed456d8c80682c3ccae280317172c515733968a0a61758e3a634a8f1b1a08a6e43f04fb WHIRLPOOL 9d431116146cbcf5adb5e05848f31712a64dfb45301bc85bb2ff3f3c04587349bfdea85c8f6be67c43af09b8ffe4b1458f128db85438ff7913b2b2bb049f8374
40 DIST git-htmldocs-2.5.3.tar.xz 1009248 SHA256 f87465b5f6d01ceccb314b3e0a3749d642bea1007b0bc78afba868d75413d85e SHA512 7e5bcb85c270c740aa619d3cedd81e4f9bab989a8785512faab70cbd5029c021972b0574083272bed85324bf9372bf52f7b52827030133e09618731bf927f36f WHIRLPOOL f17c063c5b6e2a3cb7d25810b26f909bd09e281963e56029290c754b8f38bf7dba446405e96e4c49244db0bb60176b34852ac3f9a5b1d61c886eb90c2391efd8
41 DIST git-htmldocs-2.6.0.tar.xz 1016192 SHA256 0ba5d5d630e3235b74bcfb4ea2e9bbda8a3e619aaaf9e1f56e12dec5d8dc1d87 SHA512 11d17ee8fe6537efba323887ccb64fe9c905b293d3d06f4c0f0b3da4283a7ac5b5bf840055bb9f96d28121aecce074d86feebaa2a407291ec812246308aefa1e WHIRLPOOL 7e08864790a3e5c584e85acd6aca15bfddea846df9ca423c2dfe1332da2283b8fb9ee462639733f35e4842d27a895b59db0e29e3e4636d525131b47c2851b139
42 DIST git-manpages-1.8.5.6.tar.gz 569061 SHA256 58ef7cb3121639b8d78e2e4c4f7f886bab57af9e9e137b10f372dfad573872c1 SHA512 a524a1c7e8bdc73ffe04bebb5c7050a18c8649b98714bf255c8e3c32a2443d8d5abf33e3ca2eb108d601f01e0bda50fed1e134ffdae87bcf6f551cbbd250c4ba WHIRLPOOL 2db62b96e972dbcbec1ac59d7244bf2c2ff7140c941d1d3c6b9062bd79b80541d7fa3982c5a3bc55a18fc9112ab3fa648966be5c3e1135ab7b5c89080bee82b6
43 @@ -32,8 +28,6 @@ DIST git-manpages-2.2.3.tar.xz 369884 SHA256 bf6a4b5ae1267a252b93079e9b7fec2dc6f
44 DIST git-manpages-2.3.8.tar.xz 371528 SHA256 4d38de9decf80864480fcd5cc58783e3bff4e22383b281193acd82ffa3751fe2 SHA512 8c6aaf60e4b6505ae6789fa658ff15534cf5dfa51c03fdf47a624723b75a8448d71faa9f4ee61c5c243b775c4047dd2ffffc664b37e7f38b60c90fc56252ed93 WHIRLPOOL c6068de21f53e20ec17cd724059d91781e81abf617c2169c1099997afdeac371a59927d9db0b98c1f64c66b3de016b351b08a2f37a43038a924137f6f139a72e
45 DIST git-manpages-2.3.9.tar.xz 371580 SHA256 132cd914bf57ab66d75a72001b6defa514181fab3f4555f8d6933a7efe987530 SHA512 76100ba16f2fb5dc2e85a49d46ba420c52920f38f7f1feb2589c2bdc76100929badd147324a0f563d0280724f06a95929caa8e85336987783493d3a02db0ed28 WHIRLPOOL 24f5279122b74da69f366e5aec35029b6322891b5c670067b2cfc76696257d1c9bc2e6d674f2b2d740d4a27a439b89c3186e8bc41cdc8912e29635c4b3575929
46 DIST git-manpages-2.4.6.tar.xz 373408 SHA256 f32d267bdaab75812dbd116d2b329d6dc7287a974e929e380e8cbf96e3822b8e SHA512 fa0562b8cc3e0421f7b45940f8cd4b58a5e58a1eb8571e2de85babf8ffd932fd210baa82aefe3c6090cb7dc51f64f299143be51beaacb37be97832b4a8e2a869 WHIRLPOOL 595beed93c621ffd9b7e0b507fc2941156975190eca8b638826ac32b6ea761bbb08f05e152dc88a7a3dbd168ab083a0128d61e72fae51cd0e94a8c91a1adb3ee
47 -DIST git-manpages-2.4.8.tar.xz 373596 SHA256 47558ec88776e66e6f3e3625b7efdaf2e8ad447cb7af199d60d0788d7f4438c4 SHA512 bb5dc6d7a9af05f2f5a3665f0bac29e5a08919412d69cc756981c88eaa6cf5b8cbe93e04e1aa10d2a48706178eb33a547f416ee191bdb8d25483212aa7e30e5e WHIRLPOOL 0b4ab3099b6604f17a6ff741a9d752c76772ca4f7a02e55db4cbff1e14878c3bdcb25d5e4a71dd2f7a81525475aea35d9ef09d203d949984d95ef02f9865f33c
48 DIST git-manpages-2.4.9.tar.xz 373644 SHA256 0adc425adb13d669fcc90fa28d5fff3e64d8c9feb49d0565ec031b7bddcc4e02 SHA512 0df6359b8119b023b2d375bba08539cad4c0718184c5027b99827490fc17bbcff5da227a9b13bbdb5a82a45567cb83984dab050faafea1b7939532397f6688a0 WHIRLPOOL 20b8e34bfa4c5c20cf92368676f3a98949ed8c12a9c5b90f7cd052387492afb0e1521bf328e4bff43c4e8aeff8784d88b79498e47bffd093bc751e49046034e9
49 -DIST git-manpages-2.5.2.tar.xz 378032 SHA256 76512caa7044710f9954079828218cd94ab17da34effd3bdd9db2434d18720c2 SHA512 f9a9d9f4d96c19550702ac7eaa94a9308e1c7b39e1290baf81ab74709398db97261a884d8e9e1c71c899dd17cc485fede276c25c601cf7dfa6384b18170915a1 WHIRLPOOL 35f89e546f949499a2efcb4c47c361f3f89f5c952e18748703999d9186b40977b09abfadc63c1e10c06c183f1338109b80ddb0c9501a3baa0f82cac40bc8218a
50 DIST git-manpages-2.5.3.tar.xz 378000 SHA256 c5d8e9036be741924cf2614f0178a10f0c7d7b1d3efef96c1a08c751596cae3a SHA512 ed5a736b6ad22469ff7677434d046f331b0b4f7bbab8d14baa7a376bf44b384ffcc37ce1a99278d0fa69d8a058df21de1f8300a72cb2ad4b781543aac5100752 WHIRLPOOL f914d116e8aafd76a5decbfc945a6a3826814cda04d471716aeede4923eda79da61e809d888890b545b78811afd9b85c354540d9af06206e9402f1815c19e914
51 DIST git-manpages-2.6.0.tar.xz 380940 SHA256 94c45cf2353f8e1bbb6b56b6f54289203319db4cc38d94f53fcfb8dc3b669615 SHA512 3173f77da6fab0f5ac5d46a206b18fe69083ee74288326af63bc3938fb359e16a0cf5490f71ea8b11ba54117871caff7b4022e698ecd328c028b27eebc711724 WHIRLPOOL c76454026f747a5e68c3a195b99471b2f012013ccd6b305a7ac4c396dd463476a8fff68017dc631198e2fc309c3f28a2373883b6b376166168e57ceff624dba5
52
53 diff --git a/dev-vcs/git/git-2.4.8.ebuild b/dev-vcs/git/git-2.4.8.ebuild
54 deleted file mode 100644
55 index 352b93a..0000000
56 --- a/dev-vcs/git/git-2.4.8.ebuild
57 +++ /dev/null
58 @@ -1,636 +0,0 @@
59 -# Copyright 1999-2015 Gentoo Foundation
60 -# Distributed under the terms of the GNU General Public License v2
61 -# $Id$
62 -
63 -EAPI=5
64 -
65 -GENTOO_DEPEND_ON_PERL=no
66 -
67 -# bug #329479: git-remote-testgit is not multiple-version aware
68 -PYTHON_COMPAT=( python2_7 )
69 -[[ ${PV} == *9999 ]] && SCM="git-2"
70 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
71 -EGIT_MASTER=pu
72 -
73 -inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python-single-r1 systemd ${SCM}
74 -
75 -MY_PV="${PV/_rc/.rc}"
76 -MY_P="${PN}-${MY_PV}"
77 -
78 -DOC_VER=${MY_PV}
79 -
80 -DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
81 -HOMEPAGE="http://www.git-scm.com/"
82 -if [[ ${PV} != *9999 ]]; then
83 - SRC_URI_SUFFIX="xz"
84 - SRC_URI_GOOG="https://git-core.googlecode.com/files"
85 - SRC_URI_KORG="mirror://kernel/software/scm/git"
86 - SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
87 - ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
88 - ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
89 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
90 - doc? (
91 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
92 - ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
93 - )"
94 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
95 -fi
96 -
97 -LICENSE="GPL-2"
98 -SLOT="0"
99 -IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
100 -
101 -# Common to both DEPEND and RDEPEND
102 -CDEPEND="
103 - dev-libs/openssl:0=
104 - sys-libs/zlib
105 - pcre? ( dev-libs/libpcre )
106 - perl? ( dev-lang/perl:=[-build(-)] )
107 - tk? ( dev-lang/tk:0= )
108 - curl? (
109 - net-misc/curl
110 - webdav? ( dev-libs/expat )
111 - )
112 - emacs? ( virtual/emacs )
113 - gnome-keyring? ( gnome-base/libgnome-keyring )"
114 -
115 -RDEPEND="${CDEPEND}
116 - gpg? ( app-crypt/gnupg )
117 - mediawiki? (
118 - dev-perl/HTML-Tree
119 - dev-perl/MediaWiki-API
120 - )
121 - perl? ( dev-perl/Error
122 - dev-perl/Net-SMTP-SSL
123 - dev-perl/Authen-SASL
124 - cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) )
125 - cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite )
126 - subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
127 - )
128 - python? ( gtk?
129 - (
130 - >=dev-python/pygtk-2.8[${PYTHON_USEDEP}]
131 - >=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}]
132 - )
133 - ${PYTHON_DEPS} )"
134 -
135 -# This is how info docs are created with Git:
136 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
137 -# .xml/docbook --(docbook2texi.pl)--> .texi
138 -# .texi --(makeinfo)---------> .info
139 -DEPEND="${CDEPEND}
140 - doc? (
141 - app-text/asciidoc
142 - app-text/docbook2X
143 - sys-apps/texinfo
144 - app-text/xmlto
145 - )
146 - nls? ( sys-devel/gettext )
147 - test? ( app-crypt/gnupg )"
148 -
149 -# Live ebuild builds man pages and HTML docs, additionally
150 -if [[ ${PV} == *9999 ]]; then
151 - DEPEND="${DEPEND}
152 - app-text/asciidoc"
153 -fi
154 -
155 -SITEFILE=50${PN}-gentoo.el
156 -S="${WORKDIR}/${MY_P}"
157 -
158 -REQUIRED_USE="
159 - cgi? ( perl )
160 - cvs? ( perl )
161 - mediawiki? ( perl )
162 - subversion? ( perl )
163 - webdav? ( curl )
164 - gtk? ( python )
165 - python? ( ${PYTHON_REQUIRED_USE} )
166 -"
167 -
168 -pkg_setup() {
169 - if use subversion && has_version "dev-vcs/subversion[dso]"; then
170 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
171 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
172 - ewarn "have been warned."
173 - fi
174 - if use python ; then
175 - python-single-r1_pkg_setup
176 - fi
177 -}
178 -
179 -# This is needed because for some obscure reasons future calls to make don't
180 -# pick up these exports if we export them in src_unpack()
181 -exportmakeopts() {
182 - local myopts
183 -
184 - if use blksha1 ; then
185 - myopts+=" BLK_SHA1=YesPlease"
186 - elif use ppcsha1 ; then
187 - myopts+=" PPC_SHA1=YesPlease"
188 - fi
189 -
190 - if use curl ; then
191 - use webdav || myopts+=" NO_EXPAT=YesPlease"
192 - else
193 - myopts+=" NO_CURL=YesPlease"
194 - fi
195 -
196 - # broken assumptions, because of broken build system ...
197 - myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
198 - myopts+=" INSTALL=install TAR=tar"
199 - myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
200 - myopts+=" SANE_TOOL_PATH="
201 - myopts+=" OLD_ICONV="
202 - myopts+=" NO_EXTERNAL_GREP="
203 -
204 - # For svn-fe
205 - extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
206 -
207 - # can't define this to null, since the entire makefile depends on it
208 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
209 -
210 - use iconv \
211 - || myopts+=" NO_ICONV=YesPlease"
212 - use nls \
213 - || myopts+=" NO_GETTEXT=YesPlease"
214 - use tk \
215 - || myopts+=" NO_TCLTK=YesPlease"
216 - use pcre \
217 - && myopts+=" USE_LIBPCRE=yes" \
218 - && extlibs+=" -lpcre"
219 - use perl \
220 - && myopts+=" INSTALLDIRS=vendor" \
221 - || myopts+=" NO_PERL=YesPlease"
222 - use python \
223 - || myopts+=" NO_PYTHON=YesPlease"
224 - use subversion \
225 - || myopts+=" NO_SVN_TESTS=YesPlease"
226 - use threads \
227 - && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
228 - || myopts+=" NO_PTHREADS=YesPlease"
229 - use cvs \
230 - || myopts+=" NO_CVS=YesPlease"
231 -# Disabled until ~m68k-mint can be keyworded again
232 -# if [[ ${CHOST} == *-mint* ]] ; then
233 -# myopts+=" NO_MMAP=YesPlease"
234 -# myopts+=" NO_IPV6=YesPlease"
235 -# myopts+=" NO_STRLCPY=YesPlease"
236 -# myopts+=" NO_MEMMEM=YesPlease"
237 -# myopts+=" NO_MKDTEMP=YesPlease"
238 -# myopts+=" NO_MKSTEMPS=YesPlease"
239 -# fi
240 - if [[ ${CHOST} == ia64-*-hpux* ]]; then
241 - myopts+=" NO_NSEC=YesPlease"
242 - fi
243 - if [[ ${CHOST} == *-*-aix* ]]; then
244 - myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
245 - fi
246 - if [[ ${CHOST} == *-solaris* ]]; then
247 - myopts+=" NEEDS_LIBICONV=YesPlease"
248 - fi
249 -
250 - has_version '>=app-text/asciidoc-8.0' \
251 - && myopts+=" ASCIIDOC8=YesPlease"
252 - myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
253 -
254 - # Bug 290465:
255 - # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
256 - [[ "${CHOST}" == *-uclibc* ]] && \
257 - myopts+=" NO_NSEC=YesPlease"
258 -
259 - export MY_MAKEOPTS="${myopts}"
260 - export EXTLIBS="${extlibs}"
261 -}
262 -
263 -src_unpack() {
264 - if [[ ${PV} != *9999 ]]; then
265 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
266 - cd "${S}"
267 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
268 - use doc && \
269 - cd "${S}"/Documentation && \
270 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
271 - cd "${S}"
272 - else
273 - git-2_src_unpack
274 - cd "${S}"
275 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
276 - fi
277 -
278 -}
279 -
280 -src_prepare() {
281 - # bug #350330 - automagic CVS when we don't want it is bad.
282 - epatch "${FILESDIR}"/git-2.2.2-optional-cvs.patch
283 -
284 - # install mediawiki perl modules also in vendor_dir
285 - # hack, needs better upstream solution
286 - epatch "${FILESDIR}"/git-1.8.5-mw-vendor.patch
287 -
288 - epatch "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
289 -
290 - epatch_user
291 -
292 - sed -i \
293 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
294 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
295 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
296 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
297 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
298 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
299 - Makefile contrib/svn-fe/Makefile || die "sed failed"
300 -
301 - # Never install the private copy of Error.pm (bug #296310)
302 - sed -i \
303 - -e '/private-Error.pm/s,^,#,' \
304 - perl/Makefile.PL
305 -
306 - # Fix docbook2texi command
307 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
308 - Documentation/Makefile || die "sed failed"
309 -
310 - # Fix git-subtree missing DESTDIR
311 - sed -i \
312 - -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \
313 - -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \
314 - contrib/subtree/Makefile
315 -}
316 -
317 -git_emake() {
318 - # bug #326625: PERL_PATH, PERL_MM_OPT
319 - # bug #320647: PYTHON_PATH
320 - PYTHON_PATH=""
321 - use python && PYTHON_PATH="${PYTHON}"
322 - emake ${MY_MAKEOPTS} \
323 - DESTDIR="${D}" \
324 - OPTCFLAGS="${CFLAGS}" \
325 - OPTLDFLAGS="${LDFLAGS}" \
326 - OPTCC="$(tc-getCC)" \
327 - OPTAR="$(tc-getAR)" \
328 - prefix="${EPREFIX}"/usr \
329 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
330 - sysconfdir="${EPREFIX}"/etc \
331 - PYTHON_PATH="${PYTHON_PATH}" \
332 - PERL_MM_OPT="" \
333 - GIT_TEST_OPTS="--no-color" \
334 - V=1 \
335 - "$@"
336 - # This is the fix for bug #326625, but it also causes breakage, see bug
337 - # #352693.
338 - # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
339 -}
340 -
341 -src_configure() {
342 - exportmakeopts
343 -}
344 -
345 -src_compile() {
346 - if use perl ; then
347 - git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
348 - git_emake perl/perl.mak || die "emake perl/perl.mak failed"
349 - fi
350 - git_emake || die "emake failed"
351 -
352 - if use emacs ; then
353 - elisp-compile contrib/emacs/git{,-blame}.el
354 - fi
355 -
356 - if use perl && use cgi ; then
357 - git_emake \
358 - gitweb \
359 - || die "emake gitweb (cgi) failed"
360 - fi
361 -
362 - if [[ ${CHOST} == *-darwin* ]]; then
363 - cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain"
364 - git_emake || die "emake credential-osxkeychain"
365 - fi
366 -
367 - cd "${S}"/Documentation
368 - if [[ ${PV} == *9999 ]] ; then
369 - git_emake man \
370 - || die "emake man failed"
371 - if use doc ; then
372 - git_emake info html \
373 - || die "emake info html failed"
374 - fi
375 - else
376 - if use doc ; then
377 - git_emake info \
378 - || die "emake info html failed"
379 - fi
380 - fi
381 -
382 - if use subversion ; then
383 - cd "${S}"/contrib/svn-fe
384 - # by defining EXTLIBS we override the detection for libintl and
385 - # libiconv, bug #516168
386 - local nlsiconv=
387 - use nls && use !elibc_glibc && nlsiconv+=" -lintl"
388 - use iconv && use !elibc_glibc && nlsiconv+=" -liconv"
389 - git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed"
390 - if use doc ; then
391 - git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed"
392 - fi
393 - cd "${S}"
394 - fi
395 -
396 - if use gnome-keyring ; then
397 - cd "${S}"/contrib/credential/gnome-keyring
398 - git_emake || die "emake git-credential-gnome-keyring failed"
399 - fi
400 -
401 - cd "${S}"/contrib/subtree
402 - git_emake
403 - use doc && git_emake doc
404 -
405 - if use mediawiki ; then
406 - cd "${S}"/contrib/mw-to-git
407 - git_emake
408 - fi
409 -}
410 -
411 -src_install() {
412 - git_emake \
413 - install || \
414 - die "make install failed"
415 -
416 - if [[ ${CHOST} == *-darwin* ]]; then
417 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
418 - fi
419 -
420 - # Depending on the tarball and manual rebuild of the documentation, the
421 - # manpages may exist in either OR both of these directories.
422 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
423 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
424 -
425 - dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
426 - use doc && dodir /usr/share/doc/${PF}/html
427 - for d in / /howto/ /technical/ ; do
428 - docinto ${d}
429 - dodoc Documentation${d}*.txt
430 - use doc && dohtml -p ${d} Documentation${d}*.html
431 - done
432 - docinto /
433 - # Upstream does not ship this pre-built :-(
434 - use doc && doinfo Documentation/{git,gitman}.info
435 -
436 - newbashcomp contrib/completion/git-completion.bash ${PN}
437 - bashcomp_alias git gitk
438 - # Not really a bash-completion file (bug #477920)
439 - # but still needed uncompressed (bug #507480)
440 - insinto /usr/share/${PN}
441 - doins contrib/completion/git-prompt.sh
442 -
443 - if use emacs ; then
444 - elisp-install ${PN} contrib/emacs/git.{el,elc}
445 - elisp-install ${PN} contrib/emacs/git-blame.{el,elc}
446 - #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc}
447 - # don't add automatically to the load-path, so the sitefile
448 - # can do a conditional loading
449 - touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
450 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
451 - fi
452 -
453 - if use python && use gtk ; then
454 - python_doscript "${S}"/contrib/gitview/gitview
455 - dodoc "${S}"/contrib/gitview/gitview.txt
456 - fi
457 -
458 - #dobin contrib/fast-import/git-p4 # Moved upstream
459 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
460 - newbin contrib/fast-import/import-tars.perl import-tars
461 - exeinto /usr/libexec/git-core/
462 - newexe contrib/git-resurrect.sh git-resurrect
463 -
464 - # git-subtree
465 - cd "${S}"/contrib/subtree
466 - git_emake install || die "Failed to emake install git-subtree"
467 - if use doc ; then
468 - git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree"
469 - fi
470 - newdoc README README.git-subtree
471 - dodoc git-subtree.txt
472 - cd "${S}"
473 -
474 - if use mediawiki ; then
475 - cd "${S}"/contrib/mw-to-git
476 - git_emake install
477 - cd "${S}"
478 - fi
479 -
480 - # diff-highlight
481 - dobin contrib/diff-highlight/diff-highlight
482 - newdoc contrib/diff-highlight/README README.diff-highlight
483 -
484 - # git-jump
485 - exeinto /usr/libexec/git-core/
486 - doexe contrib/git-jump/git-jump
487 - newdoc contrib/git-jump/README git-jump.txt
488 -
489 - # git-contacts
490 - exeinto /usr/libexec/git-core/
491 - doexe contrib/contacts/git-contacts
492 - dodoc contrib/contacts/git-contacts.txt
493 -
494 - if use gnome-keyring ; then
495 - cd "${S}"/contrib/credential/gnome-keyring
496 - dobin git-credential-gnome-keyring
497 - fi
498 -
499 - if use subversion ; then
500 - cd "${S}"/contrib/svn-fe
501 - dobin svn-fe
502 - dodoc svn-fe.txt
503 - use doc && doman svn-fe.1 && dohtml svn-fe.html
504 - cd "${S}"
505 - fi
506 -
507 - dodir /usr/share/${PN}/contrib
508 - # The following are excluded:
509 - # completion - installed above
510 - # credential/gnome-keyring TODO
511 - # diff-highlight - done above
512 - # emacs - installed above
513 - # examples - these are stuff that is not used in Git anymore actually
514 - # git-jump - done above
515 - # gitview - installed above
516 - # p4import - excluded because fast-import has a better one
517 - # patches - stuff the Git guys made to go upstream to other places
518 - # persistent-https - TODO
519 - # mw-to-git - TODO
520 - # subtree - build seperately
521 - # svnimport - use git-svn
522 - # thunderbird-patch-inline - fixes thunderbird
523 - for i in \
524 - buildsystems convert-objects fast-import \
525 - hg-to-git hooks remotes2config.sh rerere-train.sh \
526 - stats workdir \
527 - ; do
528 - cp -rf \
529 - "${S}"/contrib/${i} \
530 - "${ED}"/usr/share/${PN}/contrib \
531 - || die "Failed contrib ${i}"
532 - done
533 -
534 - if use perl && use cgi ; then
535 - # We used to install in /usr/share/${PN}/gitweb
536 - # but upstream installs in /usr/share/gitweb
537 - # so we will install a symlink and use their location for compat with other
538 - # distros
539 - dosym /usr/share/gitweb /usr/share/${PN}/gitweb
540 -
541 - # INSTALL discusses configuration issues, not just installation
542 - docinto /
543 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
544 - newdoc "${S}"/gitweb/README README.gitweb
545 -
546 - find "${ED}"/usr/lib64/perl5/ \
547 - -name .packlist \
548 - -exec rm \{\} \;
549 - else
550 - rm -rf "${ED}"/usr/share/gitweb
551 - fi
552 -
553 - if ! use subversion ; then
554 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
555 - "${ED}"/usr/share/man/man1/git-svn.1*
556 - fi
557 -
558 - if use xinetd ; then
559 - insinto /etc/xinetd.d
560 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
561 - fi
562 -
563 - if use !prefix ; then
564 - newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon
565 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
566 - systemd_newunit "${FILESDIR}/git-daemon_at.service" "git-daemon@.service"
567 - systemd_dounit "${FILESDIR}/git-daemon.socket"
568 - fi
569 -
570 - perl_delete_localpod
571 -}
572 -
573 -src_test() {
574 - local disabled="" #t7004-tag.sh" #520270
575 - local tests_cvs="t9200-git-cvsexportcommit.sh \
576 - t9400-git-cvsserver-server.sh \
577 - t9401-git-cvsserver-crlf.sh \
578 - t9402-git-cvsserver-refs.sh \
579 - t9600-cvsimport.sh \
580 - t9601-cvsimport-vendor-branch.sh \
581 - t9602-cvsimport-branches-tags.sh \
582 - t9603-cvsimport-patchsets.sh \
583 - t9604-cvsimport-timestamps.sh"
584 - local tests_perl="t3701-add-interactive.sh \
585 - t5502-quickfetch.sh \
586 - t5512-ls-remote.sh \
587 - t5520-pull.sh \
588 - t7106-reset-unborn-branch.sh \
589 - t7501-commit.sh"
590 - # Bug #225601 - t0004 is not suitable for root perm
591 - # Bug #219839 - t1004 is not suitable for root perm
592 - # t0001-init.sh - check for init notices EPERM* fails
593 - local tests_nonroot="t0001-init.sh \
594 - t0004-unwritable.sh \
595 - t0070-fundamental.sh \
596 - t1004-read-tree-m-u-wf.sh \
597 - t3700-add.sh \
598 - t7300-clean.sh"
599 - # t9100 still fails with symlinks in SVN 1.7
600 - local test_svn="t9100-git-svn-basic.sh"
601 -
602 - # Unzip is used only for the testcase code, not by any normal parts of Git.
603 - if ! has_version app-arch/unzip ; then
604 - einfo "Disabling tar-tree tests"
605 - disabled="${disabled} t5000-tar-tree.sh"
606 - fi
607 -
608 - cvs=0
609 - use cvs && let cvs=$cvs+1
610 - if [[ ${EUID} -eq 0 ]]; then
611 - if [[ $cvs -eq 1 ]]; then
612 - ewarn "Skipping CVS tests because CVS does not work as root!"
613 - ewarn "You should retest with FEATURES=userpriv!"
614 - disabled="${disabled} ${tests_cvs}"
615 - fi
616 - einfo "Skipping other tests that require being non-root"
617 - disabled="${disabled} ${tests_nonroot}"
618 - else
619 - [[ $cvs -gt 0 ]] && \
620 - has_version dev-vcs/cvs && \
621 - let cvs=$cvs+1
622 - [[ $cvs -gt 1 ]] && \
623 - has_version "dev-vcs/cvs[server]" && \
624 - let cvs=$cvs+1
625 - if [[ $cvs -lt 3 ]]; then
626 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
627 - disabled="${disabled} ${tests_cvs}"
628 - fi
629 - fi
630 -
631 - if ! use perl ; then
632 - einfo "Disabling tests that need Perl"
633 - disabled="${disabled} ${tests_perl}"
634 - fi
635 -
636 - einfo "Disabling tests that fail with SVN 1.7"
637 - disabled="${disabled} ${test_svn}"
638 -
639 - # Reset all previously disabled tests
640 - cd "${S}/t"
641 - for i in *.sh.DISABLED ; do
642 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
643 - done
644 - einfo "Disabled tests:"
645 - for i in ${disabled} ; do
646 - [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
647 - done
648 -
649 - # Avoid the test system removing the results because we want them ourselves
650 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
651 - -i "${S}"/t/Makefile
652 -
653 - # Clean old results first, must always run
654 - cd "${S}/t"
655 - nonfatal git_emake clean
656 -
657 - # Now run the tests, keep going if we hit an error, and don't terminate on
658 - # failure
659 - cd "${S}"
660 - einfo "Start test run"
661 - #MAKEOPTS=-j1
662 - nonfatal git_emake --keep-going test
663 - rc=$?
664 -
665 - # Display nice results, now print the results
666 - cd "${S}/t"
667 - nonfatal git_emake aggregate-results
668 -
669 - # And bail if there was a problem
670 - [ $rc -eq 0 ] || die "tests failed. Please file a bug."
671 -}
672 -
673 -showpkgdeps() {
674 - local pkg=$1
675 - shift
676 - elog " $(printf "%-17s:" ${pkg}) ${@}"
677 -}
678 -
679 -pkg_postinst() {
680 - use emacs && elisp-site-regen
681 - einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
682 - einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
683 - einfo "Note that the prompt bash code is now in that separate script"
684 - elog "These additional scripts need some dependencies:"
685 - echo
686 - showpkgdeps git-quiltimport "dev-util/quilt"
687 - showpkgdeps git-instaweb \
688 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
689 - echo
690 -}
691 -
692 -pkg_postrm() {
693 - use emacs && elisp-site-regen
694 -}
695
696 diff --git a/dev-vcs/git/git-2.5.2.ebuild b/dev-vcs/git/git-2.5.2.ebuild
697 deleted file mode 100644
698 index cf36860..0000000
699 --- a/dev-vcs/git/git-2.5.2.ebuild
700 +++ /dev/null
701 @@ -1,639 +0,0 @@
702 -# Copyright 1999-2015 Gentoo Foundation
703 -# Distributed under the terms of the GNU General Public License v2
704 -# $Id$
705 -
706 -EAPI=5
707 -
708 -GENTOO_DEPEND_ON_PERL=no
709 -
710 -# bug #329479: git-remote-testgit is not multiple-version aware
711 -PYTHON_COMPAT=( python2_7 )
712 -[[ ${PV} == *9999 ]] && SCM="git-2"
713 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
714 -EGIT_MASTER=pu
715 -
716 -inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python-single-r1 systemd ${SCM}
717 -
718 -MY_PV="${PV/_rc/.rc}"
719 -MY_P="${PN}-${MY_PV}"
720 -
721 -DOC_VER=${MY_PV}
722 -
723 -DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
724 -HOMEPAGE="http://www.git-scm.com/"
725 -if [[ ${PV} != *9999 ]]; then
726 - SRC_URI_SUFFIX="xz"
727 - SRC_URI_GOOG="https://git-core.googlecode.com/files"
728 - SRC_URI_KORG="mirror://kernel/software/scm/git"
729 - SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
730 - ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
731 - ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
732 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
733 - doc? (
734 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
735 - ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
736 - )"
737 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
738 -fi
739 -
740 -LICENSE="GPL-2"
741 -SLOT="0"
742 -IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
743 -
744 -# Common to both DEPEND and RDEPEND
745 -CDEPEND="
746 - dev-libs/openssl:0=
747 - sys-libs/zlib
748 - pcre? ( dev-libs/libpcre )
749 - perl? ( dev-lang/perl:=[-build(-)] )
750 - tk? ( dev-lang/tk:0= )
751 - curl? (
752 - net-misc/curl
753 - webdav? ( dev-libs/expat )
754 - )
755 - emacs? ( virtual/emacs )
756 - gnome-keyring? ( gnome-base/libgnome-keyring )"
757 -
758 -RDEPEND="${CDEPEND}
759 - gpg? ( app-crypt/gnupg )
760 - mediawiki? (
761 - dev-perl/HTML-Tree
762 - dev-perl/MediaWiki-API
763 - )
764 - perl? ( dev-perl/Error
765 - dev-perl/Net-SMTP-SSL
766 - dev-perl/Authen-SASL
767 - cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) )
768 - cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite )
769 - subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
770 - )
771 - python? ( gtk?
772 - (
773 - >=dev-python/pygtk-2.8[${PYTHON_USEDEP}]
774 - >=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}]
775 - )
776 - ${PYTHON_DEPS} )"
777 -
778 -# This is how info docs are created with Git:
779 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
780 -# .xml/docbook --(docbook2texi.pl)--> .texi
781 -# .texi --(makeinfo)---------> .info
782 -DEPEND="${CDEPEND}
783 - doc? (
784 - app-text/asciidoc
785 - app-text/docbook2X
786 - sys-apps/texinfo
787 - app-text/xmlto
788 - )
789 - nls? ( sys-devel/gettext )
790 - test? ( app-crypt/gnupg )"
791 -
792 -# Live ebuild builds man pages and HTML docs, additionally
793 -if [[ ${PV} == *9999 ]]; then
794 - DEPEND="${DEPEND}
795 - app-text/asciidoc"
796 -fi
797 -
798 -SITEFILE=50${PN}-gentoo.el
799 -S="${WORKDIR}/${MY_P}"
800 -
801 -REQUIRED_USE="
802 - cgi? ( perl )
803 - cvs? ( perl )
804 - mediawiki? ( perl )
805 - subversion? ( perl )
806 - webdav? ( curl )
807 - gtk? ( python )
808 - python? ( ${PYTHON_REQUIRED_USE} )
809 -"
810 -
811 -pkg_setup() {
812 - if use subversion && has_version "dev-vcs/subversion[dso]"; then
813 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
814 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
815 - ewarn "have been warned."
816 - fi
817 - if use python ; then
818 - python-single-r1_pkg_setup
819 - fi
820 -}
821 -
822 -# This is needed because for some obscure reasons future calls to make don't
823 -# pick up these exports if we export them in src_unpack()
824 -exportmakeopts() {
825 - local myopts
826 -
827 - if use blksha1 ; then
828 - myopts+=" BLK_SHA1=YesPlease"
829 - elif use ppcsha1 ; then
830 - myopts+=" PPC_SHA1=YesPlease"
831 - fi
832 -
833 - if use curl ; then
834 - use webdav || myopts+=" NO_EXPAT=YesPlease"
835 - else
836 - myopts+=" NO_CURL=YesPlease"
837 - fi
838 -
839 - # broken assumptions, because of broken build system ...
840 - myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
841 - myopts+=" INSTALL=install TAR=tar"
842 - myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
843 - myopts+=" SANE_TOOL_PATH="
844 - myopts+=" OLD_ICONV="
845 - myopts+=" NO_EXTERNAL_GREP="
846 -
847 - # For svn-fe
848 - extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
849 -
850 - # can't define this to null, since the entire makefile depends on it
851 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
852 -
853 - use iconv \
854 - || myopts+=" NO_ICONV=YesPlease"
855 - use nls \
856 - || myopts+=" NO_GETTEXT=YesPlease"
857 - use tk \
858 - || myopts+=" NO_TCLTK=YesPlease"
859 - use pcre \
860 - && myopts+=" USE_LIBPCRE=yes" \
861 - && extlibs+=" -lpcre"
862 - use perl \
863 - && myopts+=" INSTALLDIRS=vendor" \
864 - || myopts+=" NO_PERL=YesPlease"
865 - use python \
866 - || myopts+=" NO_PYTHON=YesPlease"
867 - use subversion \
868 - || myopts+=" NO_SVN_TESTS=YesPlease"
869 - use threads \
870 - && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
871 - || myopts+=" NO_PTHREADS=YesPlease"
872 - use cvs \
873 - || myopts+=" NO_CVS=YesPlease"
874 -# Disabled until ~m68k-mint can be keyworded again
875 -# if [[ ${CHOST} == *-mint* ]] ; then
876 -# myopts+=" NO_MMAP=YesPlease"
877 -# myopts+=" NO_IPV6=YesPlease"
878 -# myopts+=" NO_STRLCPY=YesPlease"
879 -# myopts+=" NO_MEMMEM=YesPlease"
880 -# myopts+=" NO_MKDTEMP=YesPlease"
881 -# myopts+=" NO_MKSTEMPS=YesPlease"
882 -# fi
883 - if [[ ${CHOST} == ia64-*-hpux* ]]; then
884 - myopts+=" NO_NSEC=YesPlease"
885 - fi
886 - if [[ ${CHOST} == *-*-aix* ]]; then
887 - myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
888 - fi
889 - if [[ ${CHOST} == *-solaris* ]]; then
890 - myopts+=" NEEDS_LIBICONV=YesPlease"
891 - fi
892 -
893 - has_version '>=app-text/asciidoc-8.0' \
894 - && myopts+=" ASCIIDOC8=YesPlease"
895 - myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
896 -
897 - # Bug 290465:
898 - # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
899 - [[ "${CHOST}" == *-uclibc* ]] && \
900 - myopts+=" NO_NSEC=YesPlease"
901 -
902 - export MY_MAKEOPTS="${myopts}"
903 - export EXTLIBS="${extlibs}"
904 -}
905 -
906 -src_unpack() {
907 - if [[ ${PV} != *9999 ]]; then
908 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
909 - cd "${S}"
910 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
911 - use doc && \
912 - cd "${S}"/Documentation && \
913 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
914 - cd "${S}"
915 - else
916 - git-2_src_unpack
917 - cd "${S}"
918 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
919 - fi
920 -
921 -}
922 -
923 -src_prepare() {
924 - # bug #350330 - automagic CVS when we don't want it is bad.
925 - epatch "${FILESDIR}"/git-2.2.2-optional-cvs.patch
926 -
927 - # install mediawiki perl modules also in vendor_dir
928 - # hack, needs better upstream solution
929 - epatch "${FILESDIR}"/git-1.8.5-mw-vendor.patch
930 -
931 - epatch "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
932 -
933 - # Bug #493306, where FreeBSD 10.x merged libiconv into its libc.
934 - epatch "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch
935 -
936 - epatch_user
937 -
938 - sed -i \
939 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
940 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
941 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
942 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
943 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
944 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
945 - Makefile contrib/svn-fe/Makefile || die "sed failed"
946 -
947 - # Never install the private copy of Error.pm (bug #296310)
948 - sed -i \
949 - -e '/private-Error.pm/s,^,#,' \
950 - perl/Makefile.PL
951 -
952 - # Fix docbook2texi command
953 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
954 - Documentation/Makefile || die "sed failed"
955 -
956 - # Fix git-subtree missing DESTDIR
957 - sed -i \
958 - -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \
959 - -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \
960 - contrib/subtree/Makefile
961 -}
962 -
963 -git_emake() {
964 - # bug #326625: PERL_PATH, PERL_MM_OPT
965 - # bug #320647: PYTHON_PATH
966 - PYTHON_PATH=""
967 - use python && PYTHON_PATH="${PYTHON}"
968 - emake ${MY_MAKEOPTS} \
969 - DESTDIR="${D}" \
970 - OPTCFLAGS="${CFLAGS}" \
971 - OPTLDFLAGS="${LDFLAGS}" \
972 - OPTCC="$(tc-getCC)" \
973 - OPTAR="$(tc-getAR)" \
974 - prefix="${EPREFIX}"/usr \
975 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
976 - sysconfdir="${EPREFIX}"/etc \
977 - PYTHON_PATH="${PYTHON_PATH}" \
978 - PERL_MM_OPT="" \
979 - GIT_TEST_OPTS="--no-color" \
980 - V=1 \
981 - "$@"
982 - # This is the fix for bug #326625, but it also causes breakage, see bug
983 - # #352693.
984 - # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
985 -}
986 -
987 -src_configure() {
988 - exportmakeopts
989 -}
990 -
991 -src_compile() {
992 - if use perl ; then
993 - git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
994 - git_emake perl/perl.mak || die "emake perl/perl.mak failed"
995 - fi
996 - git_emake || die "emake failed"
997 -
998 - if use emacs ; then
999 - elisp-compile contrib/emacs/git{,-blame}.el
1000 - fi
1001 -
1002 - if use perl && use cgi ; then
1003 - git_emake \
1004 - gitweb \
1005 - || die "emake gitweb (cgi) failed"
1006 - fi
1007 -
1008 - if [[ ${CHOST} == *-darwin* ]]; then
1009 - cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain"
1010 - git_emake || die "emake credential-osxkeychain"
1011 - fi
1012 -
1013 - cd "${S}"/Documentation
1014 - if [[ ${PV} == *9999 ]] ; then
1015 - git_emake man \
1016 - || die "emake man failed"
1017 - if use doc ; then
1018 - git_emake info html \
1019 - || die "emake info html failed"
1020 - fi
1021 - else
1022 - if use doc ; then
1023 - git_emake info \
1024 - || die "emake info html failed"
1025 - fi
1026 - fi
1027 -
1028 - if use subversion ; then
1029 - cd "${S}"/contrib/svn-fe
1030 - # by defining EXTLIBS we override the detection for libintl and
1031 - # libiconv, bug #516168
1032 - local nlsiconv=
1033 - use nls && use !elibc_glibc && nlsiconv+=" -lintl"
1034 - use iconv && use !elibc_glibc && nlsiconv+=" -liconv"
1035 - git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed"
1036 - if use doc ; then
1037 - git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed"
1038 - fi
1039 - cd "${S}"
1040 - fi
1041 -
1042 - if use gnome-keyring ; then
1043 - cd "${S}"/contrib/credential/gnome-keyring
1044 - git_emake || die "emake git-credential-gnome-keyring failed"
1045 - fi
1046 -
1047 - cd "${S}"/contrib/subtree
1048 - git_emake
1049 - use doc && git_emake doc
1050 -
1051 - if use mediawiki ; then
1052 - cd "${S}"/contrib/mw-to-git
1053 - git_emake
1054 - fi
1055 -}
1056 -
1057 -src_install() {
1058 - git_emake \
1059 - install || \
1060 - die "make install failed"
1061 -
1062 - if [[ ${CHOST} == *-darwin* ]]; then
1063 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
1064 - fi
1065 -
1066 - # Depending on the tarball and manual rebuild of the documentation, the
1067 - # manpages may exist in either OR both of these directories.
1068 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
1069 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
1070 -
1071 - dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
1072 - use doc && dodir /usr/share/doc/${PF}/html
1073 - for d in / /howto/ /technical/ ; do
1074 - docinto ${d}
1075 - dodoc Documentation${d}*.txt
1076 - use doc && dohtml -p ${d} Documentation${d}*.html
1077 - done
1078 - docinto /
1079 - # Upstream does not ship this pre-built :-(
1080 - use doc && doinfo Documentation/{git,gitman}.info
1081 -
1082 - newbashcomp contrib/completion/git-completion.bash ${PN}
1083 - bashcomp_alias git gitk
1084 - # Not really a bash-completion file (bug #477920)
1085 - # but still needed uncompressed (bug #507480)
1086 - insinto /usr/share/${PN}
1087 - doins contrib/completion/git-prompt.sh
1088 -
1089 - if use emacs ; then
1090 - elisp-install ${PN} contrib/emacs/git.{el,elc}
1091 - elisp-install ${PN} contrib/emacs/git-blame.{el,elc}
1092 - #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc}
1093 - # don't add automatically to the load-path, so the sitefile
1094 - # can do a conditional loading
1095 - touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
1096 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
1097 - fi
1098 -
1099 - if use python && use gtk ; then
1100 - python_doscript "${S}"/contrib/gitview/gitview
1101 - dodoc "${S}"/contrib/gitview/gitview.txt
1102 - fi
1103 -
1104 - #dobin contrib/fast-import/git-p4 # Moved upstream
1105 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
1106 - newbin contrib/fast-import/import-tars.perl import-tars
1107 - exeinto /usr/libexec/git-core/
1108 - newexe contrib/git-resurrect.sh git-resurrect
1109 -
1110 - # git-subtree
1111 - cd "${S}"/contrib/subtree
1112 - git_emake install || die "Failed to emake install git-subtree"
1113 - if use doc ; then
1114 - git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree"
1115 - fi
1116 - newdoc README README.git-subtree
1117 - dodoc git-subtree.txt
1118 - cd "${S}"
1119 -
1120 - if use mediawiki ; then
1121 - cd "${S}"/contrib/mw-to-git
1122 - git_emake install
1123 - cd "${S}"
1124 - fi
1125 -
1126 - # diff-highlight
1127 - dobin contrib/diff-highlight/diff-highlight
1128 - newdoc contrib/diff-highlight/README README.diff-highlight
1129 -
1130 - # git-jump
1131 - exeinto /usr/libexec/git-core/
1132 - doexe contrib/git-jump/git-jump
1133 - newdoc contrib/git-jump/README git-jump.txt
1134 -
1135 - # git-contacts
1136 - exeinto /usr/libexec/git-core/
1137 - doexe contrib/contacts/git-contacts
1138 - dodoc contrib/contacts/git-contacts.txt
1139 -
1140 - if use gnome-keyring ; then
1141 - cd "${S}"/contrib/credential/gnome-keyring
1142 - dobin git-credential-gnome-keyring
1143 - fi
1144 -
1145 - if use subversion ; then
1146 - cd "${S}"/contrib/svn-fe
1147 - dobin svn-fe
1148 - dodoc svn-fe.txt
1149 - use doc && doman svn-fe.1 && dohtml svn-fe.html
1150 - cd "${S}"
1151 - fi
1152 -
1153 - dodir /usr/share/${PN}/contrib
1154 - # The following are excluded:
1155 - # completion - installed above
1156 - # credential/gnome-keyring TODO
1157 - # diff-highlight - done above
1158 - # emacs - installed above
1159 - # examples - these are stuff that is not used in Git anymore actually
1160 - # git-jump - done above
1161 - # gitview - installed above
1162 - # p4import - excluded because fast-import has a better one
1163 - # patches - stuff the Git guys made to go upstream to other places
1164 - # persistent-https - TODO
1165 - # mw-to-git - TODO
1166 - # subtree - build seperately
1167 - # svnimport - use git-svn
1168 - # thunderbird-patch-inline - fixes thunderbird
1169 - for i in \
1170 - buildsystems convert-objects fast-import \
1171 - hg-to-git hooks remotes2config.sh rerere-train.sh \
1172 - stats workdir \
1173 - ; do
1174 - cp -rf \
1175 - "${S}"/contrib/${i} \
1176 - "${ED}"/usr/share/${PN}/contrib \
1177 - || die "Failed contrib ${i}"
1178 - done
1179 -
1180 - if use perl && use cgi ; then
1181 - # We used to install in /usr/share/${PN}/gitweb
1182 - # but upstream installs in /usr/share/gitweb
1183 - # so we will install a symlink and use their location for compat with other
1184 - # distros
1185 - dosym /usr/share/gitweb /usr/share/${PN}/gitweb
1186 -
1187 - # INSTALL discusses configuration issues, not just installation
1188 - docinto /
1189 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
1190 - newdoc "${S}"/gitweb/README README.gitweb
1191 -
1192 - find "${ED}"/usr/lib64/perl5/ \
1193 - -name .packlist \
1194 - -exec rm \{\} \;
1195 - else
1196 - rm -rf "${ED}"/usr/share/gitweb
1197 - fi
1198 -
1199 - if ! use subversion ; then
1200 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
1201 - "${ED}"/usr/share/man/man1/git-svn.1*
1202 - fi
1203 -
1204 - if use xinetd ; then
1205 - insinto /etc/xinetd.d
1206 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
1207 - fi
1208 -
1209 - if use !prefix ; then
1210 - newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon
1211 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
1212 - systemd_newunit "${FILESDIR}/git-daemon_at.service" "git-daemon@.service"
1213 - systemd_dounit "${FILESDIR}/git-daemon.socket"
1214 - fi
1215 -
1216 - perl_delete_localpod
1217 -}
1218 -
1219 -src_test() {
1220 - local disabled="" #t7004-tag.sh" #520270
1221 - local tests_cvs="t9200-git-cvsexportcommit.sh \
1222 - t9400-git-cvsserver-server.sh \
1223 - t9401-git-cvsserver-crlf.sh \
1224 - t9402-git-cvsserver-refs.sh \
1225 - t9600-cvsimport.sh \
1226 - t9601-cvsimport-vendor-branch.sh \
1227 - t9602-cvsimport-branches-tags.sh \
1228 - t9603-cvsimport-patchsets.sh \
1229 - t9604-cvsimport-timestamps.sh"
1230 - local tests_perl="t3701-add-interactive.sh \
1231 - t5502-quickfetch.sh \
1232 - t5512-ls-remote.sh \
1233 - t5520-pull.sh \
1234 - t7106-reset-unborn-branch.sh \
1235 - t7501-commit.sh"
1236 - # Bug #225601 - t0004 is not suitable for root perm
1237 - # Bug #219839 - t1004 is not suitable for root perm
1238 - # t0001-init.sh - check for init notices EPERM* fails
1239 - local tests_nonroot="t0001-init.sh \
1240 - t0004-unwritable.sh \
1241 - t0070-fundamental.sh \
1242 - t1004-read-tree-m-u-wf.sh \
1243 - t3700-add.sh \
1244 - t7300-clean.sh"
1245 - # t9100 still fails with symlinks in SVN 1.7
1246 - local test_svn="t9100-git-svn-basic.sh"
1247 -
1248 - # Unzip is used only for the testcase code, not by any normal parts of Git.
1249 - if ! has_version app-arch/unzip ; then
1250 - einfo "Disabling tar-tree tests"
1251 - disabled="${disabled} t5000-tar-tree.sh"
1252 - fi
1253 -
1254 - cvs=0
1255 - use cvs && let cvs=$cvs+1
1256 - if [[ ${EUID} -eq 0 ]]; then
1257 - if [[ $cvs -eq 1 ]]; then
1258 - ewarn "Skipping CVS tests because CVS does not work as root!"
1259 - ewarn "You should retest with FEATURES=userpriv!"
1260 - disabled="${disabled} ${tests_cvs}"
1261 - fi
1262 - einfo "Skipping other tests that require being non-root"
1263 - disabled="${disabled} ${tests_nonroot}"
1264 - else
1265 - [[ $cvs -gt 0 ]] && \
1266 - has_version dev-vcs/cvs && \
1267 - let cvs=$cvs+1
1268 - [[ $cvs -gt 1 ]] && \
1269 - has_version "dev-vcs/cvs[server]" && \
1270 - let cvs=$cvs+1
1271 - if [[ $cvs -lt 3 ]]; then
1272 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
1273 - disabled="${disabled} ${tests_cvs}"
1274 - fi
1275 - fi
1276 -
1277 - if ! use perl ; then
1278 - einfo "Disabling tests that need Perl"
1279 - disabled="${disabled} ${tests_perl}"
1280 - fi
1281 -
1282 - einfo "Disabling tests that fail with SVN 1.7"
1283 - disabled="${disabled} ${test_svn}"
1284 -
1285 - # Reset all previously disabled tests
1286 - cd "${S}/t"
1287 - for i in *.sh.DISABLED ; do
1288 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
1289 - done
1290 - einfo "Disabled tests:"
1291 - for i in ${disabled} ; do
1292 - [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
1293 - done
1294 -
1295 - # Avoid the test system removing the results because we want them ourselves
1296 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
1297 - -i "${S}"/t/Makefile
1298 -
1299 - # Clean old results first, must always run
1300 - cd "${S}/t"
1301 - nonfatal git_emake clean
1302 -
1303 - # Now run the tests, keep going if we hit an error, and don't terminate on
1304 - # failure
1305 - cd "${S}"
1306 - einfo "Start test run"
1307 - #MAKEOPTS=-j1
1308 - nonfatal git_emake --keep-going test
1309 - rc=$?
1310 -
1311 - # Display nice results, now print the results
1312 - cd "${S}/t"
1313 - nonfatal git_emake aggregate-results
1314 -
1315 - # And bail if there was a problem
1316 - [ $rc -eq 0 ] || die "tests failed. Please file a bug."
1317 -}
1318 -
1319 -showpkgdeps() {
1320 - local pkg=$1
1321 - shift
1322 - elog " $(printf "%-17s:" ${pkg}) ${@}"
1323 -}
1324 -
1325 -pkg_postinst() {
1326 - use emacs && elisp-site-regen
1327 - einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
1328 - einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
1329 - einfo "Note that the prompt bash code is now in that separate script"
1330 - elog "These additional scripts need some dependencies:"
1331 - echo
1332 - showpkgdeps git-quiltimport "dev-util/quilt"
1333 - showpkgdeps git-instaweb \
1334 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
1335 - echo
1336 -}
1337 -
1338 -pkg_postrm() {
1339 - use emacs && elisp-site-regen
1340 -}
1341
1342 diff --git a/dev-vcs/git/git-2.5.3.ebuild b/dev-vcs/git/git-2.5.3.ebuild
1343 deleted file mode 100644
1344 index cf36860..0000000
1345 --- a/dev-vcs/git/git-2.5.3.ebuild
1346 +++ /dev/null
1347 @@ -1,639 +0,0 @@
1348 -# Copyright 1999-2015 Gentoo Foundation
1349 -# Distributed under the terms of the GNU General Public License v2
1350 -# $Id$
1351 -
1352 -EAPI=5
1353 -
1354 -GENTOO_DEPEND_ON_PERL=no
1355 -
1356 -# bug #329479: git-remote-testgit is not multiple-version aware
1357 -PYTHON_COMPAT=( python2_7 )
1358 -[[ ${PV} == *9999 ]] && SCM="git-2"
1359 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
1360 -EGIT_MASTER=pu
1361 -
1362 -inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python-single-r1 systemd ${SCM}
1363 -
1364 -MY_PV="${PV/_rc/.rc}"
1365 -MY_P="${PN}-${MY_PV}"
1366 -
1367 -DOC_VER=${MY_PV}
1368 -
1369 -DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
1370 -HOMEPAGE="http://www.git-scm.com/"
1371 -if [[ ${PV} != *9999 ]]; then
1372 - SRC_URI_SUFFIX="xz"
1373 - SRC_URI_GOOG="https://git-core.googlecode.com/files"
1374 - SRC_URI_KORG="mirror://kernel/software/scm/git"
1375 - SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
1376 - ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
1377 - ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1378 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1379 - doc? (
1380 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1381 - ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1382 - )"
1383 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1384 -fi
1385 -
1386 -LICENSE="GPL-2"
1387 -SLOT="0"
1388 -IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
1389 -
1390 -# Common to both DEPEND and RDEPEND
1391 -CDEPEND="
1392 - dev-libs/openssl:0=
1393 - sys-libs/zlib
1394 - pcre? ( dev-libs/libpcre )
1395 - perl? ( dev-lang/perl:=[-build(-)] )
1396 - tk? ( dev-lang/tk:0= )
1397 - curl? (
1398 - net-misc/curl
1399 - webdav? ( dev-libs/expat )
1400 - )
1401 - emacs? ( virtual/emacs )
1402 - gnome-keyring? ( gnome-base/libgnome-keyring )"
1403 -
1404 -RDEPEND="${CDEPEND}
1405 - gpg? ( app-crypt/gnupg )
1406 - mediawiki? (
1407 - dev-perl/HTML-Tree
1408 - dev-perl/MediaWiki-API
1409 - )
1410 - perl? ( dev-perl/Error
1411 - dev-perl/Net-SMTP-SSL
1412 - dev-perl/Authen-SASL
1413 - cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) )
1414 - cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite )
1415 - subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
1416 - )
1417 - python? ( gtk?
1418 - (
1419 - >=dev-python/pygtk-2.8[${PYTHON_USEDEP}]
1420 - >=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}]
1421 - )
1422 - ${PYTHON_DEPS} )"
1423 -
1424 -# This is how info docs are created with Git:
1425 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
1426 -# .xml/docbook --(docbook2texi.pl)--> .texi
1427 -# .texi --(makeinfo)---------> .info
1428 -DEPEND="${CDEPEND}
1429 - doc? (
1430 - app-text/asciidoc
1431 - app-text/docbook2X
1432 - sys-apps/texinfo
1433 - app-text/xmlto
1434 - )
1435 - nls? ( sys-devel/gettext )
1436 - test? ( app-crypt/gnupg )"
1437 -
1438 -# Live ebuild builds man pages and HTML docs, additionally
1439 -if [[ ${PV} == *9999 ]]; then
1440 - DEPEND="${DEPEND}
1441 - app-text/asciidoc"
1442 -fi
1443 -
1444 -SITEFILE=50${PN}-gentoo.el
1445 -S="${WORKDIR}/${MY_P}"
1446 -
1447 -REQUIRED_USE="
1448 - cgi? ( perl )
1449 - cvs? ( perl )
1450 - mediawiki? ( perl )
1451 - subversion? ( perl )
1452 - webdav? ( curl )
1453 - gtk? ( python )
1454 - python? ( ${PYTHON_REQUIRED_USE} )
1455 -"
1456 -
1457 -pkg_setup() {
1458 - if use subversion && has_version "dev-vcs/subversion[dso]"; then
1459 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
1460 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
1461 - ewarn "have been warned."
1462 - fi
1463 - if use python ; then
1464 - python-single-r1_pkg_setup
1465 - fi
1466 -}
1467 -
1468 -# This is needed because for some obscure reasons future calls to make don't
1469 -# pick up these exports if we export them in src_unpack()
1470 -exportmakeopts() {
1471 - local myopts
1472 -
1473 - if use blksha1 ; then
1474 - myopts+=" BLK_SHA1=YesPlease"
1475 - elif use ppcsha1 ; then
1476 - myopts+=" PPC_SHA1=YesPlease"
1477 - fi
1478 -
1479 - if use curl ; then
1480 - use webdav || myopts+=" NO_EXPAT=YesPlease"
1481 - else
1482 - myopts+=" NO_CURL=YesPlease"
1483 - fi
1484 -
1485 - # broken assumptions, because of broken build system ...
1486 - myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
1487 - myopts+=" INSTALL=install TAR=tar"
1488 - myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
1489 - myopts+=" SANE_TOOL_PATH="
1490 - myopts+=" OLD_ICONV="
1491 - myopts+=" NO_EXTERNAL_GREP="
1492 -
1493 - # For svn-fe
1494 - extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
1495 -
1496 - # can't define this to null, since the entire makefile depends on it
1497 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
1498 -
1499 - use iconv \
1500 - || myopts+=" NO_ICONV=YesPlease"
1501 - use nls \
1502 - || myopts+=" NO_GETTEXT=YesPlease"
1503 - use tk \
1504 - || myopts+=" NO_TCLTK=YesPlease"
1505 - use pcre \
1506 - && myopts+=" USE_LIBPCRE=yes" \
1507 - && extlibs+=" -lpcre"
1508 - use perl \
1509 - && myopts+=" INSTALLDIRS=vendor" \
1510 - || myopts+=" NO_PERL=YesPlease"
1511 - use python \
1512 - || myopts+=" NO_PYTHON=YesPlease"
1513 - use subversion \
1514 - || myopts+=" NO_SVN_TESTS=YesPlease"
1515 - use threads \
1516 - && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
1517 - || myopts+=" NO_PTHREADS=YesPlease"
1518 - use cvs \
1519 - || myopts+=" NO_CVS=YesPlease"
1520 -# Disabled until ~m68k-mint can be keyworded again
1521 -# if [[ ${CHOST} == *-mint* ]] ; then
1522 -# myopts+=" NO_MMAP=YesPlease"
1523 -# myopts+=" NO_IPV6=YesPlease"
1524 -# myopts+=" NO_STRLCPY=YesPlease"
1525 -# myopts+=" NO_MEMMEM=YesPlease"
1526 -# myopts+=" NO_MKDTEMP=YesPlease"
1527 -# myopts+=" NO_MKSTEMPS=YesPlease"
1528 -# fi
1529 - if [[ ${CHOST} == ia64-*-hpux* ]]; then
1530 - myopts+=" NO_NSEC=YesPlease"
1531 - fi
1532 - if [[ ${CHOST} == *-*-aix* ]]; then
1533 - myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
1534 - fi
1535 - if [[ ${CHOST} == *-solaris* ]]; then
1536 - myopts+=" NEEDS_LIBICONV=YesPlease"
1537 - fi
1538 -
1539 - has_version '>=app-text/asciidoc-8.0' \
1540 - && myopts+=" ASCIIDOC8=YesPlease"
1541 - myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
1542 -
1543 - # Bug 290465:
1544 - # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
1545 - [[ "${CHOST}" == *-uclibc* ]] && \
1546 - myopts+=" NO_NSEC=YesPlease"
1547 -
1548 - export MY_MAKEOPTS="${myopts}"
1549 - export EXTLIBS="${extlibs}"
1550 -}
1551 -
1552 -src_unpack() {
1553 - if [[ ${PV} != *9999 ]]; then
1554 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
1555 - cd "${S}"
1556 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1557 - use doc && \
1558 - cd "${S}"/Documentation && \
1559 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1560 - cd "${S}"
1561 - else
1562 - git-2_src_unpack
1563 - cd "${S}"
1564 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
1565 - fi
1566 -
1567 -}
1568 -
1569 -src_prepare() {
1570 - # bug #350330 - automagic CVS when we don't want it is bad.
1571 - epatch "${FILESDIR}"/git-2.2.2-optional-cvs.patch
1572 -
1573 - # install mediawiki perl modules also in vendor_dir
1574 - # hack, needs better upstream solution
1575 - epatch "${FILESDIR}"/git-1.8.5-mw-vendor.patch
1576 -
1577 - epatch "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
1578 -
1579 - # Bug #493306, where FreeBSD 10.x merged libiconv into its libc.
1580 - epatch "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch
1581 -
1582 - epatch_user
1583 -
1584 - sed -i \
1585 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
1586 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
1587 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
1588 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
1589 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
1590 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
1591 - Makefile contrib/svn-fe/Makefile || die "sed failed"
1592 -
1593 - # Never install the private copy of Error.pm (bug #296310)
1594 - sed -i \
1595 - -e '/private-Error.pm/s,^,#,' \
1596 - perl/Makefile.PL
1597 -
1598 - # Fix docbook2texi command
1599 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
1600 - Documentation/Makefile || die "sed failed"
1601 -
1602 - # Fix git-subtree missing DESTDIR
1603 - sed -i \
1604 - -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \
1605 - -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \
1606 - contrib/subtree/Makefile
1607 -}
1608 -
1609 -git_emake() {
1610 - # bug #326625: PERL_PATH, PERL_MM_OPT
1611 - # bug #320647: PYTHON_PATH
1612 - PYTHON_PATH=""
1613 - use python && PYTHON_PATH="${PYTHON}"
1614 - emake ${MY_MAKEOPTS} \
1615 - DESTDIR="${D}" \
1616 - OPTCFLAGS="${CFLAGS}" \
1617 - OPTLDFLAGS="${LDFLAGS}" \
1618 - OPTCC="$(tc-getCC)" \
1619 - OPTAR="$(tc-getAR)" \
1620 - prefix="${EPREFIX}"/usr \
1621 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
1622 - sysconfdir="${EPREFIX}"/etc \
1623 - PYTHON_PATH="${PYTHON_PATH}" \
1624 - PERL_MM_OPT="" \
1625 - GIT_TEST_OPTS="--no-color" \
1626 - V=1 \
1627 - "$@"
1628 - # This is the fix for bug #326625, but it also causes breakage, see bug
1629 - # #352693.
1630 - # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
1631 -}
1632 -
1633 -src_configure() {
1634 - exportmakeopts
1635 -}
1636 -
1637 -src_compile() {
1638 - if use perl ; then
1639 - git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
1640 - git_emake perl/perl.mak || die "emake perl/perl.mak failed"
1641 - fi
1642 - git_emake || die "emake failed"
1643 -
1644 - if use emacs ; then
1645 - elisp-compile contrib/emacs/git{,-blame}.el
1646 - fi
1647 -
1648 - if use perl && use cgi ; then
1649 - git_emake \
1650 - gitweb \
1651 - || die "emake gitweb (cgi) failed"
1652 - fi
1653 -
1654 - if [[ ${CHOST} == *-darwin* ]]; then
1655 - cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain"
1656 - git_emake || die "emake credential-osxkeychain"
1657 - fi
1658 -
1659 - cd "${S}"/Documentation
1660 - if [[ ${PV} == *9999 ]] ; then
1661 - git_emake man \
1662 - || die "emake man failed"
1663 - if use doc ; then
1664 - git_emake info html \
1665 - || die "emake info html failed"
1666 - fi
1667 - else
1668 - if use doc ; then
1669 - git_emake info \
1670 - || die "emake info html failed"
1671 - fi
1672 - fi
1673 -
1674 - if use subversion ; then
1675 - cd "${S}"/contrib/svn-fe
1676 - # by defining EXTLIBS we override the detection for libintl and
1677 - # libiconv, bug #516168
1678 - local nlsiconv=
1679 - use nls && use !elibc_glibc && nlsiconv+=" -lintl"
1680 - use iconv && use !elibc_glibc && nlsiconv+=" -liconv"
1681 - git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed"
1682 - if use doc ; then
1683 - git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed"
1684 - fi
1685 - cd "${S}"
1686 - fi
1687 -
1688 - if use gnome-keyring ; then
1689 - cd "${S}"/contrib/credential/gnome-keyring
1690 - git_emake || die "emake git-credential-gnome-keyring failed"
1691 - fi
1692 -
1693 - cd "${S}"/contrib/subtree
1694 - git_emake
1695 - use doc && git_emake doc
1696 -
1697 - if use mediawiki ; then
1698 - cd "${S}"/contrib/mw-to-git
1699 - git_emake
1700 - fi
1701 -}
1702 -
1703 -src_install() {
1704 - git_emake \
1705 - install || \
1706 - die "make install failed"
1707 -
1708 - if [[ ${CHOST} == *-darwin* ]]; then
1709 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
1710 - fi
1711 -
1712 - # Depending on the tarball and manual rebuild of the documentation, the
1713 - # manpages may exist in either OR both of these directories.
1714 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
1715 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
1716 -
1717 - dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
1718 - use doc && dodir /usr/share/doc/${PF}/html
1719 - for d in / /howto/ /technical/ ; do
1720 - docinto ${d}
1721 - dodoc Documentation${d}*.txt
1722 - use doc && dohtml -p ${d} Documentation${d}*.html
1723 - done
1724 - docinto /
1725 - # Upstream does not ship this pre-built :-(
1726 - use doc && doinfo Documentation/{git,gitman}.info
1727 -
1728 - newbashcomp contrib/completion/git-completion.bash ${PN}
1729 - bashcomp_alias git gitk
1730 - # Not really a bash-completion file (bug #477920)
1731 - # but still needed uncompressed (bug #507480)
1732 - insinto /usr/share/${PN}
1733 - doins contrib/completion/git-prompt.sh
1734 -
1735 - if use emacs ; then
1736 - elisp-install ${PN} contrib/emacs/git.{el,elc}
1737 - elisp-install ${PN} contrib/emacs/git-blame.{el,elc}
1738 - #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc}
1739 - # don't add automatically to the load-path, so the sitefile
1740 - # can do a conditional loading
1741 - touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
1742 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
1743 - fi
1744 -
1745 - if use python && use gtk ; then
1746 - python_doscript "${S}"/contrib/gitview/gitview
1747 - dodoc "${S}"/contrib/gitview/gitview.txt
1748 - fi
1749 -
1750 - #dobin contrib/fast-import/git-p4 # Moved upstream
1751 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
1752 - newbin contrib/fast-import/import-tars.perl import-tars
1753 - exeinto /usr/libexec/git-core/
1754 - newexe contrib/git-resurrect.sh git-resurrect
1755 -
1756 - # git-subtree
1757 - cd "${S}"/contrib/subtree
1758 - git_emake install || die "Failed to emake install git-subtree"
1759 - if use doc ; then
1760 - git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree"
1761 - fi
1762 - newdoc README README.git-subtree
1763 - dodoc git-subtree.txt
1764 - cd "${S}"
1765 -
1766 - if use mediawiki ; then
1767 - cd "${S}"/contrib/mw-to-git
1768 - git_emake install
1769 - cd "${S}"
1770 - fi
1771 -
1772 - # diff-highlight
1773 - dobin contrib/diff-highlight/diff-highlight
1774 - newdoc contrib/diff-highlight/README README.diff-highlight
1775 -
1776 - # git-jump
1777 - exeinto /usr/libexec/git-core/
1778 - doexe contrib/git-jump/git-jump
1779 - newdoc contrib/git-jump/README git-jump.txt
1780 -
1781 - # git-contacts
1782 - exeinto /usr/libexec/git-core/
1783 - doexe contrib/contacts/git-contacts
1784 - dodoc contrib/contacts/git-contacts.txt
1785 -
1786 - if use gnome-keyring ; then
1787 - cd "${S}"/contrib/credential/gnome-keyring
1788 - dobin git-credential-gnome-keyring
1789 - fi
1790 -
1791 - if use subversion ; then
1792 - cd "${S}"/contrib/svn-fe
1793 - dobin svn-fe
1794 - dodoc svn-fe.txt
1795 - use doc && doman svn-fe.1 && dohtml svn-fe.html
1796 - cd "${S}"
1797 - fi
1798 -
1799 - dodir /usr/share/${PN}/contrib
1800 - # The following are excluded:
1801 - # completion - installed above
1802 - # credential/gnome-keyring TODO
1803 - # diff-highlight - done above
1804 - # emacs - installed above
1805 - # examples - these are stuff that is not used in Git anymore actually
1806 - # git-jump - done above
1807 - # gitview - installed above
1808 - # p4import - excluded because fast-import has a better one
1809 - # patches - stuff the Git guys made to go upstream to other places
1810 - # persistent-https - TODO
1811 - # mw-to-git - TODO
1812 - # subtree - build seperately
1813 - # svnimport - use git-svn
1814 - # thunderbird-patch-inline - fixes thunderbird
1815 - for i in \
1816 - buildsystems convert-objects fast-import \
1817 - hg-to-git hooks remotes2config.sh rerere-train.sh \
1818 - stats workdir \
1819 - ; do
1820 - cp -rf \
1821 - "${S}"/contrib/${i} \
1822 - "${ED}"/usr/share/${PN}/contrib \
1823 - || die "Failed contrib ${i}"
1824 - done
1825 -
1826 - if use perl && use cgi ; then
1827 - # We used to install in /usr/share/${PN}/gitweb
1828 - # but upstream installs in /usr/share/gitweb
1829 - # so we will install a symlink and use their location for compat with other
1830 - # distros
1831 - dosym /usr/share/gitweb /usr/share/${PN}/gitweb
1832 -
1833 - # INSTALL discusses configuration issues, not just installation
1834 - docinto /
1835 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
1836 - newdoc "${S}"/gitweb/README README.gitweb
1837 -
1838 - find "${ED}"/usr/lib64/perl5/ \
1839 - -name .packlist \
1840 - -exec rm \{\} \;
1841 - else
1842 - rm -rf "${ED}"/usr/share/gitweb
1843 - fi
1844 -
1845 - if ! use subversion ; then
1846 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
1847 - "${ED}"/usr/share/man/man1/git-svn.1*
1848 - fi
1849 -
1850 - if use xinetd ; then
1851 - insinto /etc/xinetd.d
1852 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
1853 - fi
1854 -
1855 - if use !prefix ; then
1856 - newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon
1857 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
1858 - systemd_newunit "${FILESDIR}/git-daemon_at.service" "git-daemon@.service"
1859 - systemd_dounit "${FILESDIR}/git-daemon.socket"
1860 - fi
1861 -
1862 - perl_delete_localpod
1863 -}
1864 -
1865 -src_test() {
1866 - local disabled="" #t7004-tag.sh" #520270
1867 - local tests_cvs="t9200-git-cvsexportcommit.sh \
1868 - t9400-git-cvsserver-server.sh \
1869 - t9401-git-cvsserver-crlf.sh \
1870 - t9402-git-cvsserver-refs.sh \
1871 - t9600-cvsimport.sh \
1872 - t9601-cvsimport-vendor-branch.sh \
1873 - t9602-cvsimport-branches-tags.sh \
1874 - t9603-cvsimport-patchsets.sh \
1875 - t9604-cvsimport-timestamps.sh"
1876 - local tests_perl="t3701-add-interactive.sh \
1877 - t5502-quickfetch.sh \
1878 - t5512-ls-remote.sh \
1879 - t5520-pull.sh \
1880 - t7106-reset-unborn-branch.sh \
1881 - t7501-commit.sh"
1882 - # Bug #225601 - t0004 is not suitable for root perm
1883 - # Bug #219839 - t1004 is not suitable for root perm
1884 - # t0001-init.sh - check for init notices EPERM* fails
1885 - local tests_nonroot="t0001-init.sh \
1886 - t0004-unwritable.sh \
1887 - t0070-fundamental.sh \
1888 - t1004-read-tree-m-u-wf.sh \
1889 - t3700-add.sh \
1890 - t7300-clean.sh"
1891 - # t9100 still fails with symlinks in SVN 1.7
1892 - local test_svn="t9100-git-svn-basic.sh"
1893 -
1894 - # Unzip is used only for the testcase code, not by any normal parts of Git.
1895 - if ! has_version app-arch/unzip ; then
1896 - einfo "Disabling tar-tree tests"
1897 - disabled="${disabled} t5000-tar-tree.sh"
1898 - fi
1899 -
1900 - cvs=0
1901 - use cvs && let cvs=$cvs+1
1902 - if [[ ${EUID} -eq 0 ]]; then
1903 - if [[ $cvs -eq 1 ]]; then
1904 - ewarn "Skipping CVS tests because CVS does not work as root!"
1905 - ewarn "You should retest with FEATURES=userpriv!"
1906 - disabled="${disabled} ${tests_cvs}"
1907 - fi
1908 - einfo "Skipping other tests that require being non-root"
1909 - disabled="${disabled} ${tests_nonroot}"
1910 - else
1911 - [[ $cvs -gt 0 ]] && \
1912 - has_version dev-vcs/cvs && \
1913 - let cvs=$cvs+1
1914 - [[ $cvs -gt 1 ]] && \
1915 - has_version "dev-vcs/cvs[server]" && \
1916 - let cvs=$cvs+1
1917 - if [[ $cvs -lt 3 ]]; then
1918 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
1919 - disabled="${disabled} ${tests_cvs}"
1920 - fi
1921 - fi
1922 -
1923 - if ! use perl ; then
1924 - einfo "Disabling tests that need Perl"
1925 - disabled="${disabled} ${tests_perl}"
1926 - fi
1927 -
1928 - einfo "Disabling tests that fail with SVN 1.7"
1929 - disabled="${disabled} ${test_svn}"
1930 -
1931 - # Reset all previously disabled tests
1932 - cd "${S}/t"
1933 - for i in *.sh.DISABLED ; do
1934 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
1935 - done
1936 - einfo "Disabled tests:"
1937 - for i in ${disabled} ; do
1938 - [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
1939 - done
1940 -
1941 - # Avoid the test system removing the results because we want them ourselves
1942 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
1943 - -i "${S}"/t/Makefile
1944 -
1945 - # Clean old results first, must always run
1946 - cd "${S}/t"
1947 - nonfatal git_emake clean
1948 -
1949 - # Now run the tests, keep going if we hit an error, and don't terminate on
1950 - # failure
1951 - cd "${S}"
1952 - einfo "Start test run"
1953 - #MAKEOPTS=-j1
1954 - nonfatal git_emake --keep-going test
1955 - rc=$?
1956 -
1957 - # Display nice results, now print the results
1958 - cd "${S}/t"
1959 - nonfatal git_emake aggregate-results
1960 -
1961 - # And bail if there was a problem
1962 - [ $rc -eq 0 ] || die "tests failed. Please file a bug."
1963 -}
1964 -
1965 -showpkgdeps() {
1966 - local pkg=$1
1967 - shift
1968 - elog " $(printf "%-17s:" ${pkg}) ${@}"
1969 -}
1970 -
1971 -pkg_postinst() {
1972 - use emacs && elisp-site-regen
1973 - einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
1974 - einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
1975 - einfo "Note that the prompt bash code is now in that separate script"
1976 - elog "These additional scripts need some dependencies:"
1977 - echo
1978 - showpkgdeps git-quiltimport "dev-util/quilt"
1979 - showpkgdeps git-instaweb \
1980 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
1981 - echo
1982 -}
1983 -
1984 -pkg_postrm() {
1985 - use emacs && elisp-site-regen
1986 -}