diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2003-09-22 12:21:03 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2003-09-22 12:21:03 +0000 |
commit | 5a796bff818951d1d44a79cbfa48ac8a11aaf774 (patch) | |
tree | d7fa089b60cb66ee8199ae2b73193f4ffde3b47e /dev-haskell | |
parent | new ebuild for alex (diff) | |
download | historical-5a796bff818951d1d44a79cbfa48ac8a11aaf774.tar.gz historical-5a796bff818951d1d44a79cbfa48ac8a11aaf774.tar.bz2 historical-5a796bff818951d1d44a79cbfa48ac8a11aaf774.zip |
new ebuild for alex
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/alex/Manifest | 3 | ||||
-rw-r--r-- | dev-haskell/alex/alex-2.0.ebuild | 77 | ||||
-rw-r--r-- | dev-haskell/alex/files/digest-alex-2.0 | 1 |
3 files changed, 80 insertions, 1 deletions
diff --git a/dev-haskell/alex/Manifest b/dev-haskell/alex/Manifest index fee8814d14db..fec46db8d486 100644 --- a/dev-haskell/alex/Manifest +++ b/dev-haskell/alex/Manifest @@ -1,2 +1,3 @@ -MD5 0c32f795b35cf9d1529d4f444cc72859 alex-2.0.ebuild 1976 +MD5 905896b695322ec88358119e8d492de1 alex-2.0.ebuild 1961 +MD5 b310c413d52f1b946265cc84a6145400 ChangeLog 376 MD5 382124e3a01f9c689abce012ade88a67 files/digest-alex-2.0 65 diff --git a/dev-haskell/alex/alex-2.0.ebuild b/dev-haskell/alex/alex-2.0.ebuild new file mode 100644 index 000000000000..a60a4ed05bfa --- /dev/null +++ b/dev-haskell/alex/alex-2.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-2.0.ebuild,v 1.1 2003/09/22 12:20:54 kosmikus Exp $ +# +# USE variable summary: +# doc - Build extra documenation from DocBook sources, +# in HTML format. +# tetex - Build the above docs as PostScript as well. + + +inherit base +IUSE="doc tetex" + +DESCRIPTION="A lexical analyser generator for Haskell" +SRC_URI="http://www.haskell.org/alex/dist/${P}-src.tar.bz2" +HOMEPAGE="http://www.haskell.org/alex" + +SLOT="0" +KEYWORDS="~x86 ~sparc" +LICENSE="as-is" + +DEPEND=">=virtual/ghc-5.04 + doc? ( >=app-text/openjade-1.3.1 + >=app-text/sgml-common-0.6.3 + =app-text/docbook-sgml-dtd-3.1-r1 + >=app-text/docbook-dsssl-stylesheets-1.64 + tetex? ( >=app-text/tetex-1.0.7 + >=app-text/jadetex-3.12 ) )" + +RDEPEND="" + +# extend path to /opt/ghc/bin to guarantee that ghc-bin is found +GHCPATH="${PATH}:/opt/ghc/bin" + +src_compile() { + # unset SGML_CATALOG_FILES because documentation installation + # breaks otherwise ... + PATH="${GHCPATH}" SGML_CATALOG_FILES="" econf + # using make because emake behaved strangely on my machine + make || die + + # if documentation has been requested, build documentation ... + if use doc; then + cd ${S}/haddock/doc + emake html || die + if use tetex; then + emake ps || die + fi + fi +} + +src_install() { + local mydoc + + use doc && mydoc="html" || mydoc="" + use doc && use tetex && mydoc="${mydoc} ps" + + echo SGMLDocWays="${mydoc}" >> mk/build.mk + make install install-docs \ + prefix="${D}/usr" \ + datadir="${D}/usr/share/doc/${PF}" \ + infodir="${D}/usr/share/info" \ + mandir="${D}/usr/share/man" || die + + cd ${S}/haddock + dodoc CHANGES LICENSE README TODO + + if [ "`use doc`" ]; then + cd ${S}/alex/doc + dohtml -r alex/* || die + dosym alex.html /usr/share/doc/${PF}/html/index.html + if [ "`use tetex`" ]; then + docinto ps + dodoc alex.ps || die + fi + fi +} diff --git a/dev-haskell/alex/files/digest-alex-2.0 b/dev-haskell/alex/files/digest-alex-2.0 new file mode 100644 index 000000000000..931dc0f899c7 --- /dev/null +++ b/dev-haskell/alex/files/digest-alex-2.0 @@ -0,0 +1 @@ +MD5 14ff6abf21d81763b15afe151add9091 alex-2.0-src.tar.bz2 316720 |