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 | 8d946e3165eaea86692dc2342c7322dcee0de0eb (patch) | |
tree | 708144b6c1945522573b679f1be21aac54586aac /dev-haskell/hxt/hxt-4.02-r1.ebuild | |
parent | Fix building with gcc4. Use proper compiler. (diff) | |
download | historical-8d946e3165eaea86692dc2342c7322dcee0de0eb.tar.gz historical-8d946e3165eaea86692dc2342c7322dcee0de0eb.tar.bz2 historical-8d946e3165eaea86692dc2342c7322dcee0de0eb.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.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-haskell/hxt/hxt-4.02-r1.ebuild')
-rw-r--r-- | dev-haskell/hxt/hxt-4.02-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-haskell/hxt/hxt-4.02-r1.ebuild b/dev-haskell/hxt/hxt-4.02-r1.ebuild new file mode 100644 index 000000000000..1254065890cf --- /dev/null +++ b/dev-haskell/hxt/hxt-4.02-r1.ebuild @@ -0,0 +1,58 @@ +# 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-r1.ebuild,v 1.1 2005/04/26 10:59:54 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 + !>=virtual/ghc-6.4 + 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_test() { + make test || die "at least one test failed" +} + +src_install() { + sed -i "s:/usr/local/lib/hxt:$(ghc-libdir)/${PF}:" ${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)/${PF}" \ + || die "make install failed" + + dodoc LICENSE README + if use doc; then + cd ${S}/doc + dodoc thesis.ps + dohtml -r * + fi + ghc-install-pkg +} |