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:
|
2024-02-17 12:58:40 +00:00
|
|
|
brush-strokes
|
|
|
|
^>= 0.1.0.0
|
|
|
|
, base
|
|
|
|
>= 4.17 && < 5
|
2020-08-10 14:38:27 +00:00
|
|
|
, acts
|
|
|
|
^>= 0.3.1.0
|
2023-01-09 19:54:19 +00:00
|
|
|
, code-page
|
|
|
|
^>= 0.2.1
|
2020-08-19 21:34:43 +00:00
|
|
|
, containers
|
2024-02-17 12:58:40 +00:00
|
|
|
>= 0.6.0.1 && < 0.8
|
2020-09-10 16:43:42 +00:00
|
|
|
, deepseq
|
2024-02-17 12:58:40 +00:00
|
|
|
>= 1.4.4.0 && < 1.6
|
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
|
2020-09-18 22:01:02 +00:00
|
|
|
, primitive
|
2024-02-17 12:58:40 +00:00
|
|
|
^>= 0.9.0.0
|
2020-08-23 22:40:16 +00:00
|
|
|
, transformers
|
2023-03-12 18:15:58 +00:00
|
|
|
>= 0.5.6.2 && < 0.7
|
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
|
2023-01-20 15:34:04 +00:00
|
|
|
NoStarIsType
|
2023-01-08 16:16:14 +00:00
|
|
|
PatternSynonyms
|
|
|
|
RankNTypes
|
|
|
|
RecordWildCards
|
2023-01-13 14:23:33 +00:00
|
|
|
RoleAnnotations
|
2023-01-08 16:16:14 +00:00
|
|
|
StandaloneDeriving
|
|
|
|
StandaloneKindSignatures
|
|
|
|
TupleSections
|
|
|
|
TypeApplications
|
2024-04-22 18:06:03 +00:00
|
|
|
TypeFamilyDependencies
|
2023-01-08 16:16:14 +00:00
|
|
|
TypeOperators
|
|
|
|
UnboxedTuples
|
|
|
|
ViewPatterns
|
|
|
|
|
2024-02-17 12:58:40 +00:00
|
|
|
if impl(ghc >= 9.8)
|
|
|
|
default-extensions:
|
|
|
|
TypeAbstractions
|
|
|
|
|
2020-08-04 06:15:06 +00:00
|
|
|
ghc-options:
|
|
|
|
-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:
|
2024-10-23 12:49:42 +00:00
|
|
|
aeson
|
|
|
|
>= 2.2 && < 2.3
|
|
|
|
, aeson-pretty
|
|
|
|
>= 0.8 && < 0.9
|
|
|
|
, directory
|
2022-02-13 16:30:54 +00:00
|
|
|
>= 1.3.4.0 && < 1.4
|
|
|
|
, filepath
|
2024-02-17 12:58:40 +00:00
|
|
|
>= 1.4.2.1 && < 1.6
|
2022-02-13 16:30:54 +00:00
|
|
|
, hashable
|
2022-02-11 21:05:13 +00:00
|
|
|
>= 1.3.0.0 && < 1.5
|
2024-10-23 12:49:42 +00:00
|
|
|
, hermes-json
|
|
|
|
>= 0.6.1.0 && < 0.7
|
2022-02-11 21:05:13 +00:00
|
|
|
, lens
|
2024-05-28 08:24:47 +00:00
|
|
|
>= 4.19.2 && < 6.0
|
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
|
2024-10-19 13:51:45 +00:00
|
|
|
, tardis
|
|
|
|
^>= 0.5.0
|
2022-02-11 21:05:13 +00:00
|
|
|
, text
|
2024-08-28 23:46:50 +00:00
|
|
|
>= 2.0 && < 3
|
2022-02-11 21:05:13 +00:00
|
|
|
, unordered-containers
|
2024-02-17 12:58:40 +00:00
|
|
|
>= 0.2.11 && < 0.3
|
2022-02-11 21:05:13 +00:00
|
|
|
|
|
|
|
common gtk
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
gi-cairo-render
|
2024-10-23 12:49:42 +00:00
|
|
|
>= 0.1.0 && < 0.2
|
2022-02-11 21:05:13 +00:00
|
|
|
, gi-cairo-connector
|
2024-10-23 12:49:42 +00:00
|
|
|
>= 0.1.0 && < 0.2
|
2022-02-11 21:05:13 +00:00
|
|
|
, gi-gdk
|
2024-09-27 21:36:33 +00:00
|
|
|
>= 4.0.9 && < 4.1
|
2022-02-11 21:05:13 +00:00
|
|
|
, gi-gio
|
2024-08-28 23:46:50 +00:00
|
|
|
>= 2.0.34 && < 2.1
|
2022-02-11 21:05:13 +00:00
|
|
|
, gi-glib
|
|
|
|
>= 2.0.23 && < 2.1
|
|
|
|
, gi-gobject
|
2024-10-23 12:49:42 +00:00
|
|
|
>= 2.0.24 && < 2.1
|
2022-02-11 21:05:13 +00:00
|
|
|
, gi-gtk
|
|
|
|
>= 4.0.3 && < 4.1
|
|
|
|
, haskell-gi
|
2024-10-23 12:49:42 +00:00
|
|
|
== 0.26.11
|
2022-02-11 21:05:13 +00:00
|
|
|
, haskell-gi-base
|
2024-09-27 21:36:33 +00:00
|
|
|
>= 0.26.8 && < 0.27
|
2022-02-11 21:05:13 +00:00
|
|
|
|
2024-10-23 12:49:22 +00:00
|
|
|
pkgconfig-depends:
|
|
|
|
gtk4 >= 4.10
|
2024-05-28 08:24:47 +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:
|
2024-09-27 15:21:24 +00:00
|
|
|
MetaBrush.Action
|
|
|
|
, MetaBrush.Assert
|
2022-02-13 16:30:54 +00:00
|
|
|
, MetaBrush.Asset.Brushes
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Brush
|
2024-05-21 17:40:22 +00:00
|
|
|
, MetaBrush.Brush.Widget
|
2022-02-13 16:30:54 +00:00
|
|
|
, MetaBrush.Document
|
2024-09-27 15:21:24 +00:00
|
|
|
, MetaBrush.Document.Diff
|
2022-02-13 16:30:54 +00:00
|
|
|
, MetaBrush.Document.History
|
|
|
|
, MetaBrush.Document.Serialise
|
2024-09-27 15:21:24 +00:00
|
|
|
, MetaBrush.Draw
|
|
|
|
, MetaBrush.Guide
|
|
|
|
, MetaBrush.Hover
|
|
|
|
, MetaBrush.Layer
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Records
|
|
|
|
, MetaBrush.Serialisable
|
2024-09-27 15:21:24 +00:00
|
|
|
, MetaBrush.Stroke
|
2022-02-11 21:05:13 +00:00
|
|
|
, MetaBrush.Unique
|
|
|
|
, MetaBrush.Util
|
|
|
|
|
|
|
|
build-depends:
|
2024-02-17 12:58:40 +00:00
|
|
|
atomic-file-ops
|
2022-02-13 16:30:54 +00:00
|
|
|
^>= 0.3.0.0
|
|
|
|
, bytestring
|
2024-05-28 08:24:47 +00:00
|
|
|
>= 0.10.10.0 && < 0.13
|
2022-02-13 16:30:54 +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:
|
2024-09-27 15:21:24 +00:00
|
|
|
MetaBrush.Application
|
|
|
|
, MetaBrush.Application.Action
|
|
|
|
, MetaBrush.Application.Context
|
|
|
|
, MetaBrush.Application.UpdateDocument
|
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
|
2024-10-20 15:49:10 +00:00
|
|
|
, MetaBrush.Asset.StrokeIcons
|
2020-08-07 22:41:08 +00:00
|
|
|
, MetaBrush.Asset.Tools
|
2020-08-04 06:15:06 +00:00
|
|
|
, MetaBrush.Asset.WindowIcons
|
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
|
2024-09-27 15:21:24 +00:00
|
|
|
, MetaBrush.Time
|
2024-10-09 14:57:08 +00:00
|
|
|
, MetaBrush.UI.BrushList
|
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
|
2024-09-27 21:36:33 +00:00
|
|
|
, MetaBrush.UI.StrokeTreeView
|
2020-08-10 22:07:09 +00:00
|
|
|
, MetaBrush.UI.ToolBar
|
|
|
|
, MetaBrush.UI.Viewport
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
ghc-options:
|
2024-04-29 17:35:53 +00:00
|
|
|
-threaded
|
|
|
|
-rtsopts
|
2020-08-04 06:15:06 +00:00
|
|
|
|
|
|
|
build-depends:
|
2024-10-23 12:49:42 +00:00
|
|
|
metabrushes
|