diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2005-04-26 10:59:54 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2005-04-26 10:59:54 +0000 |
commit | 6a7c810af23fd6dc95e41f6e1ff231f95a17a3db (patch) | |
tree | c052c2f43b1e937556c4289a98c378ae1df8e2b2 /dev-haskell/hxt/hxt-5.00.ebuild | |
parent | Fix building with gcc4. Use proper compiler. (diff) | |
download | gentoo-2-6a7c810af23fd6dc95e41f6e1ff231f95a17a3db.tar.gz gentoo-2-6a7c810af23fd6dc95e41f6e1ff231f95a17a3db.tar.bz2 gentoo-2-6a7c810af23fd6dc95e41f6e1ff231f95a17a3db.zip |
New version. Direct upgrade from 4.02 to 5.00 is not possible, 4.02 has to be unmerged first. Version 4.02-r1 does not suffer from this problem.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-haskell/hxt/hxt-5.00.ebuild')
-rw-r--r-- | dev-haskell/hxt/hxt-5.00.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-haskell/hxt/hxt-5.00.ebuild b/dev-haskell/hxt/hxt-5.00.ebuild new file mode 100644 index 000000000000..4b14fb747fb3 --- /dev/null +++ b/dev-haskell/hxt/hxt-5.00.ebuild @@ -0,0 +1,60 @@ +# 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-5.00.ebuild,v 1.1 2005/04/26 10:59:54 kosmikus Exp $ + +inherit fixheadtails base eutils ghc-package + +MY_PN="HXT" +MY_P=${MY_PN}-${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_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND=">=virtual/ghc-6.2 + !>=virtual/ghc-6.4 + !=dev-haskell/hxt-4.02 + doc? ( >=dev-haskell/haddock-0.6-r2 )" +RDEPEND=">=virtual/ghc-6.2" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + base_src_unpack + ht_fix_file "${S}/src/Makefile" +} + +src_compile() { + emake -j1 all || die "emake failed" + if use doc; then + emake doc || die "emake doc failed" + fi +} + +src_test() { + emake -j1 test || die "at least one test failed" +} + +src_install() { + sed -i "s:/usr/local/lib/hxt:$(ghc-libdir)/${PF}:" ${S}/src/hxt-package.conf + sed -i "/ghc-pkg --update-package *$/d" ${S}/src/Makefile + sed -i "/ghc-pkg --remove-package/d" ${S}/src/Makefile + + ghc-setup-pkg ${S}/src/hxt-package.conf + emake install \ + GHC_INSTALL_DIR="${D}$(ghc-libdir)/${PF}" \ + || die "make install failed" + + dodoc LICENSE README + if use doc; then + cd ${S}/doc + dodoc thesis.ps + dohtml -r * + fi + ghc-install-pkg +} |