Commit d6cea1dc authored by arrowd's avatar arrowd
Browse files

devel/elm-format: New port. A tool for formatting programs written in Elm language.

Submitted by:	Evilham <contact@evilham.com>
Differential Revision:	https://reviews.freebsd.org/D20954
parent 8a68b1b0
...@@ -575,6 +575,7 @@ ...@@ -575,6 +575,7 @@
SUBDIR += elixir-trailing_format_plug SUBDIR += elixir-trailing_format_plug
SUBDIR += elixir-tzdata SUBDIR += elixir-tzdata
SUBDIR += elixir-unsafe SUBDIR += elixir-unsafe
SUBDIR += elm-format
SUBDIR += embb SUBDIR += embb
SUBDIR += emscripten SUBDIR += emscripten
SUBDIR += entt SUBDIR += entt
......
# $FreeBSD$
PORTNAME= elm-format
PORTVERSION= 0.8.1
CATEGORIES= devel textproc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Elm source code formatter based on the official Elm Style Guide
LICENSE= BSD3CLAUSE
USES= cabal
USE_GITHUB= yes
GH_ACCOUNT= avh4
GH_PROJECT= elm-format
USE_CABAL= ansi-terminal-0.8.2 \
ansi-wl-pprint-0.6.8.2_2 \
base-orphans-0.8.1 \
bifunctors-5.5.4_1 \
binary-0.8.6.0 \
Cabal-2.4.1.0_1 \
cabal-doctest-1.0.6_2 \
colour-2.3.5 \
comonad-5.0.5 \
concatenative-1.0.1 \
containers-0.5.11.0_3 \
contravariant-1.5.1 \
distributive-0.6 \
exceptions-0.10.2 \
free-5.1.1 \
hashable-1.3.0.0 \
indents-0.3.3 \
json-0.9.3 \
optparse-applicative-0.14.3.0_2 \
parsec-3.1.13.0_2 \
profunctors-5.4 \
semigroupoids-5.3.2_1 \
split-0.2.3.3_1 \
StateVar-1.1.1.1 \
syb-0.7 \
tagged-0.8.6_1 \
text-1.2.3.1_2 \
th-abstraction-0.3.1.0 \
transformers-base-0.4.5.2 \
transformers-compat-0.6.5 \
unordered-containers-0.2.10.0_1
post-patch:
@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' \
${WRKSRC}/Setup.hs \
${WRKSRC}/src/ElmFormat/Version.hs
.include <bsd.port.mk>
TIMESTAMP = 1563203545
SHA256 (cabal/elm-format-0.8.1.tar.gz) = fddf0a480e473181c000b2ba30ed55bffb9f9af97cbb34678a3316711bfcdcb7
SIZE (cabal/elm-format-0.8.1.tar.gz) = 509353
SHA256 (cabal/Cabal-2.4.1.0/Cabal-2.4.1.0.tar.gz) = 736a902da9fb2c826e75e9f7b4b591983bf58a6a62c8cae9866f6a9d5ace3594
SIZE (cabal/Cabal-2.4.1.0/Cabal-2.4.1.0.tar.gz) = 744637
SHA256 (cabal/Cabal-2.4.1.0/revision/1.cabal) = 56c858cf85e8756a94aaf930f2be4c2eaee623f067e7c55394194d3741147ab7
SIZE (cabal/Cabal-2.4.1.0/revision/1.cabal) = 21825
SHA256 (cabal/StateVar-1.1.1.1/StateVar-1.1.1.1.tar.gz) = eb6436516ab2d5e3d3e070b5a1595c4dceea760a58a9cc8d23dad5f6008f2223
SIZE (cabal/StateVar-1.1.1.1/StateVar-1.1.1.1.tar.gz) = 4762
SHA256 (cabal/ansi-terminal-0.8.2/ansi-terminal-0.8.2.tar.gz) = 90a7324811e7da0d0aecd66454b1622e3b1ee22ed09bbdae379c0ff079d2fa90
SIZE (cabal/ansi-terminal-0.8.2/ansi-terminal-0.8.2.tar.gz) = 31357
SHA256 (cabal/ansi-wl-pprint-0.6.8.2/ansi-wl-pprint-0.6.8.2.tar.gz) = a630721bd57678c3bfeb6c703f8249e434cbf85f40daceec4660fb8c6725cb3e
SIZE (cabal/ansi-wl-pprint-0.6.8.2/ansi-wl-pprint-0.6.8.2.tar.gz) = 16491
SHA256 (cabal/ansi-wl-pprint-0.6.8.2/revision/2.cabal) = a890b713942c1aa0109fb632e9fee581ceb5b0763fd936ae8cae22e5f91a0877
SIZE (cabal/ansi-wl-pprint-0.6.8.2/revision/2.cabal) = 2178
SHA256 (cabal/base-orphans-0.8.1/base-orphans-0.8.1.tar.gz) = 442bd63aed102e753b2fed15df8ae19f35ee07af26590da63837c523b64a99db
SIZE (cabal/base-orphans-0.8.1/base-orphans-0.8.1.tar.gz) = 19639
SHA256 (cabal/bifunctors-5.5.4/bifunctors-5.5.4.tar.gz) = 29d62cf43fcef94534a585623357ab6d89a940db8d3931cb092485c6c3b19b8c
SIZE (cabal/bifunctors-5.5.4/bifunctors-5.5.4.tar.gz) = 40510
SHA256 (cabal/bifunctors-5.5.4/revision/1.cabal) = 7240cda20b6b51e18d679691fab27784a56fc075cf71927070850f2960171017
SIZE (cabal/bifunctors-5.5.4/revision/1.cabal) = 3313
SHA256 (cabal/binary-0.8.6.0/binary-0.8.6.0.tar.gz) = 1ee9c4f3cb7e712e2f6ac64faae3224d639b736826a3f810578dc8ba92dae15f
SIZE (cabal/binary-0.8.6.0/binary-0.8.6.0.tar.gz) = 57369
SHA256 (cabal/cabal-doctest-1.0.6/cabal-doctest-1.0.6.tar.gz) = decaaa5a73eaabaf3c4f8c644bd7f6e3f428b6244e935c0cf105f75f9b24ed2d
SIZE (cabal/cabal-doctest-1.0.6/cabal-doctest-1.0.6.tar.gz) = 10007
SHA256 (cabal/cabal-doctest-1.0.6/revision/2.cabal) = c0b4a5b1ff38d2867e7003b4be59f3bd7e8e204ab8c988d96d3a77472ae671cd
SIZE (cabal/cabal-doctest-1.0.6/revision/2.cabal) = 1408
SHA256 (cabal/colour-2.3.5/colour-2.3.5.tar.gz) = 3b8d471979617dce7c193523743c9782df63433d8e87e3ef6d97922e0da104e7
SIZE (cabal/colour-2.3.5/colour-2.3.5.tar.gz) = 20485
SHA256 (cabal/comonad-5.0.5/comonad-5.0.5.tar.gz) = 6c581266675389cef300117f453350748fd0bcfb33310bda93f67d5dc5b5fad0
SIZE (cabal/comonad-5.0.5/comonad-5.0.5.tar.gz) = 17911
SHA256 (cabal/concatenative-1.0.1/concatenative-1.0.1.tar.gz) = ed5997924518f0ca6b8afcd4e1ee10d30675bb4c4ba164a4d70b4ddbd8c6bc17
SIZE (cabal/concatenative-1.0.1/concatenative-1.0.1.tar.gz) = 3723
SHA256 (cabal/containers-0.5.11.0/containers-0.5.11.0.tar.gz) = 58cd226ad5a147b12240f854a1fbadf809fd56cb9532123d60c1b23d13e04948
SIZE (cabal/containers-0.5.11.0/containers-0.5.11.0.tar.gz) = 231729
SHA256 (cabal/containers-0.5.11.0/revision/3.cabal) = 28ad7337057442f75bc689315ab4ec7bdf5e6b2c39668f306672cecd82c02798
SIZE (cabal/containers-0.5.11.0/revision/3.cabal) = 16685
SHA256 (cabal/contravariant-1.5.1/contravariant-1.5.1.tar.gz) = 088bcce066c110b918273f79bd7902468eb09638563602135950f45ac75e8ec9
SIZE (cabal/contravariant-1.5.1/contravariant-1.5.1.tar.gz) = 16002
SHA256 (cabal/distributive-0.6/distributive-0.6.tar.gz) = a4af1341a63a430dc569dd1e59631f127c40ebdd353a945a74d18682f6bdc1d4
SIZE (cabal/distributive-0.6/distributive-0.6.tar.gz) = 10904
SHA256 (cabal/exceptions-0.10.2/exceptions-0.10.2.tar.gz) = 918c2ccbfb03caff826726bb7bf5170734b393817ace939f8dea86d60fc1512a
SIZE (cabal/exceptions-0.10.2/exceptions-0.10.2.tar.gz) = 19932
SHA256 (cabal/free-5.1.1/free-5.1.1.tar.gz) = 53d52a0d3be781b4732c0f086548aad5d9c82435ef91c9c638ac824ffab16338
SIZE (cabal/free-5.1.1/free-5.1.1.tar.gz) = 62956
SHA256 (cabal/hashable-1.3.0.0/hashable-1.3.0.0.tar.gz) = 822e5413fbccca6ae884d3aba4066422c8b5d58d23d18b9ecb5c03273bb19ab4
SIZE (cabal/hashable-1.3.0.0/hashable-1.3.0.0.tar.gz) = 29835
SHA256 (cabal/indents-0.3.3/indents-0.3.3.tar.gz) = b61f51ac894609cb5571cc3ded12db5de97185a8de236c69ec24c87457109f9a
SIZE (cabal/indents-0.3.3/indents-0.3.3.tar.gz) = 3841
SHA256 (cabal/json-0.9.3/json-0.9.3.tar.gz) = 8baf1de09983df8036fda854c4d1446f156a52d4988b863175e29af35c1d1afd
SIZE (cabal/json-0.9.3/json-0.9.3.tar.gz) = 22562
SHA256 (cabal/optparse-applicative-0.14.3.0/optparse-applicative-0.14.3.0.tar.gz) = 72476302fe555a508917b2d7d6121c7b58ea5434cdc08aeb5d4b652e8f0e7663
SIZE (cabal/optparse-applicative-0.14.3.0/optparse-applicative-0.14.3.0.tar.gz) = 53480
SHA256 (cabal/optparse-applicative-0.14.3.0/revision/2.cabal) = 37d7ff26d8cddf7f2b58e9ed60c1550f3d94b32bc449e3c038be074f256e08a8
SIZE (cabal/optparse-applicative-0.14.3.0/revision/2.cabal) = 4376
SHA256 (cabal/parsec-3.1.13.0/parsec-3.1.13.0.tar.gz) = 7861ae437a6177ee7c08899432fd8c062e7c110361da48a9f9e88263fd4d80f1
SIZE (cabal/parsec-3.1.13.0/parsec-3.1.13.0.tar.gz) = 35207
SHA256 (cabal/parsec-3.1.13.0/revision/2.cabal) = d56210cf092db6e43024d9e8871c7e05a8e9e36e9aec09356e5bd401ea8f5a0c
SIZE (cabal/parsec-3.1.13.0/revision/2.cabal) = 4121
SHA256 (cabal/profunctors-5.4/profunctors-5.4.tar.gz) = 10ba750039cf29aa985aa6b39c1b055d28f02ae0ffc6923f8da8e5d1768bb0ac
SIZE (cabal/profunctors-5.4/profunctors-5.4.tar.gz) = 29259
SHA256 (cabal/semigroupoids-5.3.2/semigroupoids-5.3.2.tar.gz) = 61a8213df437ee96a20b1c6dec8b5c573e4e0f338eb2061739a67f471d6b9d05
SIZE (cabal/semigroupoids-5.3.2/semigroupoids-5.3.2.tar.gz) = 25649
SHA256 (cabal/semigroupoids-5.3.2/revision/1.cabal) = c690b223a2dd5342db29c2a905bf00ca1a95731b1704a4bd053cb0bd42bc08e5
SIZE (cabal/semigroupoids-5.3.2/revision/1.cabal) = 7567
SHA256 (cabal/split-0.2.3.3/split-0.2.3.3.tar.gz) = 1dcd674f7c5f276f33300f5fd59e49d1ac6fc92ae949fd06a0f6d3e9d9ac1413
SIZE (cabal/split-0.2.3.3/split-0.2.3.3.tar.gz) = 15681
SHA256 (cabal/split-0.2.3.3/revision/1.cabal) = f1c7b12865e38d1e241ceef74c85eb81d82301022fea1a5012d8d9803af5e26f
SIZE (cabal/split-0.2.3.3/revision/1.cabal) = 2614
SHA256 (cabal/syb-0.7/syb-0.7.tar.gz) = b8757dce5ab4045c49a0ae90407d575b87ee5523a7dd5dfa5c9d54fcceff42b5
SIZE (cabal/syb-0.7/syb-0.7.tar.gz) = 39566
SHA256 (cabal/tagged-0.8.6/tagged-0.8.6.tar.gz) = ad16def0884cf6f05ae1ae8e90192cf9d8d9673fa264b249499bd9e4fac791dd
SIZE (cabal/tagged-0.8.6/tagged-0.8.6.tar.gz) = 11759
SHA256 (cabal/tagged-0.8.6/revision/1.cabal) = 7093ee39c9779beeacffa4b0035a0e8a25da16afcd1c1a876930207fb8e31d1c
SIZE (cabal/tagged-0.8.6/revision/1.cabal) = 2606
SHA256 (cabal/text-1.2.3.1/text-1.2.3.1.tar.gz) = 8360624d5d01f278da320eebd16fd5d6f366b7f876d0ad424041d58e5e1147a6
SIZE (cabal/text-1.2.3.1/text-1.2.3.1.tar.gz) = 157382
SHA256 (cabal/text-1.2.3.1/revision/2.cabal) = ceb05f2a77b82bffe58c9ce8d8ad447191e4509bd28c14bf3da610bd6b82a62b
SIZE (cabal/text-1.2.3.1/revision/2.cabal) = 8560
SHA256 (cabal/th-abstraction-0.3.1.0/th-abstraction-0.3.1.0.tar.gz) = 4b9e1bcc6ec3d897fb09c3d7fa2f37f0672d5370e0e3e49809886da81fe001b9
SIZE (cabal/th-abstraction-0.3.1.0/th-abstraction-0.3.1.0.tar.gz) = 34248
SHA256 (cabal/transformers-base-0.4.5.2/transformers-base-0.4.5.2.tar.gz) = d0c80c63fdce6a077dd8eda4f1ff289b85578703a3f1272e141d400fe23245e8
SIZE (cabal/transformers-base-0.4.5.2/transformers-base-0.4.5.2.tar.gz) = 2849
SHA256 (cabal/transformers-compat-0.6.5/transformers-compat-0.6.5.tar.gz) = da67cf11515da751b32a8ce6e96549f7268f7c435769ad19dc9766b69774620b
SIZE (cabal/transformers-compat-0.6.5/transformers-compat-0.6.5.tar.gz) = 40421
SHA256 (cabal/unordered-containers-0.2.10.0/unordered-containers-0.2.10.0.tar.gz) = 65f117bdbdea9efc75fb9fd539873de7687e005d8898bb21821020a4b383c573
SIZE (cabal/unordered-containers-0.2.10.0/unordered-containers-0.2.10.0.tar.gz) = 44733
SHA256 (cabal/unordered-containers-0.2.10.0/revision/1.cabal) = 5e9b095a9283d9e2f064fec73a81a6b6ea0b7fda3f219a8175785d2d2a3de204
SIZE (cabal/unordered-containers-0.2.10.0/revision/1.cabal) = 5199
SHA256 (cabal/avh4-elm-format-0.8.1_GH0.tar.gz) = fddf0a480e473181c000b2ba30ed55bffb9f9af97cbb34678a3316711bfcdcb7
SIZE (cabal/avh4-elm-format-0.8.1_GH0.tar.gz) = 509353
--- Setup.hs.orig 2018-10-02 05:59:03 UTC
+++ Setup.hs
@@ -23,7 +23,7 @@ writeCustomFile :: FilePath -> IO ()
writeCustomFile filepath = do
putStrLn $ "Generating " ++ filepath ++ "..."
- desc <- readProcess "git" ["describe", "--abbrev=8", "--always"] ""
+ desc <- readProcess "echo" ["%%PORTVERSION%%"] ""
now <- readProcess "date" ["+%s"] ""
writeFile filepath $ unlines
--- elm-format.cabal.orig 2019-07-15 11:59:50 UTC
+++ elm-format.cabal
@@ -83,7 +83,6 @@ library
AST.Json
AST.MapExpr
AST.MapNamespace
- Build_elm_format
Cheapskate.Inlines
Cheapskate.Parse
Cheapskate.ParserCombinators
--- src/ElmFormat/Version.hs.orig 2019-07-15 11:58:38 UTC
+++ src/ElmFormat/Version.hs
@@ -1,11 +1,9 @@
module ElmFormat.Version (asString, experimental) where
-import qualified Build_elm_format
-
asString :: String
asString =
- Build_elm_format.gitDescribe
+ "%%PORTVERSION%%"
experimental :: Maybe String
elm-format is an Elm source code formatter according to a standard set of rules
based on the official Elm Style Guide. It is inspired by the popular gofmt.
WWW: https://github.com/avh4/elm-format/
Supports Markdown
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