cabal-debian 5.2.1 → 5.2.2
raw patch · 4 files changed
+19/−5 lines, 4 filesdep ~ansi-wl-pprintdep ~optparse-applicativePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ansi-wl-pprint, optparse-applicative
API changes (from Hackage documentation)
Files
- cabal-debian.cabal +4/−4
- debian/control +3/−1
- src/Debian/Debianize/InputCabal.hs +4/−0
- src/Debian/Orphans.hs +8/−0
cabal-debian.cabal view
@@ -1,7 +1,7 @@ cabal-version: 3.0 Name: cabal-debian-Version: 5.2.1-Copyright: Copyright (c) 2007-2014, David Fox, Jeremy Shaw; 2017-2022 Clint Adams+Version: 5.2.2+Copyright: Copyright (c) 2007-2014, David Fox, Jeremy Shaw; 2017-2023 Clint Adams License: BSD-3-Clause License-File: LICENSE Author: David Fox <dsf@seereason.com>@@ -144,7 +144,7 @@ test-data/artvaluereport2/output/debian/artvaluereport2-backups.install test-data/artvaluereport2/output/debian/copyright test-data/artvaluereport2/output/debian/source/format-Tested-With: GHC ==9.2.3 || ==9.0.2 || ==8.10.7 || ==8.8.4+Tested-With: GHC ==9.6.2 || ==9.4.7 || ==9.2.8 || ==9.0.2 || ==8.10.7 Source-Repository head type: git@@ -181,7 +181,7 @@ unix, unliftio >= 0.2.8.0, utf8-string,- optparse-applicative >= 0.11,+ optparse-applicative >= 0.11 && < 0.18, ansi-wl-pprint == 0.6.*, debian >= 3.95 Exposed-Modules:
debian/control view
@@ -73,7 +73,9 @@ libghc-syb-doc, libghc-utf8-string-doc, Standards-Version: 3.9.6-Homepage: https://github.com/ddssff/cabal-debian+Homepage: https://tracker.debian.org/pkg/cabal-debian+Vcs-Browser: https://github.com/clinty/cabal-debian+Vcs-Git: https://github.com/clinty/cabal-debian.git X-Description: Create a Debianization for a Cabal package This package supports the generation of a package Debianization (i.e. the files in the @debian@ subdirectory) for a cabal package,
src/Debian/Debianize/InputCabal.hs view
@@ -20,7 +20,11 @@ import Distribution.Package (Package(packageId)) import Distribution.PackageDescription as Cabal (PackageDescription) import Distribution.PackageDescription.Configuration (finalizePD)+#if MIN_VERSION_Cabal(3,8,1)+import Distribution.Simple.PackageDescription (readGenericPackageDescription)+#else import Distribution.PackageDescription.Parsec (readGenericPackageDescription)+#endif import Distribution.Types.ComponentRequestedSpec (ComponentRequestedSpec(ComponentRequestedSpec)) import Distribution.Simple.Utils (defaultPackageDesc, die', setupMessage) import Distribution.System as Cabal (buildArch, Platform(..))
src/Debian/Orphans.hs view
@@ -34,16 +34,24 @@ deriving instance Data Compiler deriving instance Data CompilerId +#if !MIN_VERSION_Cabal(3,10,1) deriving instance Ord Language+#endif deriving instance Ord Compiler deriving instance Ord NameAddr+#if !MIN_VERSION_Cabal(3,10,1) deriving instance Ord License+#endif +#if !MIN_VERSION_Cabal(3,10,1) instance Ord Executable where compare = compare `on` exeName+#endif +#if !MIN_VERSION_Cabal(3,8,1) instance Ord PackageDescription where compare = compare `on` package+#endif dropPrefix :: String -> String -> Maybe String dropPrefix p s = if isPrefixOf p s then Just (drop (length p) s) else Nothing