ats-pkg 2.10.2.0 → 2.10.2.2
raw patch · 4 files changed
+16/−3 lines, 4 filessetup-changedPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +2/−0
- Setup.hs +2/−1
- ats-pkg.cabal +2/−2
- src/Language/ATS/Package/Build/C.hs +10/−0
README.md view
@@ -2,6 +2,7 @@ [](https://travis-ci.org/vmchale/atspkg) [](http://hackage.haskell.org/package/ats-pkg)+[](https://hackage.haskell.org/package/ats-pkg) This is a build system for ATS written in Haskell and configured with Dhall. It is not fully working, but the configuration format is now stable.@@ -100,6 +101,7 @@ [here](https://github.com/vmchale/atspkg/blob/master/ats-pkg/EXAMPLES.md). ## Global Configuration+ `atspkg` is configured via a file in `~/.config/atspkg/config.dhall`. You can set a custom package set as follows:
Setup.hs view
@@ -1,13 +1,14 @@ {-# OPTIONS_GHC -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat #-} import Data.Bool (bool)+import Data.Foldable (fold) import Distribution.CommandLine import Distribution.PackageDescription import Distribution.Simple import Distribution.Simple.Setup installActions :: IO ()-installActions = sequence_+installActions = fold [ writeManpages "man/atspkg.1" "atspkg.1" , writeTheFuck , writeBashCompletions "atspkg"
ats-pkg.cabal view
@@ -1,12 +1,12 @@ cabal-version: 1.18 name: ats-pkg-version: 2.10.2.0+version: 2.10.2.2 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale maintainer: vamchale@gmail.com author: Vanessa McHale-homepage: https://github.com/vmchale/atspkg#readme+homepage: https://github.com/vmchale/atspkg/tree/master/ats-pkg#readme bug-reports: https://github.com/vmchale/atspkg/issues synopsis: A build tool for ATS description:
src/Language/ATS/Package/Build/C.hs view
@@ -37,14 +37,19 @@ -> IO () clibSetup v cc' lib' p = do + -- TODO autogen.sh+ -- Find configure script and make it executable subdirs <- allSubdirs p configurePath <- findFile (p:subdirs) "configure"+ -- autogenPath <- findFile (p:subdirs) "autogen.sh" cmakeLists <- findFile (p:subdirs) "CMakeLists.txt" fold (setFileMode <$> configurePath <*> pure ownerModes)+ -- fold (setFileMode <$> autogenPath <*> pure ownerModes) makeExecutable "install-sh" (p:subdirs) makeExecutable "mkinstalldirs" (p:subdirs) makeExecutable "rellns-sh" (p:subdirs)+ makeExecutable "shtool" (p:subdirs) -- CC="gcc" CFLAGS="-shared-libgcc -O2" ./glibc-2.27/configure --prefix="$HOME/.atspkg" -- Set environment variables for configure script@@ -58,6 +63,11 @@ cmake v prefixPath (Just cfgLists) _ _ = do let p = takeDirectory cfgLists silentCreateProcess v ((proc "cmake" ["-DCMAKE_INSTALL_PREFIX:PATH=" ++ prefixPath, p]) { cwd = Just p })++autogen :: Verbosity -> FilePath -> String -> FilePath -> IO ()+autogen v autogenPath lib' _ =+ putStrLn ("generating " ++ lib' ++ "...") >>+ silentCreateProcess v ((proc autogenPath mempty) { cwd = Just (takeDirectory autogenPath) }) configure :: Verbosity -> FilePath -> FilePath -> Maybe [(String, String)] -> String -> FilePath -> IO () configure v prefixPath configurePath procEnv lib' p =