diff --git a/Graphics/Rendering/Pango/Layout.chs b/Graphics/Rendering/Pango/Layout.chs
--- a/Graphics/Rendering/Pango/Layout.chs
+++ b/Graphics/Rendering/Pango/Layout.chs
@@ -356,11 +356,20 @@
 --   a word if it is the only one on this line and it exceeds the
 --   specified width.
 --
+#if PANGO_VERSION_CHECK(1,56,0)
 {#enum PangoWrapMode as LayoutWrapMode
   {underscoreToCase,
   PANGO_WRAP_WORD as WrapWholeWords,
   PANGO_WRAP_CHAR as WrapAnywhere,
+  PANGO_WRAP_WORD_CHAR as WrapPartialWords,
+  PANGO_WRAP_NONE as WrapNowhere}#}
+#else
+{#enum PangoWrapMode as LayoutWrapMode
+  {underscoreToCase,
+  PANGO_WRAP_WORD as WrapWholeWords,
+  PANGO_WRAP_CHAR as WrapAnywhere,
   PANGO_WRAP_WORD_CHAR as WrapPartialWords}#}
+#endif
 
 -- | Set how this paragraph is wrapped.
 --
diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -13,6 +13,9 @@
 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 @@
     , "#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 =
diff --git a/pango.cabal b/pango.cabal
--- a/pango.cabal
+++ b/pango.cabal
@@ -1,6 +1,6 @@
 cabal-version:  2.2
 Name:           pango
-Version:        0.13.11.0
+Version:        0.13.12.0
 License:        LGPL-2.1-only
 License-file:   COPYING
 Copyright:      (c) 2001-2010 The Gtk2Hs Team
@@ -16,7 +16,7 @@
                 either with Cairo to output text in PDF, PS or other
                 documents or with Gtk+ to display text on-screen.
 Category:       Graphics
-Tested-With:    GHC == 9.10.1, GHC == 9.8.2, GHC == 9.6.6, GHC == 9.4.8, GHC == 9.2.8, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2
+Tested-With:    GHC == 9.12.2, GHC == 9.10.1, GHC == 9.8.4, GHC == 9.6.6, GHC == 9.4.8, GHC == 9.2.8, GHC==9.0.2, GHC==8.10.7
 extra-source-files: template-hsc-gtk2hs.h
                     hspango.h
                     hierarchy.list
@@ -40,12 +40,12 @@
 
 custom-setup
   setup-depends: base >= 4.8 && <5,
-                 Cabal >= 2.2 && < 3.13,
+                 Cabal >= 3.0 && < 3.15,
                  filepath >= 1.3 && < 1.6,
                  gtk2hs-buildtools >= 0.13.2.0 && < 0.14
 
 Library
-        build-depends:  base >= 4 && < 5,
+        build-depends:  base >= 4.8 && < 5,
                         array < 0.6,
                         containers < 0.8,
                         directory < 1.4,
