diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2005-02-26 17:37:05 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2005-02-26 17:37:05 +0000 |
commit | f35532e5f810270d8a46b05c8b3e0e8626f977f3 (patch) | |
tree | d7b04cd3cdd532d937deae6a7d65411401ddc154 /dev-haskell/hxt/hxt-4.02.ebuild | |
parent | Erm, no. (diff) | |
download | gentoo-2-f35532e5f810270d8a46b05c8b3e0e8626f977f3.tar.gz gentoo-2-f35532e5f810270d8a46b05c8b3e0e8626f977f3.tar.bz2 gentoo-2-f35532e5f810270d8a46b05c8b3e0e8626f977f3.zip |
initial import (bug #79590).
Diffstat (limited to 'dev-haskell/hxt/hxt-4.02.ebuild')
-rw-r--r-- | dev-haskell/hxt/hxt-4.02.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-haskell/hxt/hxt-4.02.ebuild b/dev-haskell/hxt/hxt-4.02.ebuild new file mode 100644 index 000000000000..8fd223835316 --- /dev/null +++ b/dev-haskell/hxt/hxt-4.02.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hxt/hxt-4.02.ebuild,v 1.1 2005/02/26 17:37:05 kosmikus Exp $ + +inherit fixheadtails base eutils ghc-package + +MY_P="HXT" +MY_PV=${MY_P}-${PV} + +DESCRIPTION="A collection of tools for processing XML with Haskell" +HOMEPAGE="http://www.fh-wedel.de/~si/HXmlToolbox/" +SRC_URI="http://www.fh-wedel.de/~si/HXmlToolbox/${MY_PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND=">=virtual/ghc-6.2 + doc? ( >=dev-haskell/haddock-0.6-r2 )" +RDEPEND=">=virtual/ghc-6.2" + +S=${WORKDIR}/${MY_PV} + +src_unpack() { + base_src_unpack + ht_fix_file "${S}/src/Makefile" +} + +src_compile() { + emake || die "emake failed" + if use doc; then + emake doc || die "emake doc failed" + fi +} + +src_install() { + sed -i "s:/usr/local/lib/hxt:$(ghc-libdir):" ${S}/src/{netextra,hxt}-package.conf + sed -i "/ghc-pkg --update-package *$/d" ${S}/src/Makefile + + ghc-setup-pkg ${S}/src/netextra-package.conf ${S}/src/hxt-package.conf + make install \ + GHC_INSTALL_DIR="${D}$(ghc-libdir)" \ + || die "make install failed" + + dodoc LICENSE README + if use doc; then + cd ${S}/doc + dodoc thesis.ps + dohtml -r * + fi + ghc-install-pkg +} |