Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/
Date: Sun, 20 Sep 2015 17:02:55
Message-Id: 1442768562.9d5bd3c4d29dd62736fa6fa888f344f41a4d981d.hasufell@gentoo
1 commit: 9d5bd3c4d29dd62736fa6fa888f344f41a4d981d
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 17:01:37 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 17:02:42 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d5bd3c4
7
8 dev-vcs/git: add libressl support
9
10 .../{git-9999-r3.ebuild => git-2.5.3-r1.ebuild} | 87 +++++++++++-----------
11 dev-vcs/git/git-9999-r3.ebuild | 5 +-
12 2 files changed, 47 insertions(+), 45 deletions(-)
13
14 diff --git a/dev-vcs/git/git-9999-r3.ebuild b/dev-vcs/git/git-2.5.3-r1.ebuild
15 similarity index 90%
16 copy from dev-vcs/git/git-9999-r3.ebuild
17 copy to dev-vcs/git/git-2.5.3-r1.ebuild
18 index bc14980..c38a8ea 100644
19 --- a/dev-vcs/git/git-9999-r3.ebuild
20 +++ b/dev-vcs/git/git-2.5.3-r1.ebuild
21 @@ -38,15 +38,16 @@ fi
22
23 LICENSE="GPL-2"
24 SLOT="0"
25 -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"
26 +IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv libressl mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
27
28 # Common to both DEPEND and RDEPEND
29 CDEPEND="
30 - dev-libs/openssl:0
31 + !libressl? ( dev-libs/openssl:0= )
32 + libressl? ( dev-libs/libressl:= )
33 sys-libs/zlib
34 pcre? ( dev-libs/libpcre )
35 perl? ( dev-lang/perl:=[-build(-)] )
36 - tk? ( dev-lang/tk:0 )
37 + tk? ( dev-lang/tk:0= )
38 curl? (
39 net-misc/curl
40 webdav? ( dev-libs/expat )
41 @@ -79,7 +80,6 @@ RDEPEND="${CDEPEND}
42 # .xml/docbook --(docbook2texi.pl)--> .texi
43 # .texi --(makeinfo)---------> .info
44 DEPEND="${CDEPEND}
45 - app-arch/cpio
46 doc? (
47 app-text/asciidoc
48 app-text/docbook2X
49 @@ -125,24 +125,24 @@ exportmakeopts() {
50 local myopts
51
52 if use blksha1 ; then
53 - myopts="${myopts} BLK_SHA1=YesPlease"
54 + myopts+=" BLK_SHA1=YesPlease"
55 elif use ppcsha1 ; then
56 - myopts="${myopts} PPC_SHA1=YesPlease"
57 + myopts+=" PPC_SHA1=YesPlease"
58 fi
59
60 if use curl ; then
61 - use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
62 + use webdav || myopts+=" NO_EXPAT=YesPlease"
63 else
64 - myopts="${myopts} NO_CURL=YesPlease"
65 + myopts+=" NO_CURL=YesPlease"
66 fi
67
68 # broken assumptions, because of broken build system ...
69 - myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
70 - myopts="${myopts} INSTALL=install TAR=tar"
71 - myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
72 - myopts="${myopts} SANE_TOOL_PATH="
73 - myopts="${myopts} OLD_ICONV="
74 - myopts="${myopts} NO_EXTERNAL_GREP="
75 + myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
76 + myopts+=" INSTALL=install TAR=tar"
77 + myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
78 + myopts+=" SANE_TOOL_PATH="
79 + myopts+=" OLD_ICONV="
80 + myopts+=" NO_EXTERNAL_GREP="
81
82 # For svn-fe
83 extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
84 @@ -151,55 +151,53 @@ exportmakeopts() {
85 sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
86
87 use iconv \
88 - || myopts="${myopts} NO_ICONV=YesPlease"
89 + || myopts+=" NO_ICONV=YesPlease"
90 use nls \
91 - || myopts="${myopts} NO_GETTEXT=YesPlease"
92 + || myopts+=" NO_GETTEXT=YesPlease"
93 use tk \
94 - || myopts="${myopts} NO_TCLTK=YesPlease"
95 + || myopts+=" NO_TCLTK=YesPlease"
96 use pcre \
97 - && myopts="${myopts} USE_LIBPCRE=yes" \
98 - && extlibs="${extlibs} -lpcre"
99 + && myopts+=" USE_LIBPCRE=yes" \
100 + && extlibs+=" -lpcre"
101 use perl \
102 - && myopts="${myopts} INSTALLDIRS=vendor" \
103 - || myopts="${myopts} NO_PERL=YesPlease"
104 + && myopts+=" INSTALLDIRS=vendor" \
105 + || myopts+=" NO_PERL=YesPlease"
106 use python \
107 - || myopts="${myopts} NO_PYTHON=YesPlease"
108 + || myopts+=" NO_PYTHON=YesPlease"
109 use subversion \
110 - || myopts="${myopts} NO_SVN_TESTS=YesPlease"
111 + || myopts+=" NO_SVN_TESTS=YesPlease"
112 use threads \
113 - && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" \
114 - || myopts="${myopts} NO_PTHREADS=YesPlease"
115 + && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
116 + || myopts+=" NO_PTHREADS=YesPlease"
117 use cvs \
118 - || myopts="${myopts} NO_CVS=YesPlease"
119 + || myopts+=" NO_CVS=YesPlease"
120 # Disabled until ~m68k-mint can be keyworded again
121 # if [[ ${CHOST} == *-mint* ]] ; then
122 -# myopts="${myopts} NO_MMAP=YesPlease"
123 -# myopts="${myopts} NO_IPV6=YesPlease"
124 -# myopts="${myopts} NO_STRLCPY=YesPlease"
125 -# myopts="${myopts} NO_MEMMEM=YesPlease"
126 -# myopts="${myopts} NO_MKDTEMP=YesPlease"
127 -# myopts="${myopts} NO_MKSTEMPS=YesPlease"
128 +# myopts+=" NO_MMAP=YesPlease"
129 +# myopts+=" NO_IPV6=YesPlease"
130 +# myopts+=" NO_STRLCPY=YesPlease"
131 +# myopts+=" NO_MEMMEM=YesPlease"
132 +# myopts+=" NO_MKDTEMP=YesPlease"
133 +# myopts+=" NO_MKSTEMPS=YesPlease"
134 # fi
135 if [[ ${CHOST} == ia64-*-hpux* ]]; then
136 - myopts="${myopts} NO_NSEC=YesPlease"
137 + myopts+=" NO_NSEC=YesPlease"
138 fi
139 if [[ ${CHOST} == *-*-aix* ]]; then
140 - myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease"
141 + myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
142 fi
143 if [[ ${CHOST} == *-solaris* ]]; then
144 - myopts="${myopts} NEEDS_LIBICONV=YesPlease"
145 - myopts="${myopts} HAVE_CLOCK_MONOTONIC=1"
146 - myopts="${myopts} HAVE_GETDELIM=1"
147 + myopts+=" NEEDS_LIBICONV=YesPlease"
148 fi
149
150 has_version '>=app-text/asciidoc-8.0' \
151 - && myopts="${myopts} ASCIIDOC8=YesPlease"
152 - myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
153 + && myopts+=" ASCIIDOC8=YesPlease"
154 + myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
155
156 # Bug 290465:
157 # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
158 [[ "${CHOST}" == *-uclibc* ]] && \
159 - myopts="${myopts} NO_NSEC=YesPlease"
160 + myopts+=" NO_NSEC=YesPlease"
161
162 export MY_MAKEOPTS="${myopts}"
163 export EXTLIBS="${extlibs}"
164 @@ -232,6 +230,9 @@ src_prepare() {
165
166 epatch "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
167
168 + # Bug #493306, where FreeBSD 10.x merged libiconv into its libc.
169 + epatch "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch
170 +
171 epatch_user
172
173 sed -i \
174 @@ -300,8 +301,8 @@ src_compile() {
175
176 if use perl && use cgi ; then
177 git_emake \
178 - gitweb/gitweb.cgi \
179 - || die "emake gitweb/gitweb.cgi failed"
180 + gitweb \
181 + || die "emake gitweb (cgi) failed"
182 fi
183
184 if [[ ${CHOST} == *-darwin* ]]; then
185 @@ -516,7 +517,7 @@ src_install() {
186 }
187
188 src_test() {
189 - local disabled=""
190 + local disabled="" #t7004-tag.sh" #520270
191 local tests_cvs="t9200-git-cvsexportcommit.sh \
192 t9400-git-cvsserver-server.sh \
193 t9401-git-cvsserver-crlf.sh \
194
195 diff --git a/dev-vcs/git/git-9999-r3.ebuild b/dev-vcs/git/git-9999-r3.ebuild
196 index bc14980..a9feb91 100644
197 --- a/dev-vcs/git/git-9999-r3.ebuild
198 +++ b/dev-vcs/git/git-9999-r3.ebuild
199 @@ -38,11 +38,12 @@ fi
200
201 LICENSE="GPL-2"
202 SLOT="0"
203 -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"
204 +IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv libressl mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
205
206 # Common to both DEPEND and RDEPEND
207 CDEPEND="
208 - dev-libs/openssl:0
209 + !libressl? ( dev-libs/openssl:0 )
210 + libressl? ( dev-libs/libressl )
211 sys-libs/zlib
212 pcre? ( dev-libs/libpcre )
213 perl? ( dev-lang/perl:=[-build(-)] )