Permalink
Browse files

Adding support for the "lib" and "bin" feature

  • Loading branch information...
der_eq@freenet.de
der_eq@freenet.de committed Dec 15, 2005
1 parent 2a31aff commit 710dfef35b276b3e3c3fdfc70f382a67a8f2491b
Showing with 4 additions and 1 deletion.
  1. +4 −1 HackPort/Cabal2Ebuild.hs
View
@@ -98,7 +98,10 @@ cabal2ebuild pkg = ebuildTemplate {
licenseComments = licenseComment (Cabal.license pkg),
depend = defaultDepGHC
: convertDependencies (Cabal.buildDepends pkg),
- my_pn = if any isUpper cabalPkgName then Just cabalPkgName else Nothing
+ my_pn = if any isUpper cabalPkgName then Just cabalPkgName else Nothing,
+ features = (features ebuildTemplate)
+ ++ maybe [] (const ["lib"]) (Cabal.library pkg)
+ ++ if null (Cabal.executables pkg) then [] else ["bin"]
} where
cabalPkgName = Cabal.pkgName (Cabal.package pkg)

0 comments on commit 710dfef

Please sign in to comment.