dev-haskell/pango: add 0.13.11.0

Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Mark Wright <gienah@gentoo.org>
This commit is contained in:
hololeap
2026-01-23 22:16:47 -07:00
committed by Mark Wright
parent 92da248033
commit 47fc41e597
3 changed files with 78 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pango-0.13.10.0.tar.gz 52695 BLAKE2B 5551b0352b8c444de6ad6cfb216e571ef71b38e76d4d174ac9dd090bc3cec7c3c395065cf2a90e889ce945939ef5cd64715d443283cb350c78b99bc7ab02879b SHA512 050729ddf2a35bd21836a3a67eaa7218faf3534ff1affe74be840b6a7cfff256cc207b7805d5e3a48f6f6c365e3b0793818f98e94fc4a9dd03c31e1a60e7d078
DIST pango-0.13.11.0.tar.gz 51003 BLAKE2B 669af3e3119ed19f07dfb175802fe6657811e5585162fe473d99e0a76ce0ceda67550bb2aea0beb11fee0220a5d9fc5f07b5b9034a86137effe72876071cb60d SHA512 d9cacf72221ca55ecc15e0712a90b14cf8c91569ea0e72bdb3c6e2c1d7a054619cee9eac546fbb95cc953c0605d082a7cbae18357f5d870598439a1928abd69c

View File

@@ -0,0 +1,40 @@
From https://github.com/gtk2hs/gtk2hs/pull/341
From: GuillaumedeVolpiano <xavier@wheredoibegin.fr>
Date: Mon, 17 Feb 2025 11:40:19 +0100
Subject: [PATCH] Compatibility with Cabal 3.14
--- a/Setup.hs
+++ b/Setup.hs
@@ -13,6 +13,9 @@ import Distribution.Text ( display )
import Distribution.Version ( Version(..) )
import Distribution.Verbosity
import Distribution.Simple.Utils hiding (die)
+#if MIN_VERSION_Cabal(3,14,0)
+import Distribution.Utils.Path ( getSymbolicPath )
+#endif
import System.FilePath
import System.Exit (die)
@@ -49,7 +52,11 @@ writePangoVersionHeaderFile verbosity lbi (Version (major:minor:micro:_) []) = d
, "#define PANGO_VERSION_MICRO " ++ show micro
]
where
+#if MIN_VERSION_Cabal(3,14,0)
+ targetDir = getSymbolicPath . autogenPackageModulesDir $ lbi
+#else
targetDir = autogenPackageModulesDir lbi
+#endif
targetFile = targetDir </> "hspangoversion.h"
writeVersionHeaderFile _ _ version =
--- a/pango.cabal
+++ b/pango.cabal
@@ -40,7 +40,7 @@ Flag new-exception
custom-setup
setup-depends: base >= 4.8 && <5,
- Cabal >= 2.2 && < 3.13,
+ Cabal >= 2.2 && < 3.15,
filepath >= 1.3 && < 1.6,
gtk2hs-buildtools >= 0.13.2.0 && < 0.14

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# ebuild generated by hackport 0.9.0.0.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Binding to the Pango text rendering engine"
HOMEPAGE="https://projects.haskell.org/gtk2hs/"
LICENSE="LGPL-2.1"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
PATCHES=(
"${FILESDIR}"/${P}-Cabal-3.14.patch
)
RDEPEND=">=dev-haskell/cairo-0.13.0.0:=[profile?] <dev-haskell/cairo-0.14:=[profile?]
>=dev-haskell/glib-0.13.0.0:=[profile?] <dev-haskell/glib-0.14:=[profile?]
>=dev-haskell/text-0.11.0.6:=[profile?] <dev-haskell/text-2.2:=[profile?]
>=dev-lang/ghc-9.0.2:=
x11-libs/cairo
x11-libs/pango
x11-libs/pango[introspection]
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-3.4.1.0 <dev-haskell/cabal-3.15
"
BDEPEND=">=dev-haskell/gtk2hs-buildtools-0.13.2.0 <dev-haskell/gtk2hs-buildtools-0.14
virtual/pkgconfig
"
GHC_BOOTSTRAP_PACKAGES=( gtk2hs-buildtools )