diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2007-06-16 18:06:48 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2007-06-16 18:06:48 +0000 |
commit | 9cd22b944ce93ecaa6098469b12ac59180f344cd (patch) | |
tree | 69b038149ea0d2663c0a60e61bcff9f9e1f11efb /dev-util | |
parent | Added ~ppc, bug #176033 (diff) | |
download | gentoo-2-9cd22b944ce93ecaa6098469b12ac59180f344cd.tar.gz gentoo-2-9cd22b944ce93ecaa6098469b12ac59180f344cd.tar.bz2 gentoo-2-9cd22b944ce93ecaa6098469b12ac59180f344cd.zip |
New upstream version. Fix for bug #181718
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/git/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/git/files/71git-gentoo.el | 7 | ||||
-rw-r--r-- | dev-util/git/files/digest-git-1.5.2.2 | 9 | ||||
-rw-r--r-- | dev-util/git/git-1.5.2.2.ebuild | 163 |
4 files changed, 186 insertions, 1 deletions
diff --git a/dev-util/git/ChangeLog b/dev-util/git/ChangeLog index e81728a7b1bb..c04c54bbe5b0 100644 --- a/dev-util/git/ChangeLog +++ b/dev-util/git/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/git # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.203 2007/06/14 15:26:27 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.204 2007/06/16 18:06:48 ferdy Exp $ + +*git-1.5.2.2 (16 Jun 2007) + + 16 Jun 2007; Fernando J. Pereda <ferdy@gentoo.org> +files/71git-gentoo.el, + +git-1.5.2.2.ebuild: + New upstream version. Fix for bug #181718 14 Jun 2007; Jeroen Roovers <jer@gentoo.org> git-1.5.1.6.ebuild: Stable for HPPA (bug #179245). diff --git a/dev-util/git/files/71git-gentoo.el b/dev-util/git/files/71git-gentoo.el new file mode 100644 index 000000000000..ded21c29e3dc --- /dev/null +++ b/dev-util/git/files/71git-gentoo.el @@ -0,0 +1,7 @@ +;;; git site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(add-to-list 'vc-handled-backends 'GIT) +(autoload 'git-status "git" "Entry point into git-status mode." t) +(autoload 'git-blame-mode "git-blame" + "Minor mode for incremental blame for Git." t) diff --git a/dev-util/git/files/digest-git-1.5.2.2 b/dev-util/git/files/digest-git-1.5.2.2 new file mode 100644 index 000000000000..5eb891b477f2 --- /dev/null +++ b/dev-util/git/files/digest-git-1.5.2.2 @@ -0,0 +1,9 @@ +MD5 846940654b703ec5c8de4ee388cb4d08 git-1.5.2.2.tar.bz2 1190255 +RMD160 ab4e7c30fa13470b3fe16edb1d6681600438483e git-1.5.2.2.tar.bz2 1190255 +SHA256 9c569ab1096c37e1b7ba3633fda5b36b9ad4305454ce2748bb1da557a3817041 git-1.5.2.2.tar.bz2 1190255 +MD5 6b17a1b9daac6413a8998c75ec41079e git-htmldocs-1.5.2.2.tar.bz2 505023 +RMD160 28d4a886e411b8d9068f28f19fa6be71716d4241 git-htmldocs-1.5.2.2.tar.bz2 505023 +SHA256 8c078916fb43b88de9a0626bee32f217452bed6dd2798643c3cec020b389205f git-htmldocs-1.5.2.2.tar.bz2 505023 +MD5 892e8506874d537038d67c51f9c76ec9 git-manpages-1.5.2.2.tar.bz2 139718 +RMD160 c1597fedd5e60f89356fd6d3a49d62c0b797a935 git-manpages-1.5.2.2.tar.bz2 139718 +SHA256 4b1c681c5be4cda05e98f74269b9e9d3334d05340bec224c32f97c3044653fc6 git-manpages-1.5.2.2.tar.bz2 139718 diff --git a/dev-util/git/git-1.5.2.2.ebuild b/dev-util/git/git-1.5.2.2.ebuild new file mode 100644 index 000000000000..e28a3daab52e --- /dev/null +++ b/dev-util/git/git-1.5.2.2.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.5.2.2.ebuild,v 1.1 2007/06/16 18:06:48 ferdy Exp $ + +inherit toolchain-funcs eutils elisp-common perl-module bash-completion + +MY_PV="${PV/_rc/.rc}" +MY_P="${PN}-${MY_PV}" + +DOC_VER=${MY_PV} + +DESCRIPTION="GIT - the stupid content tracker" +HOMEPAGE="http://git.or.cz/" +SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 + mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 + doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="curl doc elibc_uclibc emacs gtk mozsha1 perl ppcsha1 tk webdav" + +DEPEND="dev-libs/openssl + sys-libs/zlib + !app-misc/git + curl? ( net-misc/curl ) + webdav? ( dev-libs/expat ) + emacs? ( virtual/emacs )" +RDEPEND="${DEPEND} + dev-lang/perl + perl? ( dev-perl/Error ) + tk? ( dev-lang/tk ) + gtk? ( >=dev-python/pygtk-2.8 )" + +SITEFILE=71${PN}-gentoo.el +S="${WORKDIR}/${MY_P}" + +# 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" + + use elibc_uclibc && myopts="${myopts} NO_ICONV=YesPlease" + + export MY_MAKEOPTS=${myopts} +} + +showpkgdeps() { + local pkg=$1 + shift + elog " $(printf "%-17s:" ${pkg}) ${@}" +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch "${FILESDIR}"/${PN}-1.5.0-symlinks.patch + + 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):" \ + -e 's:ln :ln -s :g' \ + Makefile || die "sed failed" + + exportmakeopts +} + +src_compile() { + emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed" + + if use emacs ; then + elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed" + fi +} + +src_install() { + emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \ + die "make install failed" + + use tk || rm "${D}"/usr/bin/gitk + + doman "${WORKDIR}"/man?/* + + dodoc README COPYING Documentation/SubmittingPatches + if use doc ; then + dodoc Documentation/technical/* + dodir /usr/share/doc/${PF}/html + cp -r "${WORKDIR}"/{*.html,howto} "${D}"/usr/share/doc/${PF}/html + fi + + dobashcompletion contrib/completion/git-completion.bash ${PN} + + if use emacs ; then + elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \ + die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use gtk ; then + dobin contrib/gitview/gitview + use doc && dodoc contrib/gitview/gitview.txt + fi + + insinto /etc/xinetd.d + newins "${FILESDIR}"/git-daemon.xinetd git-daemon + + newinitd "${FILESDIR}"/git-daemon.initd git-daemon + newconfd "${FILESDIR}"/git-daemon.confd git-daemon + + fixlocalpod +} + +src_test() { + cd "${S}" + has_version dev-util/subversion || \ + MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease" + has_version app-arch/unzip || \ + rm "${S}"/t/t5000-tar-tree.sh + # Stupid CVS won't let some people commit as root + rm "${S}"/t/t9200-git-cvsexportcommit.sh + emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed" +} + +pkg_postinst() { + use emacs && elisp-site-regen + elog "These additional scripts need some dependencies:" + echo + showpkgdeps git-archimport "dev-util/tla" + showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1" + showpkgdeps git-svnimport "dev-util/subversion(USE=perl)" + showpkgdeps git-svn \ + "dev-util/subversion(USE=perl)" \ + "dev-perl/libwww-perl" \ + "dev-perl/TermReadKey" + showpkgdeps git-quiltimport "dev-util/quilt" + showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite" + showpkgdeps git-instaweb "|| ( www-servers/lighttpd net-www/apache(SLOT=2) )" + showpkgdeps git-send-email "USE=perl" + showpkgdeps git-remote "USE=perl" + echo +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |