Status.hs: don't leak halfopen files

Leaked descriptors are seen as:
    $ ulimit -n 100
    $ hackport status --to-portage
    hackport: dev-haskell/cabal/cabal-1.16.0.3.ebuild: openFile: resource exhausted (Too many open files)

Patch uses strict bytestring for open-read-and-close.

Found by gienah.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Portage/Dependency/Normalize.hs: fix wrong comment

We can only drop looser depends, not stricter

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Portage/Dependency/Normalize.hs: add one more TODO

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Portage/Dependency/Normalize.hs: enhance 'porpagate_context' to handle range intersections

The case of
    >=foo/bar-1.0
    use? ( foo/bar )
will be normalized to
    >=foo/bar-1.0

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Cabal2Ebuild.hs: fix cabal to portage version conversion '<=' bug

Due to a typo dependency of kind:
    a <= ver

got translated to
    >=a-ver

Ugh!

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Merge/Dependencies.hs: new extralibs: 'Xi', 'Xxf86vm', 'pthread'

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
hackport.cabal: tag 0.3.4 release

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Portage/Cabal.hs: move cabal->portage license converter to 'Portage.Cabal'

Added 'Apache' license distinction from Cabal.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>