Lines 1-8
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.3.3.ebuild,v 1.1 2006/05/17 08:04:05 ferdy Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit python toolchain-funcs eutils |
5 |
inherit python toolchain-funcs eutils elisp-common |
6 |
|
6 |
|
7 |
DOC_VER=${PV} |
7 |
DOC_VER=${PV} |
8 |
|
8 |
|
Lines 15-21
Link Here
|
15 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
17 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
18 |
IUSE="mozsha1 ppcsha1 doc curl X webdav" |
18 |
IUSE="mozsha1 ppcsha1 doc curl X webdav emacs" |
19 |
|
19 |
|
20 |
DEPEND="dev-libs/openssl |
20 |
DEPEND="dev-libs/openssl |
21 |
sys-libs/zlib |
21 |
sys-libs/zlib |
Lines 73-78
Link Here
|
73 |
|
73 |
|
74 |
src_compile() { |
74 |
src_compile() { |
75 |
emake ${MY_MAKEOPTS} prefix=/usr || die "make failed" |
75 |
emake ${MY_MAKEOPTS} prefix=/usr || die "make failed" |
|
|
76 |
if use emacs ; then |
77 |
elisp-compile contrib/emacs/{,vc-}git.el || die "Emacs modules failed!" |
78 |
fi |
76 |
} |
79 |
} |
77 |
|
80 |
|
78 |
src_install() { |
81 |
src_install() { |
Lines 89-94
Link Here
|
89 |
cp -r ${WORKDIR}/${PN}-html-${DOC_VER}/* ${D}/usr/share/doc/${PF}/html |
92 |
cp -r ${WORKDIR}/${PN}-html-${DOC_VER}/* ${D}/usr/share/doc/${PF}/html |
90 |
fi |
93 |
fi |
91 |
|
94 |
|
|
|
95 |
if use emacs ; then |
96 |
insinto "${SITELISP}" |
97 |
doins contrib/emacs/{,vc-}git.el* |
98 |
elisp-site-file-install "${FILESDIR}/70git-gentoo.el" |
99 |
fi |
100 |
|
92 |
newinitd "${FILESDIR}/git-daemon.initd" git-daemon |
101 |
newinitd "${FILESDIR}/git-daemon.initd" git-daemon |
93 |
newconfd "${FILESDIR}/git-daemon.confd" git-daemon |
102 |
newconfd "${FILESDIR}/git-daemon.confd" git-daemon |
94 |
} |
103 |
} |
Lines 99-104
Link Here
|
99 |
} |
108 |
} |
100 |
|
109 |
|
101 |
pkg_postinst() { |
110 |
pkg_postinst() { |
|
|
111 |
use emacs && elisp-site-regen |
102 |
einfo |
112 |
einfo |
103 |
einfo "If you want to import arch repositories into git, consider using the" |
113 |
einfo "If you want to import arch repositories into git, consider using the" |
104 |
einfo "git-archimport command. You should install dev-util/tla before" |
114 |
einfo "git-archimport command. You should install dev-util/tla before" |
Lines 113-115
Link Here
|
113 |
einfo "dev-perl/DBI and dev-perl/DBD-SQLite" |
123 |
einfo "dev-perl/DBI and dev-perl/DBD-SQLite" |
114 |
einfo |
124 |
einfo |
115 |
} |
125 |
} |
|
|
126 |
|
127 |
pkg_postrm() { |
128 |
# regenerate site-gentoo if we are merged USE=emacs and unmerged |
129 |
# USE=-emacs |
130 |
has_version virtual/emacs && elisp-site-regen |
131 |
} |