Skip to content

Commit

Permalink
Bump Copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
kolmodin committed Feb 19, 2009
1 parent 7210608 commit decf164
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cabal2Ebuild.hs
Expand Up @@ -139,10 +139,14 @@ convertDependency (Cabal.Dependency pname@(Cabal.PackageName name) _)
| pname `elem` coreLibs = [] -- no explicit dep on core libs
convertDependency (Cabal.Dependency pname versionRange)
= case versionRange of
-- versionRange && versionRange
(Cabal.IntersectVersionRanges v1 v2) -> [convert v1, convert v2]
-- any other dep
v -> [convert v]

where
-- XXX: not always true, we should look properly for deps in the overlay
-- to find the correct category
ebuildName = "dev-haskell/" ++ map toLower (Cabal.display pname)

convert :: Cabal.VersionRange -> Dependency
Expand Down Expand Up @@ -189,7 +193,7 @@ coreLibs = map Cabal.PackageName

showEBuild :: EBuild -> String
showEBuild ebuild =
ss "# Copyright 1999-2008 Gentoo Foundation". nl.
ss "# Copyright 1999-2009 Gentoo Foundation". nl.
ss "# Distributed under the terms of the GNU General Public License v2". nl.
ss "# $Header: $". nl.
nl.
Expand Down

0 comments on commit decf164

Please sign in to comment.