summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2010-05-23 22:10:58 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2010-05-23 22:10:58 +0000
commitbd4b9c3ec4c7d823b0728fad70128592813dd878 (patch)
treefb2fdfbdaf4105e2502c0a3ace8f0aa975cd8057 /dev-vcs/darcs
parentVersion bump. (diff)
downloadhistorical-bd4b9c3ec4c7d823b0728fad70128592813dd878.tar.gz
historical-bd4b9c3ec4c7d823b0728fad70128592813dd878.tar.bz2
historical-bd4b9c3ec4c7d823b0728fad70128592813dd878.zip
Version bump dev-vcs/darcs to 2.4.4
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-vcs/darcs')
-rw-r--r--dev-vcs/darcs/ChangeLog7
-rw-r--r--dev-vcs/darcs/Manifest10
-rw-r--r--dev-vcs/darcs/darcs-2.4.4.ebuild130
3 files changed, 142 insertions, 5 deletions
diff --git a/dev-vcs/darcs/ChangeLog b/dev-vcs/darcs/ChangeLog
index 47f3a21aea86..feccb7c32f6d 100644
--- a/dev-vcs/darcs/ChangeLog
+++ b/dev-vcs/darcs/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-vcs/darcs
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/ChangeLog,v 1.3 2010/03/28 21:40:12 kolmodin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/ChangeLog,v 1.4 2010/05/23 22:10:58 kolmodin Exp $
+
+*darcs-2.4.4 (23 May 2010)
+
+ 23 May 2010; Lennart Kolmodin <kolmodin@gentoo.org> +darcs-2.4.4.ebuild:
+ Version bump.
*darcs-2.4 (28 Mar 2010)
diff --git a/dev-vcs/darcs/Manifest b/dev-vcs/darcs/Manifest
index 3bec92e20b73..4fc6abf1128d 100644
--- a/dev-vcs/darcs/Manifest
+++ b/dev-vcs/darcs/Manifest
@@ -10,19 +10,21 @@ DIST darcs-1.1.0pre1.tar.gz 1116180 RMD160 4269f61695045e85f2b74eb124221c1e0ac44
DIST darcs-2.0.2.tar.gz 1800653 RMD160 e401bd2ab64e2df4c654bdc03355ce215a053195 SHA1 75a186b906ac8bbc1144c5124c215e4c57c06222 SHA256 164c87bb7e41d1e81c4423432804b634862269291fa495f25e7f67f1b95bf49e
DIST darcs-2.1.0.tar.gz 1851395 RMD160 4f0073b7a879f5e357601f92320b902098258140 SHA1 738a063e67b90f5f831b7164969f285692250cee SHA256 d5a63e62bceb45905163d508c6b25158dab6aca367015566d8c539ec37107ab4
DIST darcs-2.2.1.tar.gz 984160 RMD160 c26d27fa40efee05436b7f6c5ff7495175bb8f65 SHA1 9bf214898f895c72e5a9ba36b5d6f7e7ceb5d6dc SHA256 575beb35436685a3ede78e87ff225f04ca92eb24ff1eb45fe5d01b4d3169c447
+DIST darcs-2.4.4.tar.gz 1193126 RMD160 cec11127740f350d25de7d4f9c7d7df115ebed6a SHA1 96a1907d3b8fd5676074a860359484f251d36e2f SHA256 97cde35ae4b74488f8b98b487bc0498069eaa74fe035903394f3d4aff1da9f9e
DIST darcs-2.4.tar.gz 1173703 RMD160 2982f0dff2703a9fff48d737acbb77948f4acd55 SHA1 c33e0e5ba9f4a179beba4ed047f5d56dff4a44e9 SHA256 38d10c3dc3590156ff6f73e93c3cd74eca03e5769813620e52586836622efd62
EBUILD darcs-1.0.9.ebuild 3103 RMD160 abf5175636beace77fc07ef40caa13c45b4dd804 SHA1 103019661540089464064380f7bc424c3ac4b66d SHA256 865326b299c20cb9ba4e7e19bbd2936ccd68c1042e33c4d65a6fa86967e7ecf2
EBUILD darcs-1.1.0_pre1.ebuild 3158 RMD160 5239fcf334bb0bd58594edb9a05632f488a8fdec SHA1 a6705aa4b3c44c629a4afc07cad9e4bf9c3f4191 SHA256 31e96a8bf8e24e31915cdb11fb06572fe73ad7ebbab983c6cdfc87b6a0c9e0ba
EBUILD darcs-2.0.2.ebuild 3227 RMD160 665eb7b84866fce8a99fd0c93fb4ab3d56c2db78 SHA1 b850ecc4544c59092d81a9d95daebef51af2a17f SHA256 02777ab0a8e9ccf21b1b466b7090db02b66f5da3907ca8cabd8933ffa9ada1af
EBUILD darcs-2.1.0-r1.ebuild 2805 RMD160 27b169ae95406d967445838bf3b50ebfe1792036 SHA1 e44ff459150db5cb1f7dac01cee0e62dc3944583 SHA256 880e1a615e1122523178696b05c8a8205e05aaac695eb60a521379d55110210e
EBUILD darcs-2.2.1.ebuild 2387 RMD160 46364b38e35561a8392b4b26d7928fc1e34fc20b SHA1 18aad9953e008cd50c1d2618eb2e16b9965bd434 SHA256 6379bc494e8b1b4ad9ebc36b63a27a56397ed2b0df48c878ed4adbd6e0e40a14
+EBUILD darcs-2.4.4.ebuild 4054 RMD160 879d1474fb06c40ca4124816239f1a57b4aed61d SHA1 9e724b6de27a2d6928fe2c7ae94b71fb134343a2 SHA256 405b1c6af6fbc26df5099a218affcc268cc81edb452d62316e724ddcd143d17d
EBUILD darcs-2.4.ebuild 3420 RMD160 aab36417f45cfc531cc8d218776d7cdb3930ded4 SHA1 598c42ab161e4e39b2e848481b440d5cba366e11 SHA256 3fc9bb7d6bb66b7684832aefe43525c41a2c40b5f0df801b4e2f3b838e2e56e3
-MISC ChangeLog 17315 RMD160 fada6aead741b878f3319aa3ccc8b8b9feded08c SHA1 2eb5b9b812dd1b1ab64bca473b053c26bd77912d SHA256 f154b29e301d622f931a133135e4a3854a95de950cdb50f331e067f913b7a779
+MISC ChangeLog 17435 RMD160 ba10824b95ceb378d3dd54328a6289dd62a56916 SHA1 81505f0ea9ecf91ea6ff88858824194f3fda28c4 SHA256 035fbff32159a63fd7fddc59957929be2cef1b1ea6ddac82558a9577116d16fa
MISC metadata.xml 223 RMD160 7783e6057effb8b8f0b79cffe8b557b32c633839 SHA1 7b962c77f2e38479a9d1621ec8d307ca9f761753 SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAkuvzMAACgkQ1n/CYbXjntJVaACgno1eCVfnrD4VPaXrUEFgmhKq
-5AYAnjFXTHQ2D2AVwNi9oFq7icboOTP5
-=eeB4
+iEYEARECAAYFAkv5p/sACgkQ1n/CYbXjntK7sQCgk6shT4PlTCAX0FVJE8esadKE
+JygAn1BMYUsx3crLIcihSEZR2iRyIE9y
+=OHaI
-----END PGP SIGNATURE-----
diff --git a/dev-vcs/darcs/darcs-2.4.4.ebuild b/dev-vcs/darcs/darcs-2.4.4.ebuild
new file mode 100644
index 000000000000..42d9834491d9
--- /dev/null
+++ b/dev-vcs/darcs/darcs-2.4.4.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/darcs-2.4.4.ebuild,v 1.1 2010/05/23 22:10:58 kolmodin Exp $
+
+EAPI="2"
+CABAL_FEATURES="bin lib profile haddock"
+inherit haskell-cabal eutils bash-completion
+
+DESCRIPTION="a distributed, interactive, smart revision control system"
+HOMEPAGE="http://darcs.net/"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="doc test"
+
+# Dependency notes:
+# 1) Use a cunning trick for hashed-storage, haskeline, regex-compat
+# where the min bound is the lowest version available.
+# 2) Do the opposite for zlib: highest not available.
+# 3) Prefer curl over HTTP since darcs uses an old version of HTTP.
+# 4) Use the same bounds for mmap as hashed-storage.
+
+COMMONDEPS=">=dev-lang/ghc-6.8
+ >=dev-haskell/hashed-storage-0.4.13
+ =dev-haskell/haskeline-0.6*
+ =dev-haskell/html-1.0*
+ =dev-haskell/mmap-0.4*
+ <dev-haskell/mtl-1.2
+ =dev-haskell/network-2.2*
+ dev-haskell/parsec:0
+ <dev-haskell/regex-compat-0.94
+ =dev-haskell/terminfo-0.3*
+ =dev-haskell/utf8-string-0.3*
+ <dev-haskell/zlib-0.6.0.0
+ net-misc/curl"
+
+DEPEND="${COMMONDEPS}
+ >=dev-haskell/cabal-1.6
+ doc? ( virtual/latex-base
+ dev-tex/latex2html )
+ test? ( dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ dev-haskell/test-framework-quickcheck2 )
+ "
+
+# darcs also has a library version; we thus need $DEPEND
+RDEPEND="${COMMONDEPS}
+ virtual/mta"
+
+pkg_setup() {
+ if use doc && ! built_with_use -o dev-tex/latex2html png gif; then
+ eerror "Building darcs with USE=\"doc\" requires that"
+ eerror "dev-tex/latex2html is built with at least one of"
+ eerror "USE=\"png\" and USE=\"gif\"."
+ die "USE=doc requires dev-tex/latex2html with USE=\"png\" or USE=\"gif\""
+ fi
+}
+
+src_prepare() {
+ pushd "contrib"
+ epatch "${FILESDIR}/${PN}-1.0.9-bashcomp.patch"
+ popd
+
+ # Loosen dependency on hashed-storage
+ sed -i -e "s/hashed-storage == 0.4.13/hashed-storage == 0.4.*/" \
+ "${S}/${PN}.cabal" \
+ || die "Could not loosen deps on hashed-storage"
+}
+
+src_configure() {
+ # checking whether ghc supports -threaded flag
+ # Beware: http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#options-linker
+ # contains: 'The ability to make a foreign call that does not block all other Haskell threads.'
+ # It might have interactivity impact.
+
+ threaded_flag=""
+ if $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES"; then
+ threaded_flag="--flags=threaded"
+ einfo "$P will be built with threads support"
+ else
+ threaded_flag="--flags=-threaded"
+ einfo "$P will be built without threads support"
+ fi
+
+ # Use curl for net stuff to avoid strict version dep on HTTP and network
+ cabal_src_configure \
+ --flags=curl \
+ --flags=-http \
+ --flags=curl-pipelining \
+ --flags=color \
+ --flags=terminfo \
+ --flags=mmap \
+ $threaded_flag \
+ $(cabal_flag test)
+}
+
+src_test() {
+ # run cabal test from haskell-cabal
+ haskell-cabal_src_test || die "cabal test failed"
+
+ # run the unit tests (not part of cabal test for some reason...)
+ # breaks the cabal abstraction a bit...
+ "${S}/dist/build/unit/unit" || die "unit tests failed"
+}
+
+src_install() {
+ cabal_src_install
+ dobashcompletion "${S}/contrib/darcs_completion" "${PN}"
+
+ rm "${D}/usr/bin/unit" 2> /dev/null
+
+ # fixup perms in such an an awkward way
+ mv "${D}/usr/share/man/man1/darcs.1" "${S}/darcs.1" || die "darcs.1 not found"
+ doman "${S}/darcs.1" || die "failed to register darcs.1 as a manpage"
+
+ # if tests were enabled, make sure the unit test driver is deleted
+ rm -rf "${D}/usr/bin/unit"
+}
+
+pkg_postinst() {
+ ghc-package_pkg_postinst
+ bash-completion_pkg_postinst
+
+ ewarn "NOTE: in order for the darcs send command to work properly,"
+ ewarn "you must properly configure your mail transport agent to relay"
+ ewarn "outgoing mail. For example, if you are using ssmtp, please edit"
+ ewarn "/etc/ssmtp/ssmtp.conf with appropriate values for your site."
+}