[arch-commits] Commit in idris/trunk (PKGBUILD datadir.patch)
Felix Yan
felixonmars at archlinux.org
Thu Mar 9 07:49:39 UTC 2017
Date: Thursday, March 9, 2017 @ 07:49:38
Author: felixonmars
Revision: 215364
upgpkg: idris 0.99.1-1
Modified:
idris/trunk/PKGBUILD
Deleted:
idris/trunk/datadir.patch
---------------+
PKGBUILD | 26 ++++++-----------
datadir.patch | 84 --------------------------------------------------------
2 files changed, 10 insertions(+), 100 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-09 07:41:28 UTC (rev 215363)
+++ PKGBUILD 2017-03-09 07:49:38 UTC (rev 215364)
@@ -3,8 +3,8 @@
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
pkgname=idris
-pkgver=0.99
-pkgrel=30
+pkgver=0.99.1
+pkgrel=1
pkgdesc="Functional Programming Language with Dependent Types"
url="http://www.idris-lang.org/"
license=("custom:BSD3")
@@ -12,29 +12,23 @@
depends=('gmp' 'libffi' 'zlib' 'gcc')
makedepends=("ghc=8.0.1" "git" "haskell-aeson" "haskell-annotated-wl-pprint" "haskell-ansi-terminal"
"haskell-ansi-wl-pprint" "haskell-async" "haskell-base64-bytestring"
- "haskell-blaze-html" "haskell-blaze-markup" "haskell-cheapskate" "haskell-fingertree"
- "haskell-fsnotify" "haskell-ieee754" "haskell-mtl" "haskell-libffi" "haskell-network"
- "haskell-optparse-applicative" "haskell-parsers" "haskell-regex-tdfa"
- "haskell-safe" "haskell-split" "haskell-terminal-size" "haskell-text"
- "haskell-transformers-compat" "haskell-trifecta" "haskell-uniplate"
+ "haskell-blaze-html" "haskell-blaze-markup" "haskell-cheapskate" "haskell-code-page"
+ "haskell-fingertree" "haskell-fsnotify" "haskell-ieee754" "haskell-mtl"
+ "haskell-libffi" "haskell-network" "haskell-optparse-applicative" "haskell-parsers"
+ "haskell-regex-tdfa" "haskell-safe" "haskell-split" "haskell-terminal-size"
+ "haskell-text" "haskell-transformers-compat" "haskell-trifecta" "haskell-uniplate"
"haskell-unordered-containers" "haskell-utf8-string" "haskell-vector"
"haskell-vector-binary-instances" "haskell-zip-archive")
-source=("git+https://github.com/idris-lang/Idris-dev.git#tag=v$pkgver"
- datadir.patch)
-sha256sums=('SKIP'
- 'e7cf290770a7ee08cc4089eccf23a7501300d70e85df03d84652b3045d568371')
+source=("git+https://github.com/idris-lang/Idris-dev.git#tag=v$pkgver")
+sha256sums=('SKIP')
prepare() {
sed -i 's/, safe == 0.3.9/, safe >= 0.3.9/' Idris-dev/${pkgname}.cabal
-
- cd Idris-dev
- # https://github.com/idris-lang/Idris-dev/issues/3544
- patch -p1 -i ../datadir.patch
}
build() {
cd "${srcdir}/Idris-dev"
-
+
runhaskell Setup configure -O --enable-library-profiling --enable-shared \
--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
--libsubdir=\$compiler/site-local/\$pkgid \
Deleted: datadir.patch
===================================================================
--- datadir.patch 2017-03-09 07:41:28 UTC (rev 215363)
+++ datadir.patch 2017-03-09 07:49:38 UTC (rev 215364)
@@ -1,84 +0,0 @@
-From d1bc3fa3c704bc233f0036ea13204d7790d26477 Mon Sep 17 00:00:00 2001
-From: Jan de Muijnck-Hughes <jfdm at st-andrews.ac.uk>
-Date: Mon, 5 Dec 2016 11:17:51 +0000
-Subject: [PATCH] Make fetching of data files more robust. Fixes #3544
-
-`getDataFileName` didn't take into account possible changes in Idris' datadir that were not cabal made. This fix adds a more robust variant of `getDataFileName`.
----
- src/IRTS/System.hs | 7 ++++++-
- src/Idris/IdrisDoc.hs | 4 ++--
- src/Idris/Info.hs | 5 +++++
- 3 files changed, 13 insertions(+), 3 deletions(-)
-
-diff --git a/src/IRTS/System.hs b/src/IRTS/System.hs
-index def563e..9d3d11a 100644
---- a/src/IRTS/System.hs
-+++ b/src/IRTS/System.hs
-@@ -6,7 +6,7 @@ License : BSD3
- Maintainer : The Idris Community.
- -}
- {-# LANGUAGE CPP #-}
--module IRTS.System( getDataFileName
-+module IRTS.System( getIdrisDataFileByName
- , getCC
- , getLibFlags
- , getIdrisDataDir
-@@ -42,6 +42,11 @@ getIdrisDataDir = do
- return ddir
- Just ddir -> return ddir
-
-+getIdrisDataFileByName :: String -> IO FilePath
-+getIdrisDataFileByName fn = do
-+ dir <- getIdrisDataDir
-+ return $ dir </> fn
-+
- overrideIdrisSubDirWith :: String -- ^ Sub directory in `getDataDir` location.
- -> String -- ^ Environment variable to get new location from.
- -> IO FilePath
-diff --git a/src/Idris/IdrisDoc.hs b/src/Idris/IdrisDoc.hs
-index 012554f..6c144ae 100644
---- a/src/Idris/IdrisDoc.hs
-+++ b/src/Idris/IdrisDoc.hs
-@@ -19,7 +19,7 @@ import Idris.Docs
- import Idris.Docstrings (nullDocstring)
- import qualified Idris.Docstrings as Docstrings
- import Idris.Parser.Helpers (opChars)
--import IRTS.System (getDataFileName)
-+import IRTS.System (getIdrisDataFileByName)
-
- import Control.Applicative ((<|>))
- import Control.Monad (forM_)
-@@ -708,5 +708,5 @@ copyDependencies :: FilePath -- ^ The base directory to which
- -- dependencies should be written
- -> IO ()
- copyDependencies dir =
-- do styles <- getDataFileName $ "idrisdoc" </> "styles.css"
-+ do styles <- getIdrisDataFileByName $ "idrisdoc" </> "styles.css"
- copyFile styles (dir </> "styles.css")
-diff --git a/src/Idris/Info.hs b/src/Idris/Info.hs
-index 4ffe3d4..eb77a8c 100644
---- a/src/Idris/Info.hs
-+++ b/src/Idris/Info.hs
-@@ -22,6 +22,7 @@ module Idris.Info
- , getIdrisHistoryFile
- , getIdrisInstalledPackages
- , getIdrisLoggingCategories
-+ , getIdrisDataFileByName
- ) where
-
- import Idris.AbsSyntax (loggingCatsStr)
-@@ -34,6 +35,7 @@ import Version_idris (gitHash)
- import Data.Version
- import System.Directory
- import System.FilePath
-+
- getIdrisDataDir :: IO String
- getIdrisDataDir = S.getIdrisDataDir
-
-@@ -88,3 +90,6 @@ getIdrisInstalledPackages = installedPackages
-
- getIdrisLoggingCategories :: IO [String]
- getIdrisLoggingCategories = return $ words loggingCatsStr
-+
-+getIdrisDataFileByName :: String -> IO FilePath
-+getIdrisDataFileByName = S.getIdrisDataFileByName
More information about the arch-commits
mailing list