2020-08-04 06:15:06 +00:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: MetaBrush
|
|
|
|
version: 0.1.0.0
|
|
|
|
synopsis: GUI for brush calligraphy.
|
|
|
|
category: Calligraphy, Font, Geometry, Graphics, GUI
|
2020-08-05 20:23:16 +00:00
|
|
|
license: NONE
|
2020-08-04 06:15:06 +00:00
|
|
|
homepage: https://gitlab.com/sheaf/MetaBrush
|
|
|
|
build-type: Simple
|
2020-08-05 20:23:16 +00:00
|
|
|
data-dir:
|
|
|
|
assets
|
2020-08-04 06:15:06 +00:00
|
|
|
data-files:
|
2020-08-05 20:23:16 +00:00
|
|
|
theme.css
|
2023-01-08 20:12:00 +00:00
|
|
|
colours.css
|
2021-04-21 15:08:33 +00:00
|
|
|
icons/*
|
2020-08-04 06:15:06 +00:00
|
|
|
description:
|
|
|
|
|
|
|
|
MetaBrush is a GUI for brush calligraphy based on Bézier curves.
|
|
|
|
|
|
|
|
A brush stroke is defined by two components:
|
|
|
|
|
|
|
|
* the path of the brush, specified using quadratic Bézier curves,
|
|
|
|
|
|
|
|
* the shape of the brush, also specified with quadratic Bézier curves.
|
|
|
|
|
|
|
|
The shape of the brush is allowed to vary along the path.
|
|
|
|
|
2020-11-15 03:27:13 +00:00
|
|
|
flag asserts
|
|
|
|
description: Enable debugging assertions.
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
common common
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
base
|
2022-12-04 16:25:44 +00:00
|
|
|
>= 4.17 && < 4.18
|
2020-08-10 14:38:27 +00:00
|
|
|
, acts
|
|
|
|
^>= 0.3.1.0
|
2020-08-19 21:34:43 +00:00
|
|
|
, containers
|
2022-02-11 21:05:13 +00:00
|
|
|
>= 0.6.0.1 && < 0.7
|
2020-09-10 16:43:42 +00:00
|
|
|
, deepseq
|
2021-02-23 12:14:32 +00:00
|
|
|
>= 1.4.4.0 && < 1.5
|
2020-08-29 01:03:29 +00:00
|
|
|
, generic-lens
|
2022-02-11 21:05:13 +00:00
|
|
|
>= 2.2 && < 2.3
|
2020-08-13 22:47:10 +00:00
|
|
|
, groups
|
2022-12-04 14:52:29 +00:00
|
|
|
^>= 0.5.3
|
2022-02-11 21:05:13 +00:00
|
|
|
, groups-generic
|
2022-12-04 16:25:44 +00:00
|
|
|
^>= 0.3.1.0
|
2020-09-18 22:01:02 +00:00
|
|
|
, primitive
|
|
|
|
^>= 0.7.1.0
|
2020-08-23 22:40:16 +00:00
|
|
|
, transformers
|
|
|
|
^>= 0.5.6.2
|
2020-08-04 06:15:06 +00:00
|
|
|
|
2023-01-08 16:16:14 +00:00
|
|
|
default-extensions:
|
|
|
|
BangPatterns
|
|
|
|
BlockArguments
|
|
|
|
ConstraintKinds
|
|
|
|
DataKinds
|
|
|
|
DeriveAnyClass
|
|
|
|
DeriveTraversable
|
|
|
|
DeriveGeneric
|
|
|
|
DerivingVia
|
|
|
|
FlexibleContexts
|
|
|
|
FlexibleInstances
|
|
|
|
FunctionalDependencies
|
|
|
|
GADTs
|
|
|
|
GeneralisedNewtypeDeriving
|
|
|
|
InstanceSigs
|
|
|
|
LambdaCase
|
|
|
|
LexicalNegation
|
|
|
|
MagicHash
|
|
|
|
MultiWayIf
|
|
|
|
NamedFieldPuns
|
|
|
|
PatternSynonyms
|
|
|
|
RankNTypes
|
|
|
|
RecordWildCards
|
|
|
|
StandaloneDeriving
|
|
|
|
StandaloneKindSignatures
|
|
|
|
TupleSections
|
|
|
|
TypeApplications
|
|
|
|
TypeFamilies
|
|
|
|
TypeOperators
|
|
|
|
UnboxedTuples
|
|
|
|
ViewPatterns
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
ghc-options:
|
2020-09-10 16:43:42 +00:00
|
|
|
-O1
|
2020-08-04 06:15:06 +00:00
|
|
|
-fexpose-all-unfoldings
|
2020-09-18 22:01:02 +00:00
|
|
|
-funfolding-use-threshold=16
|
|
|
|
-fexcess-precision
|
2020-08-04 06:15:06 +00:00
|
|
|
-fspecialise-aggressively
|
2020-09-18 22:01:02 +00:00
|
|
|
-optc-O3
|
|
|
|
-optc-ffast-math
|
2020-08-04 06:15:06 +00:00
|
|
|
-Wall
|
|
|
|
-Wcompat
|
|
|
|
-fwarn-missing-local-signatures
|
|
|
|
-fwarn-incomplete-patterns
|
|
|
|
-fwarn-incomplete-uni-patterns
|
|
|
|
-fwarn-missing-deriving-strategies
|
2020-08-05 20:23:16 +00:00
|
|
|
-fno-warn-unticked-promoted-constructors
|
2020-08-04 06:15:06 +00:00
|
|
|
|
2023-01-09 01:54:42 +00:00
|
|
|
if flag(asserts)
|
|
|
|
cpp-options:
|
|
|
|
-DASSERTS
|
|
|
|
|
|
|
|
autogen-modules:
|
|
|
|
Paths_MetaBrush
|
|
|
|
|
|
|
|
other-modules:
|
|
|
|
Paths_MetaBrush
|
|
|
|
|
2022-02-11 21:05:13 +00:00
|
|
|
common extras
|
|
|
|
|
|
|
|
build-depends:
|
2022-02-13 16:30:54 +00:00
|
|
|
directory
|
|
|
|
>= 1.3.4.0 && < 1.4
|
|
|
|
, filepath
|
|
|
|
^>= 1.4.2.1
|
|
|
|
, hashable
|
2022-02-11 21:05:13 +00:00
|
|
|
>= 1.3.0.0 && < 1.5
|
|
|
|
, lens
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 4.19.2 && < 5.3
|
2022-02-11 21:05:13 +00:00
|
|
|
, mtl
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 2.2.2 && < 2.4
|
2022-02-11 21:05:13 +00:00
|
|
|
, scientific
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 0.3.6.2 && < 0.3.8
|
2022-02-11 21:05:13 +00:00
|
|
|
, stm
|
|
|
|
^>= 2.5.0.0
|
|
|
|
, text
|
|
|
|
>= 1.2.3.1 && < 2.1
|
|
|
|
, unordered-containers
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 0.2.11 && < 0.2.20
|
2022-02-11 21:05:13 +00:00
|
|
|
, waargonaut
|
|
|
|
^>= 0.8.0.2
|
|
|
|
|
|
|
|
common gtk
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
gi-cairo-render
|
|
|
|
^>= 0.1.0
|
|
|
|
, gi-cairo-connector
|
|
|
|
^>= 0.1.0
|
|
|
|
, gi-gdk
|
|
|
|
>= 4.0.2 && < 4.1
|
|
|
|
, gi-gio
|
|
|
|
>= 2.0.27 && < 2.1
|
|
|
|
, gi-glib
|
|
|
|
>= 2.0.23 && < 2.1
|
|
|
|
, gi-gobject
|
|
|
|
^>= 2.0.24
|
|
|
|
, gi-gtk
|
|
|
|
>= 4.0.3 && < 4.1
|
|
|
|
, haskell-gi
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 0.26 && < 0.27
|
2022-02-11 21:05:13 +00:00
|
|
|
, haskell-gi-base
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 0.26 && < 0.27
|
2022-02-11 21:05:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
library splines
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
import:
|
|
|
|
common
|
|
|
|
|
|
|
|
hs-source-dirs:
|
2022-02-11 21:05:13 +00:00
|
|
|
src/splines
|
2020-08-04 06:15:06 +00:00
|
|
|
|
2022-02-13 16:30:54 +00:00
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
exposed-modules:
|
|
|
|
Math.Bezier.Cubic
|
2020-08-23 22:40:16 +00:00
|
|
|
, Math.Bezier.Cubic.Fit
|
2020-08-04 06:15:06 +00:00
|
|
|
, Math.Bezier.Quadratic
|
2020-11-12 17:34:46 +00:00
|
|
|
, Math.Bezier.Spline
|
2020-08-19 21:34:43 +00:00
|
|
|
, Math.Bezier.Stroke
|
2020-08-19 03:28:47 +00:00
|
|
|
, Math.Epsilon
|
2023-01-08 16:16:14 +00:00
|
|
|
, Math.Linear
|
|
|
|
, Math.Linear.Dual
|
2020-08-25 22:22:07 +00:00
|
|
|
, Math.Linear.Solve
|
2020-08-04 06:15:06 +00:00
|
|
|
, Math.Module
|
2021-05-10 21:51:05 +00:00
|
|
|
, Math.Orientation
|
2020-08-23 22:40:16 +00:00
|
|
|
, Math.Roots
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
build-depends:
|
2020-11-12 17:34:46 +00:00
|
|
|
bifunctors
|
2021-02-23 12:14:32 +00:00
|
|
|
>= 5.5.4 && < 5.6
|
2022-06-17 14:21:52 +00:00
|
|
|
, eigen
|
|
|
|
^>= 3.3.7.0
|
2020-11-12 17:34:46 +00:00
|
|
|
, parallel
|
|
|
|
^>= 3.2.2.0
|
2020-09-18 22:01:02 +00:00
|
|
|
, prim-instances
|
|
|
|
^>= 0.2
|
2020-08-23 22:40:16 +00:00
|
|
|
, vector
|
2022-12-04 14:52:29 +00:00
|
|
|
>= 0.12.1.2 && < 0.14
|
2020-08-04 06:15:06 +00:00
|
|
|
|
2023-01-09 01:54:42 +00:00
|
|
|
|
2022-02-11 21:05:13 +00:00
|
|
|
library metabrushes
|
|
|
|
|
|
|
|
import:
|
|
|
|
common, extras
|
|
|
|
|
|
|
|
hs-source-dirs:
|
|
|
|
src/metabrushes
|
|
|
|
|
2022-02-13 16:30:54 +00:00
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
|
2022-02-11 21:05:13 +00:00
|
|
|
exposed-modules:
|
|
|
|
MetaBrush.Assert
|
2022-02-13 16:30:54 +00:00
|
|
|
, MetaBrush.Asset.Brushes
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Brush
|
2022-02-13 16:30:54 +00:00
|
|
|
, MetaBrush.Document
|
|
|
|
, MetaBrush.Document.Draw
|
|
|
|
, MetaBrush.Document.History
|
|
|
|
, MetaBrush.Document.Serialise
|
|
|
|
, MetaBrush.Document.SubdivideStroke
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Records
|
|
|
|
, MetaBrush.Serialisable
|
|
|
|
, MetaBrush.Unique
|
|
|
|
, MetaBrush.Util
|
|
|
|
|
|
|
|
build-depends:
|
2022-02-13 16:30:54 +00:00
|
|
|
splines
|
|
|
|
, atomic-file-ops
|
|
|
|
^>= 0.3.0.0
|
|
|
|
, bytestring
|
|
|
|
>= 0.10.10.0 && < 0.12
|
|
|
|
|
|
|
|
|
|
|
|
executable convert-metafont
|
|
|
|
|
|
|
|
import:
|
|
|
|
common, extras
|
|
|
|
|
|
|
|
hs-source-dirs:
|
|
|
|
src/convert
|
|
|
|
|
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
|
|
|
|
main-is:
|
|
|
|
|
|
|
|
Main.hs
|
|
|
|
|
|
|
|
other-modules:
|
|
|
|
MetaBrush.MetaFont.Convert
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
splines,
|
|
|
|
metabrushes,
|
|
|
|
diagrams-contrib,
|
|
|
|
diagrams-lib,
|
|
|
|
linear,
|
|
|
|
parsec
|
2022-02-11 21:05:13 +00:00
|
|
|
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
executable MetaBrush
|
|
|
|
|
2020-08-05 20:23:16 +00:00
|
|
|
import:
|
2022-02-11 21:05:13 +00:00
|
|
|
common, extras, gtk
|
2020-08-05 20:23:16 +00:00
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
hs-source-dirs:
|
2022-02-11 21:05:13 +00:00
|
|
|
src/app,
|
|
|
|
app
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
main-is:
|
|
|
|
Main.hs
|
|
|
|
|
2022-02-13 16:30:54 +00:00
|
|
|
default-language:
|
|
|
|
Haskell2010
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
other-modules:
|
2020-09-02 02:52:08 +00:00
|
|
|
MetaBrush.Action
|
2021-04-21 15:08:33 +00:00
|
|
|
, MetaBrush.Application
|
2020-09-04 20:28:31 +00:00
|
|
|
, MetaBrush.Asset.CloseTabButton
|
2020-08-29 17:41:07 +00:00
|
|
|
, MetaBrush.Asset.Colours
|
2020-08-07 19:39:24 +00:00
|
|
|
, MetaBrush.Asset.Cursor
|
2020-08-08 03:33:35 +00:00
|
|
|
, MetaBrush.Asset.InfoBar
|
2020-08-04 06:15:06 +00:00
|
|
|
, MetaBrush.Asset.Logo
|
|
|
|
, MetaBrush.Asset.TickBox
|
2020-08-07 22:41:08 +00:00
|
|
|
, MetaBrush.Asset.Tools
|
2020-08-04 06:15:06 +00:00
|
|
|
, MetaBrush.Asset.WindowIcons
|
2020-09-02 02:52:08 +00:00
|
|
|
, MetaBrush.Context
|
2020-08-13 22:47:10 +00:00
|
|
|
, MetaBrush.Document.Selection
|
2020-09-10 16:43:42 +00:00
|
|
|
, MetaBrush.Document.Update
|
2020-08-05 20:23:16 +00:00
|
|
|
, MetaBrush.Event
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.GTK.Util
|
2020-08-10 14:38:27 +00:00
|
|
|
, MetaBrush.Render.Document
|
2020-09-07 13:37:55 +00:00
|
|
|
, MetaBrush.Render.Rulers
|
2020-08-10 22:07:09 +00:00
|
|
|
, MetaBrush.UI.Coordinates
|
|
|
|
, MetaBrush.UI.FileBar
|
|
|
|
, MetaBrush.UI.InfoBar
|
2020-08-05 20:23:16 +00:00
|
|
|
, MetaBrush.UI.Menu
|
2020-08-10 22:07:09 +00:00
|
|
|
, MetaBrush.UI.Panels
|
|
|
|
, MetaBrush.UI.ToolBar
|
|
|
|
, MetaBrush.UI.Viewport
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Time
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-threaded -rtsopts
|
|
|
|
|
|
|
|
build-depends:
|
2022-02-11 21:05:13 +00:00
|
|
|
splines
|
|
|
|
, metabrushes
|
2020-08-15 21:49:14 +00:00
|
|
|
, tardis
|
2021-02-23 12:14:32 +00:00
|
|
|
>= 0.4.2.0 && < 0.5
|