From 8fe5dc12dc0c9fd63d5af4f49879dbf0d6f9eab3 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 30 Jun 2021 13:03:10 +0200 Subject: Add package metadata --- Cana.cabal | 20 ++++++++++++++- LICENSE | 2 +- package.yaml | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 package.yaml diff --git a/Cana.cabal b/Cana.cabal index 42b224c..c216625 100644 --- a/Cana.cabal +++ b/Cana.cabal @@ -23,6 +23,10 @@ source-repository head type: git location: https://github.com/githubuser/Cana +flag static + manual: True + default: False + library exposed-modules: Cana @@ -45,9 +49,12 @@ library , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store default-language: Haskell2010 @@ -58,7 +65,6 @@ executable Cana-exe Paths_Cana hs-source-dirs: app - ghc-options: -threaded -rtsopts -with-rtsopts=-N build-depends: Cana , base >=4.7 && <5 @@ -69,11 +75,20 @@ executable Cana-exe , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store + if flag(static) + ghc-options: -threaded -rtsopts -with-rtsopts=-N -static -O0 -optl-fuse-ld=bfd + cc-options: -static + ld-options: -static -pthread + else + ghc-options: -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010 test-suite Cana-test @@ -94,9 +109,12 @@ test-suite Cana-test , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store default-language: Haskell2010 diff --git a/LICENSE b/LICENSE index 7caa388..2b2fdde 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright Author name here (c) 2021 +Copyright Daniel Schadt (c) 2021 All rights reserved. diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..ae262e1 --- /dev/null +++ b/package.yaml @@ -0,0 +1,84 @@ +name: Cana +version: 0.1.0.0 +git: "https://git.kingdread.de/cgit.cgi/Cana" +license: BSD-3 +author: "Daniel Schadt" +copyright: "2021 Daniel Schadt" +homepage: "https://git.kingdread.de/cgit.cgi/Cana/about/" + +extra-source-files: +- README.md +- ChangeLog.md + +# Metadata used when publishing your package +# synopsis: Short description of your package +# category: Web + +# To avoid duplicated efforts in documentation and dealing with the +# complications of embedding Haddock markup inside cabal files, it is +# common to point users to the README.md file. +description: Project Gemini server implementation, see the README for more details. + +dependencies: +- base >= 4.7 && < 5 +- bytestring +- data-default +- network +- network-uri +- tls +- transformers +- x509 +- x509-store +- filepath +- directory +- mime-types +- text +- process +- stringsearch +- utf8-string + +library: + source-dirs: src + +flags: + static: + manual: true + default: false + +executables: + Cana-exe: + main: Main.hs + source-dirs: app + when: + - condition: flag(static) + then: + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + - -static + - -O0 + - -optl-fuse-ld=bfd + ld-options: + - -static + - -pthread + cc-options: + - -static + else: + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - Cana + +tests: + Cana-test: + main: Spec.hs + source-dirs: test + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - Cana -- cgit v1.2.3