summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennartKolmodin <>2010-07-27 21:33:00 (GMT)
committerLuite Stegeman <luite@luite.com>2010-07-27 21:33:00 (GMT)
commit57c31c38963d7f979d080509cf8f505eebb238db (patch)
tree9b80996ce27693e35d502f2419b1df8fb4f95079
parent4c0e40feb90d7ba5e57e0d64a07098eabae1185f (diff)
version 0.2.90.2.9
-rw-r--r--Portage/EBuild.hs3
-rw-r--r--hackport.cabal2
2 files changed, 3 insertions, 2 deletions
diff --git a/Portage/EBuild.hs b/Portage/EBuild.hs
index f908e7f..0f15864 100644
--- a/Portage/EBuild.hs
+++ b/Portage/EBuild.hs
@@ -75,7 +75,7 @@ showEBuild ebuild =
Just pn -> ss "MY_PN=". quote pn. nl.
ss "MY_P=". quote "${MY_PN}-${PV}". nl. nl).
ss "DESCRIPTION=". quote (description ebuild). nl.
- ss "HOMEPAGE=". quote (homepage ebuild). nl.
+ ss "HOMEPAGE=". quote (expandVars (homepage ebuild)). nl.
ss "SRC_URI=". quote (replaceVars (src_uri ebuild)). nl.
nl.
ss "LICENSE=". quote (convertLicense . license $ ebuild).
@@ -92,6 +92,7 @@ showEBuild ebuild =
Just _ -> nl. ss "S=". quote ("${WORKDIR}/${MY_P}"). nl)
$ []
where replaceVars = replaceCommonVars (name ebuild) (my_pn ebuild) (version ebuild)
+ expandVars = replaceMultiVars [(name ebuild, "${PN}")]
ss :: String -> String -> String
ss = showString
diff --git a/hackport.cabal b/hackport.cabal
index 973c55a..6f8ee59 100644
--- a/hackport.cabal
+++ b/hackport.cabal
@@ -1,5 +1,5 @@
Name: hackport
-Version: 0.2.8
+Version: 0.2.9
License: GPL
License-file: LICENSE
Author: Henning G√ľnther, Duncan Coutts, Lennart Kolmodin