gienah      14/07/02 15:24:38

  Modified:             metadata.xml ChangeLog
  Added:                agda-stdlib-0.8.ebuild
  Log:
  Bump agda-stdlib to 0.8
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
618E971F)

Revision  Changes    Path
1.2                  sci-mathematics/agda-stdlib/metadata.xml

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/metadata.xml?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/metadata.xml?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/metadata.xml?r1=1.1&r2=1.2

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/metadata.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- metadata.xml        25 Mar 2012 14:02:15 -0000      1.1
+++ metadata.xml        2 Jul 2014 15:24:38 -0000       1.2
@@ -6,4 +6,7 @@
 <longdescription lang="en">
   Agda standard library.
 </longdescription>
+<use>
+       <flag name='ffi'>Install agda-lib-ffi for compilation using the MAlonzo 
backend</flag>
+</use>
 </pkgmetadata>



1.6                  sci-mathematics/agda-stdlib/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog?rev=1.6&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog?rev=1.6&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog?r1=1.5&r2=1.6

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ChangeLog   10 Dec 2013 11:46:28 -0000      1.5
+++ ChangeLog   2 Jul 2014 15:24:38 -0000       1.6
@@ -1,6 +1,12 @@
 # ChangeLog for sci-mathematics/agda-stdlib
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog,v 1.5 
2013/12/10 11:46:28 gienah Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/ChangeLog,v 1.6 
2014/07/02 15:24:38 gienah Exp $
+
+*agda-stdlib-0.8 (02 Jul 2014)
+
+  02 Jul 2014; Mark Wright <[email protected]> +agda-stdlib-0.8.ebuild,
+  metadata.xml:
+  Bump agda-stdlib to 0.8
 
 *agda-stdlib-0.7-r1 (10 Dec 2013)
 



1.1                  sci-mathematics/agda-stdlib/agda-stdlib-0.8.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/agda-stdlib-0.8.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/agda-stdlib/agda-stdlib-0.8.ebuild?rev=1.1&content-type=text/plain

Index: agda-stdlib-0.8.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/sci-mathematics/agda-stdlib/agda-stdlib-0.8.ebuild,v 
1.1 2014/07/02 15:24:38 gienah Exp $

EAPI=5

CABAL_FEATURES="bin"
inherit haskell-cabal elisp-common

DESCRIPTION="Agda standard library"
HOMEPAGE="http://wiki.portal.chalmers.se/agda/";
SRC_URI="https://github.com/agda/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="profile +ffi"

# filemanip is used in lib.cabal to make the GenerateEverything and
# AllNonAsciiChars executables, so agda-stdlib does not require a subslot
# dependency on filemanip.

RDEPEND=">=sci-mathematics/agda-2.4:=[profile?]
        =dev-haskell/filemanip-0.3*[profile?]
        >=sci-mathematics/agda-executable-2.3.0.1:=
        >=dev-lang/ghc-6.12.1
        ffi? ( =sci-mathematics/agda-lib-ffi-0.0.2 )
"
DEPEND="${RDEPEND}
        >=dev-haskell/cabal-1.8.0.2
"

SITEFILE="50${PN}-gentoo.el"

src_prepare() {
        cabal-mksetup
}

src_compile() {
        haskell-cabal_src_compile
        "${S}"/dist/build/GenerateEverything/GenerateEverything \
                || die "GenerateEverything failed"
        local prof
        use profile && prof="--ghc-flag=-prof"
        agda +RTS -K1G -RTS ${prof} \
                -i "${S}" -i "${S}"/src "${S}"/Everything.agda || die
        # Although my agda-9999 build has
        # 
/var/tmp/portage/sci-mathematics/agda-9999/work/agda-9999/dist/build/autogen/Paths_Agda.hs
        # containing:
        # datadir    = "/usr/share/agda-9999/ghc-7.6.1"
        # it fails without the --css option like:
        # /usr/share/agda-9999/ghc-7.4.1/Agda.css: copyFile: does not exist
        local cssdir=$(egrep 'datadir *=' 
"${S}/dist/build/autogen/Paths_lib.hs" | sed -e 's@datadir    = \(.*\)@\1@')
        agda --html -i "${S}" -i "${S}"/src --css="${cssdir}/Agda.css" 
"${S}"/README.agda || die
}

src_test() {
        agda -i "${S}" -i "${S}"/src README.agda || die
}

src_install() {
        insinto usr/share/agda-stdlib
        export INSOPTIONS=--preserve-timestamps
        doins -r src/*
        dodoc -r html/*
        elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
}




Reply via email to