diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2005-04-05 13:45:53 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2005-04-05 13:45:53 +0000 |
commit | 283e2ddc86b58f8e6c36a0ff4aec902ac094a38d (patch) | |
tree | 1571fedfaec44b0a3a444a3bb22314af7d95e025 /dev-haskell/haxml/haxml-1.12.ebuild | |
parent | Update to new kde herd setup. (diff) | |
download | historical-283e2ddc86b58f8e6c36a0ff4aec902ac094a38d.tar.gz historical-283e2ddc86b58f8e6c36a0ff4aec902ac094a38d.tar.bz2 historical-283e2ddc86b58f8e6c36a0ff4aec902ac094a38d.zip |
Initial import (bug #83189).
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-haskell/haxml/haxml-1.12.ebuild')
-rw-r--r-- | dev-haskell/haxml/haxml-1.12.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-haskell/haxml/haxml-1.12.ebuild b/dev-haskell/haxml/haxml-1.12.ebuild new file mode 100644 index 000000000000..6445ba9c8073 --- /dev/null +++ b/dev-haskell/haxml/haxml-1.12.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.12.ebuild,v 1.1 2005/04/05 13:45:53 kosmikus Exp $ + +inherit ghc-package fixheadtails + +MY_PN=HaXml +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Haskell utilities for parsing, filtering, transforming and generating XML documentss." +HOMEPAGE="http://www.haskell.org/HaXml/" +SRC_URI="http://www.haskell.org/HaXml/${MY_P}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" + +KEYWORDS="~x86" + +IUSE="doc" + +# actually, >=ghc-5.02 should be ok +# hugs and nhc98 are ok too, somebody might want to add support for them +DEPEND=">=virtual/ghc-6.0 + doc? ( >=dev-haskell/haddock-0.6-r2 )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + ht_fix_file ${S}/configure +} + +src_compile() { + + ./configure --prefix=${D}/usr/bin \ + || die "./configure failed" + # we only support ghc currently; overrides auto-detection + echo ghc > ${S}/obj/compilers + + emake -j1 || die "make failed" + + # create documentation if requested + if use doc; then + emake -j1 haddock || die "make doc failed" + fi + + # prepare installation of the pkg.conf-file + if $(ghc-cabal); then + ghc-setup-pkg + $(ghc-getghcpkg) -f "${S}/$(ghc-localpkgconf)" --force register "${FILESDIR}/${MY_P}.cabal" + else + ghc-setup-pkg ${S}/obj/ghc/pkg.conf + fi + # make sure the libdir is correct + sed -i "s:\$libdir:$(ghc-libdir):" $(ghc-localpkgconf) +} + +src_install() { + # fix so it installs into image dir + echo ${D}/$(ghc-libdir) > ${S}/obj/ghc/ghclibdir + echo ${D}/$(ghc-libdir)/imports > ${S}/obj/ghc/ghcincdir + # make sure all installation directories are there + mkdir -p ${D}/$(ghc-libdir)/imports + + emake -j1 install-filesonly || die "make install failed" + + if use doc; then + dohtml -r docs/* + dodoc docs/icfp99.dvi docs/icfp99.ps.gz + fi + + ghc-install-pkg +} + |