blob: 491954f2a85ecd5e33b8e1c09afa29c3ea878b07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsshellscript/hsshellscript-2.3.0.ebuild,v 1.5 2007/12/13 18:04:30 dcoutts Exp $
inherit base eutils ghc-package
DESCRIPTION="A Haskell library for UNIX shell scripting tasks"
HOMEPAGE="http://www.volker-wysk.de/hsshellscript/"
SRC_URI="http://www.volker-wysk.de/hsshellscript/dist/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=dev-lang/ghc-6.2
!>=dev-lang/ghc-6.4"
RDEPEND=""
src_unpack() {
base_src_unpack
cd "${S}"
sed -i -e "/ghc-pkg/d" Makefile
}
src_compile() {
emake || die "emake failed"
}
src_install() {
ghc-setup-pkg "${S}/lib/hsshellscript.pkg"
# Fix hsshellscript.pkg library path
ghc-fixlibpath "\${DEST_LIB}" "\${DEST_IMPORTS}"
make install \
DESTDIR="${D}" \
DEST_LIB="$(ghc-libdir)" \
DEST_IMPORTS="$(ghc-libdir)/imports" \
DEST_DOC="/usr/share/doc/${PF}" \
|| die "make failed"
ghc-install-pkg
ghc-makeghcilib "${D}/$(ghc-libdir)/libhsshellscript.a"
}
|