Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63899 Details for
Bug 99695
Ebuild for Cabal-1.1.1 (rc of 1.2)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
First attempt
cabal-1.1.1.ebuild (text/plain), 2.64 KB, created by
Lennart Kolmodin (RETIRED)
on 2005-07-20 09:44:25 UTC
(
hide
)
Description:
First attempt
Filename:
MIME Type:
Creator:
Lennart Kolmodin (RETIRED)
Created:
2005-07-20 09:44:25 UTC
Size:
2.64 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/cabal-0.5.ebuild,v 1.3 2005/05/04 16:32:31 dholm Exp $ > >inherit ghc-package > >DESCRIPTION="Haskell Common Architecture for Building Applications and Libraries" >HOMEPAGE="http://haskell.org/cabal" >SRC_URI="http://haskell.org/cabal/release/rc/${P}.tar.gz" >LICENSE="as-is" >SLOT="0" > >KEYWORDS="~x86 ~ppc" > >IUSE="doc" > >DEPEND="${DEPEND} > >=virtual/ghc-6.2" > >S="${WORKDIR}/${PN}" > ># The following functions exist because they are likely to be extracted ># to an eclass when other Cabal-based packages are added to Portage. > >cabal-configure() { > ./setup configure \ > --ghc --prefix=/usr \ > --with-compiler="$(ghc-getghc)" \ > --with-hc-pkg="$(ghc-getghcpkg)" \ > "$@" || die "setup configure failed" >} > >cabal-build() { > ./setup build \ > || die "setup build failed" >} > >cabal-copy() { > ./setup copy \ > --copy-prefix="${D}/usr" \ > || die "setup copy failed" >} > >cabal-pkg() { > ./setup register \ > --gen-script \ > || die "setup register failed" > if ghc-cabal; then > # ghc supports Cabal; however, ghc-6.4 ships a slightly > # broken version, which we fix here > sed -i "s|update *$|update .installed-pkg-config|" register.sh > fi > # we want to manually build ghci-libs, so we remove the flag; > # instead, we force the issue and write to the local config file > # rather than the global one (which would cause an access violation > # at this point anyway) > sed -i "s|--auto-ghci-libs\(.*\)$|--force \1 -f\\\\|" \ > register.sh > echo "${S}/$(ghc-localpkgconf)" >> register.sh > ghc-setup-pkg > ewarn "before register" > ./register.sh > ewarn "after register" > ghc-install-pkg >} > >src_compile() { > # bootstrap: build setup > make HC="$(ghc-getghc)" setup || die "make setup failed" > # cabal-style configure and compile > cabal-configure > cabal-build >} > >src_install() { > cabal-copy > ghc-makeghcilib ${D}/usr/lib/Cabal-${PV}/libHSCabal-${PV}.a > cabal-pkg > # documentation (install directly; generation seems broken to me atm) > dohtml -r doc/users-guide > if use doc; then > dohtml -r doc/API > dohtml -r doc/pkg-spec-html > dodoc doc/pkg-spec.pdf > fi > dodoc changelog copyright README releaseNotes TODO >} > >pkg_postinst () { > ewarn "If you have an older version of Cabal installed, you may have to" > ewarn "specify which version you want when you run ghci. For instance:" > ewarn "" > ewarn " $ ghci -package Cabal" > ewarn "ghc-6.4: Error; multiple packages match Cabal: Cabal-1.0, Cabal-1.0.1" > ewarn "" > ewarn "If you want to avoid this situation, you can remove the" > ewarn "older version with:" > ewarn "" > ewarn " $ ghc-pkg unregister Cabal-1.0" >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 99695
: 63899