Name:                posix-pty
Version:             0.2.1.1

Homepage:            https://bitbucket.org/merijnv/posix-pty
Bug-Reports:         https://github.com/merijn/posix-pty/issues

Author:              Merijn Verstraaten
Maintainer:          Merijn Verstraaten <merijn@inconsistent.nl>
Copyright:           Copyright © 2013-2015 Merijn Verstraaten,
                     Copyright © 2014 Vladimir Kirillov

License:             BSD3
License-File:        LICENSE

Category:            System
Cabal-Version:       >= 1.10
Build-Type:          Simple
Tested-With:         GHC == 7.6.3

Synopsis:            Pseudo terminal interaction with subprocesses.

Description:
    This package simplifies the creation of subprocesses that interact with
    their parent via a pseudo terminal (see @man pty@).

Extra-Source-Files:     cbits/*.h

Library
  Default-Language:     Haskell2010
  GHC-Options:          -Wall
  GHC-Prof-Options:     -auto-all -caf-all
  Exposed-Modules:      System.Posix.Pty
  Other-Modules:        

  C-Sources:            cbits/fork_exec_with_pty.c cbits/pty_size.c
  CC-Options:           -Wall -Wextra -pedantic -std=c99
  Include-Dirs:         cbits
  Includes:             fork_exec_with_pty.h pty_size.h

  Build-Depends:        base >= 4 && < 5
               ,        bytestring >= 0.10
               ,        process >= 1.2
               ,        unix >= 2.6

  if os(linux) || os(freebsd)
    Extra-Libraries: util

Test-Suite stty
  Type: exitcode-stdio-1.0
  Default-Language:     Haskell2010
  Main-Is:              stty.hs
  Ghc-Options:          -w -threaded -rtsopts -with-rtsopts=-N
  Hs-Source-Dirs:       tests
  Build-Depends:        base
               ,        bytestring
               ,        posix-pty
               ,        process

Source-Repository head
  Type:     git
  Location: ssh://github.com:merijn/posix-pty.git

Source-Repository head
  Type:     mercurial
  Location: git+ssh://github.com:merijn/posix-pty.git

Source-Repository head
  Type:     mercurial
  Location: https://bitbucket.org/merijnv/posix-pty
