1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.4.4.ebuild,v 1.2 2011/08/19 18:43:47 darkside Exp $ |
4 |
|
5 |
EAPI=3 |
6 |
|
7 |
GENTOO_DEPEND_ON_PERL=no |
8 |
|
9 |
# bug #329479: git-remote-testgit is not multiple-version aware |
10 |
PYTHON_DEPEND="python? 2" |
11 |
|
12 |
inherit toolchain-funcs eutils elisp-common perl-module bash-completion python |
13 |
[ "$PV" == "9999" ] && inherit git |
14 |
|
15 |
MY_PV="${PV/_rc/.rc}" |
16 |
MY_P="${PN}-${MY_PV}" |
17 |
|
18 |
DOC_VER=${MY_PV} |
19 |
|
20 |
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team" |
21 |
HOMEPAGE="http://www.git-scm.com/" |
22 |
if [ "$PV" != "9999" ]; then |
23 |
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 |
24 |
mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 |
25 |
doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" |
26 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
27 |
else |
28 |
SRC_URI="" |
29 |
EGIT_BRANCH="master" |
30 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
31 |
# EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git" |
32 |
KEYWORDS="" |
33 |
fi |
34 |
|
35 |
LICENSE="GPL-2" |
36 |
SLOT="0" |
37 |
IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion" |
38 |
|
39 |
# Common to both DEPEND and RDEPEND |
40 |
CDEPEND=" |
41 |
!blksha1? ( dev-libs/openssl ) |
42 |
sys-libs/zlib |
43 |
perl? ( dev-lang/perl[-build] ) |
44 |
tk? ( dev-lang/tk ) |
45 |
curl? ( |
46 |
net-misc/curl |
47 |
webdav? ( dev-libs/expat ) |
48 |
) |
49 |
emacs? ( virtual/emacs )" |
50 |
|
51 |
RDEPEND="${CDEPEND} |
52 |
perl? ( dev-perl/Error |
53 |
dev-perl/Net-SMTP-SSL |
54 |
dev-perl/Authen-SASL |
55 |
cgi? ( virtual/perl-CGI ) |
56 |
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite ) |
57 |
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
58 |
) |
59 |
python? ( gtk? |
60 |
( |
61 |
>=dev-python/pygtk-2.8 |
62 |
dev-python/pygtksourceview:2 |
63 |
) )" |
64 |
|
65 |
# This is how info docs are created with Git: |
66 |
# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
67 |
# .xml/docbook --(docbook2texi.pl)--> .texi |
68 |
# .texi --(makeinfo)---------> .info |
69 |
DEPEND="${CDEPEND} |
70 |
app-arch/cpio |
71 |
doc? ( |
72 |
app-text/asciidoc |
73 |
app-text/docbook2X |
74 |
sys-apps/texinfo |
75 |
)" |
76 |
|
77 |
# Live ebuild builds man pages and HTML docs, additionally |
78 |
if [ "$PV" == "9999" ]; then |
79 |
DEPEND="${DEPEND} |
80 |
app-text/asciidoc |
81 |
app-text/xmlto" |
82 |
fi |
83 |
|
84 |
SITEFILE=50${PN}-gentoo.el |
85 |
S="${WORKDIR}/${MY_P}" |
86 |
|
87 |
pkg_setup() { |
88 |
if ! use perl ; then |
89 |
use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi" |
90 |
use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs" |
91 |
use subversion && ewarn "git-svn needs USE=perl, it won't work" |
92 |
fi |
93 |
if use webdav && ! use curl ; then |
94 |
ewarn "USE=webdav needs USE=curl. Ignoring" |
95 |
fi |
96 |
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then |
97 |
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
98 |
ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
99 |
ewarn "have been warned." |
100 |
fi |
101 |
if use python ; then |
102 |
python_set_active_version 2 |
103 |
python_pkg_setup |
104 |
fi |
105 |
} |
106 |
|
107 |
# This is needed because for some obscure reasons future calls to make don't |
108 |
# pick up these exports if we export them in src_unpack() |
109 |
exportmakeopts() { |
110 |
local myopts |
111 |
|
112 |
if use blksha1 ; then |
113 |
myopts="${myopts} BLK_SHA1=YesPlease" |
114 |
elif use ppcsha1 ; then |
115 |
myopts="${myopts} PPC_SHA1=YesPlease" |
116 |
fi |
117 |
|
118 |
if use curl ; then |
119 |
use webdav || myopts="${myopts} NO_EXPAT=YesPlease" |
120 |
else |
121 |
myopts="${myopts} NO_CURL=YesPlease" |
122 |
fi |
123 |
|
124 |
# broken assumptions, because of broken build system ... |
125 |
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
126 |
myopts="${myopts} INSTALL=install TAR=tar" |
127 |
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh" |
128 |
myopts="${myopts} SANE_TOOL_PATH=" |
129 |
myopts="${myopts} OLD_ICONV=" |
130 |
myopts="${myopts} NO_EXTERNAL_GREP=" |
131 |
|
132 |
# can't define this to null, since the entire makefile depends on it |
133 |
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
134 |
|
135 |
use iconv \ |
136 |
|| einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205." |
137 |
# || myopts="${myopts} NO_ICONV=YesPlease" |
138 |
# because, above, we need to do this unconditionally (no "&& use iconv") |
139 |
use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease" |
140 |
|
141 |
use tk \ |
142 |
|| myopts="${myopts} NO_TCLTK=YesPlease" |
143 |
use perl \ |
144 |
&& myopts="${myopts} INSTALLDIRS=vendor" \ |
145 |
|| myopts="${myopts} NO_PERL=YesPlease" |
146 |
use python \ |
147 |
|| myopts="${myopts} NO_PYTHON=YesPlease" |
148 |
use subversion \ |
149 |
|| myopts="${myopts} NO_SVN_TESTS=YesPlease" |
150 |
use threads \ |
151 |
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" |
152 |
use cvs \ |
153 |
|| myopts="${myopts} NO_CVS=YesPlease" |
154 |
# Disabled until ~m68k-mint can be keyworded again |
155 |
# if [[ ${CHOST} == *-mint* ]] ; then |
156 |
# myopts="${myopts} NO_MMAP=YesPlease" |
157 |
# myopts="${myopts} NO_IPV6=YesPlease" |
158 |
# myopts="${myopts} NO_STRLCPY=YesPlease" |
159 |
# myopts="${myopts} NO_MEMMEM=YesPlease" |
160 |
# myopts="${myopts} NO_MKDTEMP=YesPlease" |
161 |
# myopts="${myopts} NO_MKSTEMPS=YesPlease" |
162 |
# fi |
163 |
if [[ ${CHOST} == ia64-*-hpux* ]]; then |
164 |
myopts="${myopts} NO_NSEC=YesPlease" |
165 |
fi |
166 |
if [[ ${CHOST} == *-*-aix* ]]; then |
167 |
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease" |
168 |
fi |
169 |
|
170 |
has_version '>=app-text/asciidoc-8.0' \ |
171 |
&& myopts="${myopts} ASCIIDOC8=YesPlease" |
172 |
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease" |
173 |
|
174 |
# Bug 290465: |
175 |
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
176 |
[[ "${CHOST}" == *-uclibc* ]] && \ |
177 |
myopts="${myopts} NO_NSEC=YesPlease" |
178 |
|
179 |
export MY_MAKEOPTS="${myopts}" |
180 |
} |
181 |
|
182 |
src_unpack() { |
183 |
if [ "${PV}" != "9999" ]; then |
184 |
unpack ${MY_P}.tar.bz2 |
185 |
cd "${S}" |
186 |
unpack ${PN}-manpages-${DOC_VER}.tar.bz2 |
187 |
use doc && \ |
188 |
cd "${S}"/Documentation && \ |
189 |
unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2 |
190 |
cd "${S}" |
191 |
else |
192 |
git_src_unpack |
193 |
cd "${S}" |
194 |
#cp "${FILESDIR}"/GIT-VERSION-GEN . |
195 |
fi |
196 |
|
197 |
} |
198 |
|
199 |
src_prepare() { |
200 |
# Noperl is being merged to upstream as of 2009/04/05 |
201 |
#epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch |
202 |
|
203 |
# GetOpt-Long v2.38 is strict |
204 |
# Merged in 1.6.3 final 2009/05/07 |
205 |
#epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch |
206 |
|
207 |
# JS install fixup |
208 |
epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
209 |
|
210 |
# USE=-iconv causes segfaults, fixed post 1.7.1 |
211 |
# Gentoo bug #321895 |
212 |
#epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch |
213 |
|
214 |
# Fix false positives with t3404 due to SHELL=/bin/false for the portage |
215 |
# user. |
216 |
# Merged upstream |
217 |
#epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch |
218 |
|
219 |
# bug #350075: t9001: fix missing prereq on some tests |
220 |
# Merged upstream |
221 |
#epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch |
222 |
|
223 |
# bug #350330 - automagic CVS when we don't want it is bad. |
224 |
epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch |
225 |
|
226 |
sed -i \ |
227 |
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
228 |
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \ |
229 |
-e 's:^\(CC = \).*$:\1$(OPTCC):' \ |
230 |
-e 's:^\(AR = \).*$:\1$(OPTAR):' \ |
231 |
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
232 |
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
233 |
Makefile || die "sed failed" |
234 |
|
235 |
# Never install the private copy of Error.pm (bug #296310) |
236 |
sed -i \ |
237 |
-e '/private-Error.pm/s,^,#,' \ |
238 |
perl/Makefile.PL |
239 |
|
240 |
# Fix docbook2texi command |
241 |
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \ |
242 |
Documentation/Makefile || die "sed failed" |
243 |
|
244 |
# bug #318289 |
245 |
# Merged upstream |
246 |
#epatch "${FILESDIR}"/git-1.7.3.2-interix.patch |
247 |
} |
248 |
|
249 |
git_emake() { |
250 |
# bug #326625: PERL_PATH, PERL_MM_OPT |
251 |
# bug #320647: PYTHON_PATH |
252 |
PYTHON_PATH="" |
253 |
use python && PYTHON_PATH="$(PYTHON -a)" |
254 |
emake ${MY_MAKEOPTS} \ |
255 |
DESTDIR="${D}" \ |
256 |
OPTCFLAGS="${CFLAGS}" \ |
257 |
OPTLDFLAGS="${LDFLAGS}" \ |
258 |
OPTCC="$(tc-getCC)" \ |
259 |
OPTAR="$(tc-getAR)" \ |
260 |
prefix="${EPREFIX}"/usr \ |
261 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
262 |
sysconfdir="${EPREFIX}"/etc \ |
263 |
PYTHON_PATH="${PYTHON_PATH}" \ |
264 |
PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
265 |
PERL_MM_OPT="" \ |
266 |
GIT_TEST_OPTS="--no-color" \ |
267 |
"$@" |
268 |
} |
269 |
|
270 |
src_configure() { |
271 |
exportmakeopts |
272 |
} |
273 |
|
274 |
src_compile() { |
275 |
git_emake || die "emake failed" |
276 |
|
277 |
if use emacs ; then |
278 |
elisp-compile contrib/emacs/git{,-blame}.el \ |
279 |
|| die "emacs modules failed" |
280 |
fi |
281 |
|
282 |
if use perl && use cgi ; then |
283 |
git_emake \ |
284 |
gitweb/gitweb.cgi \ |
285 |
|| die "emake gitweb/gitweb.cgi failed" |
286 |
fi |
287 |
|
288 |
cd "${S}"/Documentation |
289 |
if [[ "$PV" == "9999" ]] ; then |
290 |
git_emake man \ |
291 |
|| die "emake man failed" |
292 |
if use doc ; then |
293 |
git_emake info html \ |
294 |
|| die "emake info html failed" |
295 |
fi |
296 |
else |
297 |
if use doc ; then |
298 |
git_emake info \ |
299 |
|| die "emake info html failed" |
300 |
fi |
301 |
fi |
302 |
} |
303 |
|
304 |
src_install() { |
305 |
git_emake \ |
306 |
install || \ |
307 |
die "make install failed" |
308 |
|
309 |
# Depending on the tarball and manual rebuild of the documentation, the |
310 |
# manpages may exist in either OR both of these directories. |
311 |
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
312 |
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
313 |
|
314 |
dodoc README Documentation/{SubmittingPatches,CodingGuidelines} |
315 |
use doc && dodir /usr/share/doc/${PF}/html |
316 |
for d in / /howto/ /technical/ ; do |
317 |
docinto ${d} |
318 |
dodoc Documentation${d}*.txt |
319 |
use doc && dohtml -p ${d} Documentation${d}*.html |
320 |
done |
321 |
docinto / |
322 |
# Upstream does not ship this pre-built :-( |
323 |
use doc && doinfo Documentation/{git,gitman}.info |
324 |
|
325 |
dobashcompletion contrib/completion/git-completion.bash ${PN} |
326 |
|
327 |
if use emacs ; then |
328 |
elisp-install ${PN} contrib/emacs/git.{el,elc} || die |
329 |
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die |
330 |
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die |
331 |
# don't add automatically to the load-path, so the sitefile |
332 |
# can do a conditional loading |
333 |
touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
334 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die |
335 |
fi |
336 |
|
337 |
if use python && use gtk ; then |
338 |
dobin "${S}"/contrib/gitview/gitview |
339 |
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview |
340 |
dodoc "${S}"/contrib/gitview/gitview.txt |
341 |
fi |
342 |
|
343 |
dobin contrib/fast-import/git-p4 |
344 |
dodoc contrib/fast-import/git-p4.txt |
345 |
newbin contrib/fast-import/import-tars.perl import-tars |
346 |
newbin contrib/git-resurrect.sh git-resurrect |
347 |
|
348 |
dodir /usr/share/${PN}/contrib |
349 |
# The following are excluded: |
350 |
# completion - installed above |
351 |
# emacs - installed above |
352 |
# examples - these are stuff that is not used in Git anymore actually |
353 |
# gitview - installed above |
354 |
# p4import - excluded because fast-import has a better one |
355 |
# patches - stuff the Git guys made to go upstream to other places |
356 |
# svnimport - use git-svn |
357 |
# thunderbird-patch-inline - fixes thunderbird |
358 |
for i in \ |
359 |
blameview buildsystems ciabot continuous convert-objects fast-import \ |
360 |
hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \ |
361 |
stats svn-fe vim workdir \ |
362 |
; do |
363 |
cp -rf \ |
364 |
"${S}"/contrib/${i} \ |
365 |
"${ED}"/usr/share/${PN}/contrib \ |
366 |
|| die "Failed contrib ${i}" |
367 |
done |
368 |
|
369 |
if use perl && use cgi ; then |
370 |
# We used to install in /usr/share/${PN}/gitweb |
371 |
# but upstream installs in /usr/share/gitweb |
372 |
# so we will install a symlink and use their location for compat with other |
373 |
# distros |
374 |
dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
375 |
|
376 |
# INSTALL discusses configuration issues, not just installation |
377 |
docinto / |
378 |
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
379 |
newdoc "${S}"/gitweb/README README.gitweb |
380 |
|
381 |
find "${ED}"/usr/lib64/perl5/ \ |
382 |
-name .packlist \ |
383 |
-exec rm \{\} \; |
384 |
else |
385 |
rm -rf "${ED}"/usr/share/gitweb |
386 |
fi |
387 |
|
388 |
if ! use subversion ; then |
389 |
rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
390 |
"${ED}"/usr/share/man/man1/git-svn.1* |
391 |
fi |
392 |
|
393 |
if use xinetd ; then |
394 |
insinto /etc/xinetd.d |
395 |
newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
396 |
fi |
397 |
|
398 |
newinitd "${FILESDIR}"/git-daemon.initd git-daemon |
399 |
newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
400 |
|
401 |
fixlocalpod |
402 |
} |
403 |
|
404 |
src_test() { |
405 |
local disabled="" |
406 |
local tests_cvs="t9200-git-cvsexportcommit.sh \ |
407 |
t9400-git-cvsserver-server.sh \ |
408 |
t9401-git-cvsserver-crlf.sh \ |
409 |
t9600-cvsimport.sh \ |
410 |
t9601-cvsimport-vendor-branch.sh \ |
411 |
t9602-cvsimport-branches-tags.sh \ |
412 |
t9603-cvsimport-patchsets.sh" |
413 |
local tests_perl="t5502-quickfetch.sh \ |
414 |
t5512-ls-remote.sh \ |
415 |
t5520-pull.sh" |
416 |
# Bug #225601 - t0004 is not suitable for root perm |
417 |
# Bug #219839 - t1004 is not suitable for root perm |
418 |
# t0001-init.sh - check for init notices EPERM* fails |
419 |
local tests_nonroot="t0001-init.sh \ |
420 |
t0004-unwritable.sh \ |
421 |
t1004-read-tree-m-u-wf.sh \ |
422 |
t3700-add.sh \ |
423 |
t7300-clean.sh" |
424 |
|
425 |
# Unzip is used only for the testcase code, not by any normal parts of Git. |
426 |
if ! has_version app-arch/unzip ; then |
427 |
einfo "Disabling tar-tree tests" |
428 |
disabled="${disabled} t5000-tar-tree.sh" |
429 |
fi |
430 |
|
431 |
cvs=0 |
432 |
use cvs && let cvs=$cvs+1 |
433 |
if [[ ${EUID} -eq 0 ]]; then |
434 |
if [[ $cvs -eq 1 ]]; then |
435 |
ewarn "Skipping CVS tests because CVS does not work as root!" |
436 |
ewarn "You should retest with FEATURES=userpriv!" |
437 |
disabled="${disabled} ${tests_cvs}" |
438 |
fi |
439 |
einfo "Skipping other tests that require being non-root" |
440 |
disabled="${disabled} ${tests_nonroot}" |
441 |
else |
442 |
[[ $cvs -gt 0 ]] && \ |
443 |
has_version dev-vcs/cvs && \ |
444 |
let cvs=$cvs+1 |
445 |
[[ $cvs -gt 1 ]] && \ |
446 |
built_with_use dev-vcs/cvs server && \ |
447 |
let cvs=$cvs+1 |
448 |
if [[ $cvs -lt 3 ]]; then |
449 |
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
450 |
disabled="${disabled} ${tests_cvs}" |
451 |
fi |
452 |
fi |
453 |
|
454 |
if ! use perl ; then |
455 |
einfo "Disabling tests that need Perl" |
456 |
disabled="${disabled} ${tests_perl}" |
457 |
fi |
458 |
|
459 |
# Reset all previously disabled tests |
460 |
cd "${S}/t" |
461 |
for i in *.sh.DISABLED ; do |
462 |
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
463 |
done |
464 |
einfo "Disabled tests:" |
465 |
for i in ${disabled} ; do |
466 |
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
467 |
done |
468 |
|
469 |
# Avoid the test system removing the results because we want them ourselves |
470 |
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
471 |
-i "${S}"/t/Makefile |
472 |
|
473 |
# Clean old results first |
474 |
cd "${S}/t" |
475 |
git_emake clean |
476 |
|
477 |
# Now run the tests |
478 |
cd "${S}" |
479 |
einfo "Start test run" |
480 |
git_emake test |
481 |
rc=$? |
482 |
|
483 |
# Display nice results |
484 |
cd "${S}/t" |
485 |
git_emake aggregate-results |
486 |
|
487 |
# And exit |
488 |
[ $rc -eq 0 ] || die "tests failed. Please file a bug." |
489 |
} |
490 |
|
491 |
showpkgdeps() { |
492 |
local pkg=$1 |
493 |
shift |
494 |
elog " $(printf "%-17s:" ${pkg}) ${@}" |
495 |
} |
496 |
|
497 |
pkg_postinst() { |
498 |
use emacs && elisp-site-regen |
499 |
use python && python_mod_optimize git_remote_helpers |
500 |
elog "These additional scripts need some dependencies:" |
501 |
echo |
502 |
showpkgdeps git-quiltimport "dev-util/quilt" |
503 |
showpkgdeps git-instaweb \ |
504 |
"|| ( www-servers/lighttpd www-servers/apache )" |
505 |
echo |
506 |
} |
507 |
|
508 |
pkg_postrm() { |
509 |
use emacs && elisp-site-regen |
510 |
use python && python_mod_cleanup git_remote_helpers |
511 |
} |