Commit ea6c5e60 authored by Michael Hanus 's avatar Michael Hanus

Index location changed, category added to package spec

parent f6f51d37
......@@ -21,9 +21,10 @@ import CPM.ErrorLogger
--- The location of the central package index.
packageIndexURI :: String
packageIndexURI = "https://git.ps.informatik.uni-kiel.de/curry/cpm-index.git"
packageIndexURI =
"https://git.ps.informatik.uni-kiel.de/curry-packages/cpm-index.git"
-- if you have an ssh access to git.ps:
-- "ssh://git@git.ps.informatik.uni-kiel.de:55055/curry/cpm-index.git"
-- "ssh://git@git.ps.informatik.uni-kiel.de:55055/curry-packages/cpm-index.git"
--- Data type containing the main configuration of CPM.
data Config = Config {
......
......@@ -717,13 +717,14 @@ newPackage = do
inpSynopsis <- askMandatory
"Please provide a short (one line) summary of what the package does:\n>"
createDirectory inpName
let pkgSpec = Package { name = inpName
, version = inpVersion
, author = inpAuthor
, synopsis = inpSynopsis
, dependencies = []
, exportedModules = []
}
let pkgSpec = emptyPackage { name = inpName
, version = inpVersion
, author = inpAuthor
, synopsis = inpSynopsis
, category = []
, dependencies = []
, exportedModules = []
}
writePackageSpec pkgSpec (inpName </> "package.json")
createDirectory (inpName </> "src")
putStrLn $
......
This diff is collapsed.
......@@ -199,7 +199,7 @@ renderPackageInfo allinfos _ gc pkg = pPrint doc
where
maxLen = 12
doc = vcat $ [ heading, rule, installed, ver, auth, maintnr, synop
, deps, compilers, descr ] ++
, cats, deps, compilers, descr ] ++
if allinfos
then [ expmods, execspec, testsuite, src, licns, copyrt
, homepg, reposy, bugrep]
......@@ -222,6 +222,12 @@ renderPackageInfo allinfos _ gc pkg = pPrint doc
Nothing -> empty
Just s -> fill maxLen (bold (text "Maintainer")) <+> text s
cats =
if null (category pkg)
then empty
else bold (text "Category") <+>
indent 4 (fillSep (map text (category pkg)))
execspec = case executableSpec pkg of
Nothing -> empty
Just (PackageExecutable n m) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment