Skip to content

Commit

Permalink
dev-haskell/shakespeare-text: update to EAPI=7
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Oct 31, 2020
1 parent 6d483e7 commit 7803329
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
14 changes: 0 additions & 14 deletions dev-haskell/shakespeare-text/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,4 @@
<email>[email protected]</email>
<name>Gentoo Haskell</name>
</maintainer>
<longdescription>
interpolation with quasi-quotation: stick haskell variables into haskell strings

Note there is no dependency on haskell-src-extras. If you don't mind that dependency, you may want to look at using these packages: Interpolation, interpolatedstring-perl6, interpolatedstring-qq.

This package has 1 other general feature that those others may not (but would be easy to duplicate): instead of using quasi-quoting you can also use an external file. It also has url/embeding interpolation, with \@ and \^, which are used in Yesod.

This package also uses blaze-builder for efficiently constructing strings (I am not sure what the other packages use). This might be of interest to you for large templates or performance sensitive code, or otherwise having a nice interface to blaze-builder

Shakespeare is a template family for type-safe, efficient templates with simple variable interpolation . Shakespeare templates can be used inline with a quasi-quoter or in an external file. Shakespeare interpolates variables according to the type being inserted.
In this case, the variable type needs a ToText instance.

Please see http://docs.yesodweb.com/book/templates for a more thorough description and examples of the shakespeare family of template languages.
</longdescription>
</pkgmetadata>
10 changes: 5 additions & 5 deletions dev-haskell/shakespeare-text/shakespeare-text-1.1.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
EAPI=7

# ebuild generated by hackport 0.3.6.9999
# ebuild generated by hackport 0.6.6.9999

CABAL_FEATURES="lib profile"
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal

DESCRIPTION="Interpolation with quasi-quotation: put variables strings (deprecated)"
Expand All @@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=dev-haskell/shakespeare-2.0:=[profile?]
>=dev-lang/ghc-6.10.4:=
>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
Expand Down

0 comments on commit 7803329

Please sign in to comment.