diff options
author | Donnie Berkholz <donnie@supernova.(none)> | 2006-06-18 14:40:13 -0700 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2006-06-18 14:40:13 -0700 |
commit | cabefa61862a941a77d12bdef689b8b21ac751cd (patch) | |
tree | f6e0efa9ee6d45432521f0429a9a730b0e90effe /dev-util | |
parent | Update eselect modules to forms that were committed in r275 (diff) | |
download | dberkholz-cabefa61862a941a77d12bdef689b8b21ac751cd.tar.gz dberkholz-cabefa61862a941a77d12bdef689b8b21ac751cd.tar.bz2 dberkholz-cabefa61862a941a77d12bdef689b8b21ac751cd.zip |
Add live-git git
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/git/Manifest | 19 | ||||
-rw-r--r-- | dev-util/git/files/70git-gentoo.el | 4 | ||||
-rw-r--r-- | dev-util/git/files/digest-git-9999 | 1 | ||||
-rw-r--r-- | dev-util/git/files/git-daemon.confd | 12 | ||||
-rw-r--r-- | dev-util/git/files/git-daemon.initd | 22 | ||||
-rw-r--r-- | dev-util/git/git-9999.ebuild | 149 |
6 files changed, 207 insertions, 0 deletions
diff --git a/dev-util/git/Manifest b/dev-util/git/Manifest new file mode 100644 index 0000000..dafca49 --- /dev/null +++ b/dev-util/git/Manifest @@ -0,0 +1,19 @@ +AUX 70git-gentoo.el 88 RMD160 fe9b87bdbe14141580745063092a5d08924f23fd SHA1 332f9cbf5a1dbb176e54646fa23aa140aee917f7 SHA256 7589206de5ea91e912e0332f7dc503689d348cb752e17ba84a724987c4bbe04a +MD5 626503da08b9af48199596c83d6f49b3 files/70git-gentoo.el 88 +RMD160 fe9b87bdbe14141580745063092a5d08924f23fd files/70git-gentoo.el 88 +SHA256 7589206de5ea91e912e0332f7dc503689d348cb752e17ba84a724987c4bbe04a files/70git-gentoo.el 88 +AUX git-daemon.confd 376 RMD160 70cbd0b87cbd2ce6b494f07ead732f33f7ea623f SHA1 3a00fa3af96d83bec1589d7ef53eff01ea838ea1 SHA256 266045958a3a4072529f25208d1f84a178bbb10aa0b6fa19543f7a62f9a5e3fe +MD5 5c96e23fef078682e648254d9197f618 files/git-daemon.confd 376 +RMD160 70cbd0b87cbd2ce6b494f07ead732f33f7ea623f files/git-daemon.confd 376 +SHA256 266045958a3a4072529f25208d1f84a178bbb10aa0b6fa19543f7a62f9a5e3fe files/git-daemon.confd 376 +AUX git-daemon.initd 526 RMD160 1ee04d8a5636593b41d2864afbad076ee6d770aa SHA1 7f35b65575a880f10d4c2f355e3feca589ee6839 SHA256 8915a900a602df046f091154fed378cb4ab62983a6ab2857653933a02e6f86ec +MD5 ad6b9193f41375013fad4455bf1acda7 files/git-daemon.initd 526 +RMD160 1ee04d8a5636593b41d2864afbad076ee6d770aa files/git-daemon.initd 526 +SHA256 8915a900a602df046f091154fed378cb4ab62983a6ab2857653933a02e6f86ec files/git-daemon.initd 526 +EBUILD git-9999.ebuild 3682 RMD160 a2a0b4403ab126594560e6020a76c1d80bd36643 SHA1 88a40d3f377fc291787b94e707806fce55fdc2dc SHA256 f11fcae4b6858e04dc5a7c7b01017454c25a4de1080a5b2e67a2ead31b2b4c7a +MD5 d67842d17c496deba93ec58cce09b69b git-9999.ebuild 3682 +RMD160 a2a0b4403ab126594560e6020a76c1d80bd36643 git-9999.ebuild 3682 +SHA256 f11fcae4b6858e04dc5a7c7b01017454c25a4de1080a5b2e67a2ead31b2b4c7a git-9999.ebuild 3682 +MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-git-9999 1 +RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-git-9999 1 +SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-git-9999 1 diff --git a/dev-util/git/files/70git-gentoo.el b/dev-util/git/files/70git-gentoo.el new file mode 100644 index 0000000..ed65bb4 --- /dev/null +++ b/dev-util/git/files/70git-gentoo.el @@ -0,0 +1,4 @@ +;;; git site-lisp configuration + +(add-to-list 'vc-handled-backends 'GIT) +(require 'git) diff --git a/dev-util/git/files/digest-git-9999 b/dev-util/git/files/digest-git-9999 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dev-util/git/files/digest-git-9999 @@ -0,0 +1 @@ + diff --git a/dev-util/git/files/git-daemon.confd b/dev-util/git/files/git-daemon.confd new file mode 100644 index 0000000..ace9cbd --- /dev/null +++ b/dev-util/git/files/git-daemon.confd @@ -0,0 +1,12 @@ +# conf.d file for git-daemon +# +# Please check man 1 git-daemon for more information about the options +# git-daemon accepts. +# +# Meaningful options are: +# --syslog --- Enables syslog logging +# --verbose --- Enables verbose logging +# --export-all --- Exports all repositories +# --port=XXXX --- Starts in port XXXX instead of 9418 +# +GITDAEMON_OPTS="--syslog" diff --git a/dev-util/git/files/git-daemon.initd b/dev-util/git/files/git-daemon.initd new file mode 100644 index 0000000..2563c41 --- /dev/null +++ b/dev-util/git/files/git-daemon.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.1 2005/10/05 15:05:04 ferdy Exp $ + +depend() { + need net + use logger +} + +start() { + ebegin "Starting git-daemon" + start-stop-daemon --start --quiet --background \ + --exec /usr/bin/git-daemon -- ${GITDAEMON_OPTS} + eend $? +} + +stop() { + ebegin "Stoping git-daemon" + start-stop-daemon --stop --quiet --name git-daemon + eend $? +} diff --git a/dev-util/git/git-9999.ebuild b/dev-util/git/git-9999.ebuild new file mode 100644 index 0000000..9e0ab3b --- /dev/null +++ b/dev-util/git/git-9999.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.3.3.ebuild,v 1.2 2006/05/21 01:18:44 ferdy Exp $ + +inherit python toolchain-funcs eutils elisp-common git + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" + +DOC_VER=${PV} + +DESCRIPTION="GIT - the stupid content tracker" +HOMEPAGE="http://kernel.org/pub/software/scm/git/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="curl doc emacs mozsha1 ppcsha1 webdav X" + +DEPEND="dev-libs/openssl + sys-libs/zlib + !app-misc/git + curl? ( net-misc/curl ) + webdav? ( dev-libs/expat ) + app-text/asciidoc" +RDEPEND="${DEPEND} + dev-lang/perl + >=dev-lang/python-2.3 + app-text/rcs + X? ( dev-lang/tk )" + +# This is needed because for some obscure reasons future calls to make don't +# pick up these exports if we export them in src_unpack() +exportmakeopts() { + local myopts + + if use mozsha1 ; then + myopts="${myopts} MOZILLA_SHA1=YesPlease" + elif use ppcsha1 ; then + myopts="${myopts} PPC_SHA1=YesPlease" + fi + + if use curl ; then + use webdav || myopts="${myopts} NO_EXPAT=YesPlease" + else + myopts="${myopts} NO_CURL=YesPlease" + use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring." + fi + + myopts="${myopts} WITH_SEND_EMAIL=YesPlease" + + # Older python versions need own subproccess.py + python_version + [[ ${PYVER} < 2.4 ]] && myopts="${myopts} WITH_OWN_SUBPROCESS_PY=YesPlease" + + use elibc_uclibc && myopts="${myopts} NO_ICONV=YesPlease" + + export MY_MAKEOPTS=${myopts} +} + +src_unpack() { + git_src_unpack + cd ${S} + + sed -i \ + -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \ + -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \ + -e "s:^\(CC = \).*$:\1$(tc-getCC):" \ + -e "s:^\(AR = \).*$:\1$(tc-getAR):" \ + Makefile || die "sed failed" + + exportmakeopts +} + +src_compile() { + emake \ + ${MY_MAKEOPTS} \ + prefix=/usr \ + || die "make failed" + emake \ + doc \ + ${MY_MAKEOPTS} \ + prefix=/usr \ + || die "make doc failed" + + if use emacs ; then + elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed" + fi +} + +src_install() { + emake \ + install \ + ${MY_MAKEOPTS} \ + DESTDIR="${D}" \ + prefix=/usr \ + || die "make install failed" + emake \ + install-doc \ + ${MY_MAKEOPTS} \ + DESTDIR="${D}" \ + prefix=/usr \ + mandir='$(prefix)/share/man' \ + || die "make install-doc failed" + + use X || rm "${D}"/usr/bin/gitk + + dodoc README COPYING Documentation/SubmittingPatches + dodoc Documentation/technical/* + + prepman + + if use emacs ; then + insinto "${SITELISP}" + doins contrib/emacs/{,vc-}git.el* + elisp-site-file-install "${FILESDIR}"/70git-gentoo.el + fi + + newinitd "${FILESDIR}"/git-daemon.initd git-daemon + newconfd "${FILESDIR}"/git-daemon.confd git-daemon +} + +src_test() { + cd "${S}" + make ${MY_MAKEOPTS} test || die "tests failed" +} + +pkg_postinst() { + use emacs && elisp-site-regen + einfo + einfo "If you want to import arch repositories into git, consider using the" + einfo "git-archimport command. You should install dev-util/tla before" + einfo + einfo "If you want to import cvs repositories into git, consider using the" + einfo "git-cvsimport command. You should install >=dev-util/cvsps-2.1 before" + einfo + einfo "If you want to import svn repositories into git, consider using the" + einfo "git-svnimport command. You should install dev-util/subversion before" + einfo + einfo "If you want to use the included CVS server you will need to install" + einfo "dev-perl/DBI and dev-perl/DBD-SQLite" + einfo +} + +pkg_postrm() { + # regenerate site-gentoo if we are merged USE=emacs and unmerged + # USE=-emacs + has_version virtual/emacs && elisp-site-regen +} |