Copyright | 2014-2015 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides data types of debian packages meta information.
- data DebianVersion
- versionFromHackageVersion :: HackageVersion -> Maybe String -> DebianVersion
- readDebianVersion :: String -> Maybe DebianVersion
- origVersion' :: DebianVersion -> Version
- isNative' :: DebianVersion -> Bool
- data Source
- mkSource :: String -> DebianVersion -> Source
- sourceName :: Source -> String
- version :: Source -> DebianVersion
- origVersion :: Source -> Version
- isNative :: Source -> Bool
- origArchiveName :: Source -> FilePath
- nativeArchiveName :: Source -> String
- sourceDirName :: Source -> FilePath
- deriveHackageVersion :: Source -> HackageVersion
- parseChangeLog :: String -> Maybe Source
- data PackageType
- takeChangesType :: FilePath -> Maybe PackageType
- isSourcePackage :: PackageType -> Bool
- isBinaryPackage :: PackageType -> Bool
- data Control = Control {
- controlSource :: String
- controlArch :: [String]
- controlAll :: [String]
- parseControlEntry :: [String] -> Maybe (PackageType, String)
- parseControl :: String -> Maybe Control
- data HaskellPackage
- hackage :: HaskellPackage -> Hackage
- package :: HaskellPackage -> Source
- haskellPackageDefault :: NameRule -> String -> HackageVersion -> Maybe String -> HaskellPackage
- haskellPackageFromPackage :: String -> Source -> HaskellPackage
Documentation
data DebianVersion Source #
Version type for Debian
versionFromHackageVersion :: HackageVersion -> Maybe String -> DebianVersion Source #
Make deebian version from hackage version
readDebianVersion :: String -> Maybe DebianVersion Source #
Try to read debian package version
origVersion' :: DebianVersion -> Version Source #
Version without debian revision
isNative' :: DebianVersion -> Bool Source #
Is debian-native or not
origVersion :: Source -> Version Source #
Version without debian revision
origArchiveName :: Source -> FilePath Source #
Original source archive basename
nativeArchiveName :: Source -> String Source #
Debian native archive basename
sourceDirName :: Source -> FilePath Source #
Source directory basename
deriveHackageVersion :: Source -> HackageVersion Source #
Try to make HackageVersion
from Source
Try to generate Source
from debian changelog string
data PackageType Source #
Debian package types
takeChangesType :: FilePath -> Maybe PackageType Source #
Take PackageType
from debian .changes file path
isSourcePackage :: PackageType -> Bool Source #
Test package type is source package.
isBinaryPackage :: PackageType -> Bool Source #
Test package type is binary package.
Type for debian control meta-data.
Control | |
|
parseControlEntry :: [String] -> Maybe (PackageType, String) Source #
Parse an package entry in control file.
hackage :: HaskellPackage -> Hackage Source #
Hackage
meta-info of HaskellPackage
package :: HaskellPackage -> Source Source #
Debian source package meta-info of HaskellPackage
haskellPackageDefault Source #
:: NameRule | |
-> String | Hackage name string |
-> HackageVersion | Version of hackage |
-> Maybe String | Debian revision String |
-> HaskellPackage | Result structure |
Generate HaskellPackage
type from debian package name and version
using NameRule
haskellPackageFromPackage Source #
:: String | Hackage name string |
-> Source | Debian package meta info |
-> HaskellPackage | Result |
Generate HaskellPackage
with hackage name and debian package meta-info