slyfox      14/08/11 10:20:38

  Modified:             ChangeLog
  Added:                haddock-2.14.3.0.7.8.3.ebuild
  Log:
  Version bump (ghc-7.8 support).
  
  (Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 
611FF3AA)

Revision  Changes    Path
1.113                dev-haskell/haddock/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.113&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.113&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?r1=1.112&r2=1.113

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- ChangeLog   22 Sep 2013 06:44:28 -0000      1.112
+++ ChangeLog   11 Aug 2014 10:20:38 -0000      1.113
@@ -1,6 +1,12 @@
 # ChangeLog for dev-haskell/haddock
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.112 
2013/09/22 06:44:28 ago Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.113 
2014/08/11 10:20:38 slyfox Exp $
+
+*haddock-2.14.3.0.7.8.3 (11 Aug 2014)
+
+  11 Aug 2014; Sergei Trofimovich <[email protected]>
+  +haddock-2.14.3.0.7.8.3.ebuild:
+  Version bump (ghc-7.8 support).
 
   22 Sep 2013; Agostino Sarubbo <[email protected]> haddock-2.13.2-r1.ebuild:
   Stable for x86, wrt bug #483462



1.1                  dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild?rev=1.1&content-type=text/plain

Index: haddock-2.14.3.0.7.8.3.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild,v 1.1 
2014/08/11 10:20:38 slyfox Exp $

EAPI=5

# ebuild generated by hackport 0.3.6.9999

CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
CABAL_FEATURES+=" nocabaldep"
inherit haskell-cabal pax-utils

DESCRIPTION="A documentation-generation tool for Haskell libraries"
HOMEPAGE="http://www.haskell.org/haddock/";
#SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
SRC_URI="http://code.haskell.org/~slyfox/snapshots/${P}.tar.gz";

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-haskell/ghc-paths:=[profile?]
        >=dev-haskell/xhtml-3000.2:=[profile?] 
<dev-haskell/xhtml-3000.3:=[profile?]
        >=dev-lang/ghc-7.8.3:= <dev-lang/ghc-7.9:=
"
DEPEND="${RDEPEND}
        test? ( dev-haskell/hspec
                >=dev-haskell/quickcheck-2 <dev-haskell/quickcheck-3 )
"

src_prepare() {
        if [[ ! -e "${S}/html" ]]; then
                ln -s resources/html "${S}/html" || die "Could not create 
symbolic link ${S}/html"
        fi
}

src_configure() {
        # create a fake haddock executable. it'll set the right version to cabal
        # configure, but will eventually get overwritten in src_compile by
        # the real executable.
        local exe="${S}/dist/build/haddock/haddock"
        mkdir -p $(dirname "${exe}")
        echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
        chmod +x "${exe}"

        # we use 'nocabaldep' to use ghc's bundled Cabal
        # as external one is likely to break our haddock
        # (known to work on 1.16.0 and breaks on 1.16.0.1!)
        haskell-cabal_src_configure \
                --ghc-options=-rtsopts \
                --with-haddock="${exe}" \
                --constraint="Cabal == $(cabal-version)"
}

src_compile() {
        # when building the (recursive..) haddock docs, change the datadir to 
the
        # current directory, as we're using haddock inplace even if it's built 
to be
        # installed into the system first.
        haddock_datadir="${S}" haskell-cabal_src_compile
}

src_install() {
        cabal_src_install
        # haddock uses GHC-api to process TH source.
        # TH requires GHCi which needs mmap('rwx') (bug #299709)
        pax-mark -m "${D}/usr/bin/${PN}"
}




Reply via email to