debian-build-0.10.1.1: Debian package build sequence tools

Copyright2014-2015 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Debian.Package.Data.Packages

Description

This module provides data types of debian packages meta information.

Synopsis

Documentation

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

data Source Source #

Debian source package type, name with version

Instances

sourceName :: Source -> String Source #

Source package name of Source

version :: Source -> DebianVersion Source #

Debian version of Source

origVersion :: Source -> Version Source #

Version without debian revision

isNative :: Source -> Bool Source #

Is debian-native or not

origArchiveName :: Source -> FilePath Source #

Original source archive basename

nativeArchiveName :: Source -> String Source #

Debian native archive basename

sourceDirName :: Source -> FilePath Source #

Source directory basename

parseChangeLog Source #

Arguments

:: String

dpkg-parsechangelog result string

-> Maybe Source

Source structure

Try to generate Source from debian changelog string

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.

data Control Source #

Type for debian control meta-data.

Constructors

Control 

parseControlEntry :: [String] -> Maybe (PackageType, String) Source #

Parse an package entry in control file.

parseControl :: String -> Maybe Control Source #

Parse debian control file into package list.

data HaskellPackage Source #

Debian source package type for Haskell

package :: HaskellPackage -> Source Source #

Debian source package meta-info of HaskellPackage

haskellPackageDefault Source #

Arguments

:: 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 #

Arguments

:: String

Hackage name string

-> Source

Debian package meta info

-> HaskellPackage

Result

Generate HaskellPackage with hackage name and debian package meta-info