From b55f62b4a50abb734583576c6ef26a8e59eb2f9b Mon Sep 17 00:00:00 2001 From: "Fernando J. Pereda" Date: Tue, 27 Feb 2007 09:12:43 +0000 Subject: New upstream version. Remove .1 since it is buggy Package-Manager: portage-2.1.2-r9 --- dev-util/git/ChangeLog | 8 +- dev-util/git/Manifest | 34 ++++---- dev-util/git/files/digest-git-1.5.0.1 | 9 -- dev-util/git/files/digest-git-1.5.0.2 | 9 ++ dev-util/git/git-1.5.0.1.ebuild | 157 ---------------------------------- dev-util/git/git-1.5.0.2.ebuild | 157 ++++++++++++++++++++++++++++++++++ 6 files changed, 190 insertions(+), 184 deletions(-) delete mode 100644 dev-util/git/files/digest-git-1.5.0.1 create mode 100644 dev-util/git/files/digest-git-1.5.0.2 delete mode 100644 dev-util/git/git-1.5.0.1.ebuild create mode 100644 dev-util/git/git-1.5.0.2.ebuild (limited to 'dev-util/git') diff --git a/dev-util/git/ChangeLog b/dev-util/git/ChangeLog index 0b7ce07f317d..629b7eba69cf 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.170 2007/02/20 18:05:46 ferdy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.171 2007/02/27 09:12:43 ferdy Exp $ + +*git-1.5.0.2 (27 Feb 2007) + + 27 Feb 2007; Fernando J. Pereda -git-1.5.0.1.ebuild, + +git-1.5.0.2.ebuild: + New upstream version. Remove .1 since it is buggy 20 Feb 2007; Fernando J. Pereda -git-1.5.0.ebuild: Remove unused version, superceed by 1.5.0.1 diff --git a/dev-util/git/Manifest b/dev-util/git/Manifest index ce1ded50a1b0..7af70b8399a6 100644 --- a/dev-util/git/Manifest +++ b/dev-util/git/Manifest @@ -21,17 +21,17 @@ DIST git-1.4.1.1.tar.bz2 752419 RMD160 1e8c8cc2ee0685fb0ece9e0ee0720cb608140c05 DIST git-1.4.2.4.tar.bz2 787793 RMD160 03664bb1c98c7d9dc8c6f1dfa56149d807fd5164 SHA1 ff80a407cbad5b759adaecf434b37b293a167096 SHA256 1efbbee0e3e8704b25ef6fbc9519ba6f94a21aee48a231b986408627a4017632 DIST git-1.4.4.3.tar.bz2 888091 RMD160 06184ee7e16c12687b4a644c38d23ff7732e4c54 SHA1 d41b8e62b2c0b5f3ea994bed4618a44cbcfb319e SHA256 5485e66a811f8a047124f1358ded268916fcf07ecccb9345f429b4ea8b76603e DIST git-1.4.4.4.tar.bz2 888482 RMD160 a507e7d636e771fb3ed03054d3d70e6758385c28 SHA1 b9243da9071d28f616b530eff94a46fb223cc368 SHA256 b2117774fb96d53f4b07d89df389ee0097f29637c859ec8fecc020cf37622657 -DIST git-1.5.0.1.tar.bz2 1042226 RMD160 ebfd46e9624d63857e16a2157f53267a2d681dcf SHA1 87ed08f219cefcff0eef11a11fc47d2188e49a5f SHA256 3999dc3c1011646a44f277977013cf9cebd875e569c46a1b4ade72ae849c8c96 +DIST git-1.5.0.2.tar.bz2 1044085 RMD160 edad5e601dbaf40432ff2869c39477724eb33f17 SHA1 9a2a707896f2529b2f175bfc32003f39adb88391 SHA256 0633c2fbf18173b3317a98d04b5b22873bc7d70d5fb0944af42b5fb81d486783 DIST git-htmldocs-1.4.1.1.tar.bz2 263120 RMD160 4a50c2cec7ecd612690ee5dd0f7fbe69f11fe1bf SHA1 6a22f41064f1db29e69a65ad2177e9f6e18aea77 SHA256 8e4ccf995645fe08f7644b62535c4054515355942b5f3551fcbebd3f5ec36d1d DIST git-htmldocs-1.4.2.4.tar.bz2 283907 RMD160 6aaa9e601cc16d4e45176e58fbbc87a332afb243 SHA1 e05b2ef0a5354b8c6ff4d043d620e0b229cda7a9 SHA256 90f3ad4bced74bbadfc6f02a1c3d222a6bcf13d940b9aef368b7cbae083c1f86 DIST git-htmldocs-1.4.4.3.tar.bz2 325744 RMD160 52c8f9088ca969255ff93f719563b65f43a59a9f SHA1 1ab02de5bae511f07b19c6048626160d99ff145c SHA256 cca1f7dec9dd063d78920e4d2f7a9a47fa57cfd883b872883b60795541c2c585 DIST git-htmldocs-1.4.4.4.tar.bz2 325718 RMD160 cf55f807769e8aa731d512b654e847089d25ea0e SHA1 66192a27b74aef8e673252174dda8c9be23dcd7a SHA256 196e901cd416f48b8068a10914455a27aa542bc821f677a705a69fb950145975 -DIST git-htmldocs-1.5.0.1.tar.bz2 439800 RMD160 d3f46605294c390f81b07ea6281296c0bef6e7a1 SHA1 b9d44d3ba332dd37cbb7058497a1d450b0515475 SHA256 a6ea915ae372b8f1ceb1327c5beb1c09ad5b89d9acd2e03f9888cb16fd1d50b3 +DIST git-htmldocs-1.5.0.2.tar.bz2 440523 RMD160 5f7ca691515ce1b100cf0ed773b18bc4574c08bd SHA1 6cc4218ede294231f5895c7c1475e2e0829457ce SHA256 12f7cf2018d522a649de83e4be5467576a3259c0a8ffb08c712b84111e845b28 DIST git-manpages-1.4.1.1.tar.bz2 83956 RMD160 894b8717e9e4099f7aacb97a3673e81c09e23daf SHA1 c899fbdef72bdfdb29c03e3372ee736781d58289 SHA256 2b2759a15eb9432e972743846c7299518e542e99a23a7318c540f0086e746ee4 DIST git-manpages-1.4.2.4.tar.bz2 90375 RMD160 0b3d486d04a5a64aab273c75823c603f307fcd02 SHA1 961b3981f074663ec64bbbc5b82fdab0c45b7919 SHA256 6e0520fd779225e79957871d981ddfc9e93f157374de88f654d4f20958557518 DIST git-manpages-1.4.4.3.tar.bz2 104756 RMD160 b10969ec6702606ea348d9a6fe05831e28fbcc00 SHA1 decdee44cca3f89843a290402c30422dde9edfa1 SHA256 7f11c3f55a86fc7e445e6bf97d049564e586902bb53e48c6048b7ce0ad90675e DIST git-manpages-1.4.4.4.tar.bz2 103840 RMD160 488e8ad8514180ed1d2d2d0d5e948351d4092f29 SHA1 17d7246560049ebcab7e7a67c2b82e8fb233e42e SHA256 73f136bd93683fa559b22c8770acaebce70699798f6797e840d23a2a5cffa3a4 -DIST git-manpages-1.5.0.1.tar.bz2 126317 RMD160 2c34a32c660bc64562b9da408b0666e50da81092 SHA1 fe8f5056c216c6facea0d64c32328d3380ffcac3 SHA256 5b8076c67b925a819185e75e2eec23a116b72d221ba48c9caf4a2f2c560a9d6f +DIST git-manpages-1.5.0.2.tar.bz2 126518 RMD160 e7d03e4704a9029350401cabb436c5468ada460e SHA1 9c50b5ec6c4c4c321e282b3dd945eb6eae23770b SHA256 d9e475cb868ebfcc6cd8650adceba1b77c2b339602adf04a8a5e52aa97d03cbc EBUILD git-1.4.1.1.ebuild 4338 RMD160 c60faee4041943f56b2b64abde8b26bc7a9d1e17 SHA1 47c42f4ff8d3100a645226934fb9da442e07bae5 SHA256 d0435724636b6ff0749af989a7d493284df3eb38d2c0bcd1b0f29a33d726e606 MD5 62bdf011ee3296485f8c8fbc2f3ecd35 git-1.4.1.1.ebuild 4338 RMD160 c60faee4041943f56b2b64abde8b26bc7a9d1e17 git-1.4.1.1.ebuild 4338 @@ -48,14 +48,14 @@ EBUILD git-1.4.4.4.ebuild 4257 RMD160 5da21ba7d97aa3d0c9238b633c70c916445d8bcd S MD5 844bef7b02245814e4362aa29566e57b git-1.4.4.4.ebuild 4257 RMD160 5da21ba7d97aa3d0c9238b633c70c916445d8bcd git-1.4.4.4.ebuild 4257 SHA256 963f02c4077e2ca70a12f7300caa552a0bfccf76d57dc8b02a1ed3099efe3493 git-1.4.4.4.ebuild 4257 -EBUILD git-1.5.0.1.ebuild 4302 RMD160 99de02e1720ce062720215dd92eef9d00f82cd29 SHA1 c89e274d008a25a7da64ad598878a3a21aae5d85 SHA256 52a0c87a3ca21a5942c4aa9ecad89064cb4358544031a702826cf21bf11c213a -MD5 17cd2eb7cd95729b8774a973ea877c5e git-1.5.0.1.ebuild 4302 -RMD160 99de02e1720ce062720215dd92eef9d00f82cd29 git-1.5.0.1.ebuild 4302 -SHA256 52a0c87a3ca21a5942c4aa9ecad89064cb4358544031a702826cf21bf11c213a git-1.5.0.1.ebuild 4302 -MISC ChangeLog 24217 RMD160 5bb28513f81b662f0c94a9f86594014332c26730 SHA1 52bdcbcff749e83632f2c2c7486a16c14f60ff71 SHA256 4b0e18e3b7737989d4bef787643ffdc18da2852a52bb017d75e9e4098fd42978 -MD5 6b029323cd77af4263781ecf9096e47f ChangeLog 24217 -RMD160 5bb28513f81b662f0c94a9f86594014332c26730 ChangeLog 24217 -SHA256 4b0e18e3b7737989d4bef787643ffdc18da2852a52bb017d75e9e4098fd42978 ChangeLog 24217 +EBUILD git-1.5.0.2.ebuild 4302 RMD160 e4bf2cad83aecb0459b2e4c760495ccf6b90aade SHA1 ce533c3aa1e2d8c00cdd52cb4b1fa0f0948c40d0 SHA256 c42a4e0028384cd78918d8a0878792be53b782db953598b0d06e081c9b3ff09e +MD5 6b2690a079e5c2f105fa4dfe88b7f4ee git-1.5.0.2.ebuild 4302 +RMD160 e4bf2cad83aecb0459b2e4c760495ccf6b90aade git-1.5.0.2.ebuild 4302 +SHA256 c42a4e0028384cd78918d8a0878792be53b782db953598b0d06e081c9b3ff09e git-1.5.0.2.ebuild 4302 +MISC ChangeLog 24395 RMD160 065e2694da6d6dc5178864a6221dde9eed07148d SHA1 e4710355d10d5df98f43df7f1ec2ef34c082d094 SHA256 a2f094da2d81cad6a103d4a0a70e37883e146ef90fae31064900173c10da6239 +MD5 bc861a3973368e34c4f9e9e0717ee064 ChangeLog 24395 +RMD160 065e2694da6d6dc5178864a6221dde9eed07148d ChangeLog 24395 +SHA256 a2f094da2d81cad6a103d4a0a70e37883e146ef90fae31064900173c10da6239 ChangeLog 24395 MISC metadata.xml 253 RMD160 e09bab6a5a422f501b8e07a3983c5790e00ac92a SHA1 7c2340e011ce57927ff31d7e3397ef4bb1c7ad27 SHA256 1f2e9f9f57e781c296ac5c39c54eabf82a47b7facd0698b296bc76f50799432c MD5 22c5a3ad567fa12332dab8687b9c2d1c metadata.xml 253 RMD160 e09bab6a5a422f501b8e07a3983c5790e00ac92a metadata.xml 253 @@ -72,13 +72,13 @@ SHA256 666f5fe026723735f156653f2565168d6c3f902e176d9c009a4c75ae992e475b files/di MD5 0edc8e793ae211228a6b9b338d242566 files/digest-git-1.4.4.4 768 RMD160 ade2fb97dffc61de86d80cffc0b4292ba9027bda files/digest-git-1.4.4.4 768 SHA256 ace650aa865e2cbf70cf1e76a858085da178e9f98f58f28bbabbc972be98467e files/digest-git-1.4.4.4 768 -MD5 3eaeadeb23f75b45cf3b0b0873eb70b5 files/digest-git-1.5.0.1 771 -RMD160 2f26d0049e11379b31af0c32f1c58ecb90ecccd4 files/digest-git-1.5.0.1 771 -SHA256 a7a3a14d5e0d785bee74b8ff85b20611fd96054278dfd1cdc2d7ab2311f98d74 files/digest-git-1.5.0.1 771 +MD5 51a6e9fa099ad0b8e9afa6750b846948 files/digest-git-1.5.0.2 771 +RMD160 0b714ecfd3c3a4048be889eb6197e391814d40b5 files/digest-git-1.5.0.2 771 +SHA256 0545ad932986e1585ef7f5cff947d1efbacc8af2a0b53aa449e99faefe38ccda files/digest-git-1.5.0.2 771 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFF2ziNViELBEf1JB0RAm0JAJ9nRAD2l6IQB21VjtjV65ej8mm7EQCeMoM1 -VjdngwskRpKMhep8mfZivsg= -=ErdP +iD8DBQFF4/YXViELBEf1JB0RAlroAJ9Cb3wcR1UB/A/Oj811m+nGrNkrkACggjZ1 +2wynO8aMKllQDXSjNK1Rte4= +=cHbo -----END PGP SIGNATURE----- diff --git a/dev-util/git/files/digest-git-1.5.0.1 b/dev-util/git/files/digest-git-1.5.0.1 deleted file mode 100644 index 3a1f95683720..000000000000 --- a/dev-util/git/files/digest-git-1.5.0.1 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 7bcc47e3a7b79229e897c9242b7e33e6 git-1.5.0.1.tar.bz2 1042226 -RMD160 ebfd46e9624d63857e16a2157f53267a2d681dcf git-1.5.0.1.tar.bz2 1042226 -SHA256 3999dc3c1011646a44f277977013cf9cebd875e569c46a1b4ade72ae849c8c96 git-1.5.0.1.tar.bz2 1042226 -MD5 8fde01d3c97fc0b4ec020ed899c141e0 git-htmldocs-1.5.0.1.tar.bz2 439800 -RMD160 d3f46605294c390f81b07ea6281296c0bef6e7a1 git-htmldocs-1.5.0.1.tar.bz2 439800 -SHA256 a6ea915ae372b8f1ceb1327c5beb1c09ad5b89d9acd2e03f9888cb16fd1d50b3 git-htmldocs-1.5.0.1.tar.bz2 439800 -MD5 719522030ea10e77a2ab9fedd5aa44d6 git-manpages-1.5.0.1.tar.bz2 126317 -RMD160 2c34a32c660bc64562b9da408b0666e50da81092 git-manpages-1.5.0.1.tar.bz2 126317 -SHA256 5b8076c67b925a819185e75e2eec23a116b72d221ba48c9caf4a2f2c560a9d6f git-manpages-1.5.0.1.tar.bz2 126317 diff --git a/dev-util/git/files/digest-git-1.5.0.2 b/dev-util/git/files/digest-git-1.5.0.2 new file mode 100644 index 000000000000..4848bd6b2958 --- /dev/null +++ b/dev-util/git/files/digest-git-1.5.0.2 @@ -0,0 +1,9 @@ +MD5 75a1efc7e0abbde9be67d2ea77f17a15 git-1.5.0.2.tar.bz2 1044085 +RMD160 edad5e601dbaf40432ff2869c39477724eb33f17 git-1.5.0.2.tar.bz2 1044085 +SHA256 0633c2fbf18173b3317a98d04b5b22873bc7d70d5fb0944af42b5fb81d486783 git-1.5.0.2.tar.bz2 1044085 +MD5 890ef3ea52ec2f2dbc8868b3228877aa git-htmldocs-1.5.0.2.tar.bz2 440523 +RMD160 5f7ca691515ce1b100cf0ed773b18bc4574c08bd git-htmldocs-1.5.0.2.tar.bz2 440523 +SHA256 12f7cf2018d522a649de83e4be5467576a3259c0a8ffb08c712b84111e845b28 git-htmldocs-1.5.0.2.tar.bz2 440523 +MD5 33b96085165f3667053b5885f2233cbe git-manpages-1.5.0.2.tar.bz2 126518 +RMD160 e7d03e4704a9029350401cabb436c5468ada460e git-manpages-1.5.0.2.tar.bz2 126518 +SHA256 d9e475cb868ebfcc6cd8650adceba1b77c2b339602adf04a8a5e52aa97d03cbc git-manpages-1.5.0.2.tar.bz2 126518 diff --git a/dev-util/git/git-1.5.0.1.ebuild b/dev-util/git/git-1.5.0.1.ebuild deleted file mode 100644 index bde798c8cf74..000000000000 --- a/dev-util/git/git-1.5.0.1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# 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.0.1.ebuild,v 1.1 2007/02/19 22:12:31 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://kernel.org/pub/software/scm/git/" -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.6 )" - -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} - - 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} 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 - insinto "${SITELISP}" - doins contrib/emacs/{,vc-}git.el* - elisp-site-file-install "${FILESDIR}"/70git-gentoo.el - 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" - 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() { - # regenerate site-gentoo if we are merged USE=emacs and unmerged - # USE=-emacs - has_version virtual/emacs && elisp-site-regen -} diff --git a/dev-util/git/git-1.5.0.2.ebuild b/dev-util/git/git-1.5.0.2.ebuild new file mode 100644 index 000000000000..fac65e324568 --- /dev/null +++ b/dev-util/git/git-1.5.0.2.ebuild @@ -0,0 +1,157 @@ +# 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.0.2.ebuild,v 1.1 2007/02/27 09:12:43 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://kernel.org/pub/software/scm/git/" +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.6 )" + +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} + + 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} 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 + insinto "${SITELISP}" + doins contrib/emacs/{,vc-}git.el* + elisp-site-file-install "${FILESDIR}"/70git-gentoo.el + 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" + 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() { + # regenerate site-gentoo if we are merged USE=emacs and unmerged + # USE=-emacs + has_version virtual/emacs && elisp-site-regen +} -- cgit v1.2.3-65-gdbad