summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2005-03-18 18:06:34 +0000
committerAndres Loeh <kosmikus@gentoo.org>2005-03-18 18:06:34 +0000
commit01462bf4d3155d45a28732c7cf21dc7ffaa0c20e (patch)
tree5593aca61f26aeb84c3c33886f0c7dd0f7a67efd /dev-lang/hugs98
parentAdded to ~ppc (diff)
downloadgentoo-2-01462bf4d3155d45a28732c7cf21dc7ffaa0c20e.tar.gz
gentoo-2-01462bf4d3155d45a28732c7cf21dc7ffaa0c20e.tar.bz2
gentoo-2-01462bf4d3155d45a28732c7cf21dc7ffaa0c20e.zip
Added an ebuild for the March 2005 interim release.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-lang/hugs98')
-rw-r--r--dev-lang/hugs98/ChangeLog9
-rw-r--r--dev-lang/hugs98/Manifest6
-rw-r--r--dev-lang/hugs98/files/digest-hugs98-2005.31
-rw-r--r--dev-lang/hugs98/hugs98-2003.11.ebuild4
-rw-r--r--dev-lang/hugs98/hugs98-2005.3.ebuild88
5 files changed, 102 insertions, 6 deletions
diff --git a/dev-lang/hugs98/ChangeLog b/dev-lang/hugs98/ChangeLog
index 65e1bcc562be..5b90643c0b1b 100644
--- a/dev-lang/hugs98/ChangeLog
+++ b/dev-lang/hugs98/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/hugs98
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/ChangeLog,v 1.19 2004/12/08 22:57:55 hansmi Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/ChangeLog,v 1.20 2005/03/18 18:06:34 kosmikus Exp $
+
+*hugs98-2005.3 (18 Mar 2005)
+
+ 18 Mar 2005; Andres Loeh <kosmikus@gentoo.org> +hugs98-2005.3.ebuild:
+ Added an ebuild for the March 2005 interim release.
08 Dec 2004; Michael Hanselmann <hansmi@gentoo.org> hugs98-2003.11.ebuild:
Fixed bug #73611.
diff --git a/dev-lang/hugs98/Manifest b/dev-lang/hugs98/Manifest
index edcb29c466af..0f5ced85cdd0 100644
--- a/dev-lang/hugs98/Manifest
+++ b/dev-lang/hugs98/Manifest
@@ -1,5 +1,7 @@
-MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
-MD5 5eb3705255b2c784618b092d5d0e64a6 ChangeLog 4187
MD5 0227863e162dc3615f5e5cb759d74dd2 hugs98-2003.11.ebuild 2496
+MD5 42ef153c34aea5d4b2ae9f4a7617b57b hugs98-2005.3.ebuild 2359
+MD5 5eb3705255b2c784618b092d5d0e64a6 ChangeLog 4187
+MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
MD5 eb7ae57bb23e867135381cbd99c5c1c0 files/digest-hugs98-2003.11 67
MD5 4c6e27fe15252dea9f141e0f6b06ed36 files/hugs98-2003.11-gcc34.patch 303
+MD5 6a471250900fa1157b523eea5bbbe54d files/digest-hugs98-2005.3 67
diff --git a/dev-lang/hugs98/files/digest-hugs98-2005.3 b/dev-lang/hugs98/files/digest-hugs98-2005.3
new file mode 100644
index 000000000000..32dfe6a07084
--- /dev/null
+++ b/dev-lang/hugs98/files/digest-hugs98-2005.3
@@ -0,0 +1 @@
+MD5 e6c2826a51529b269b11057da6c1e6f6 hugs98-Mar2005.tar.gz 4198745
diff --git a/dev-lang/hugs98/hugs98-2003.11.ebuild b/dev-lang/hugs98/hugs98-2003.11.ebuild
index 81309bc29b90..65e7ea98da0e 100644
--- a/dev-lang/hugs98/hugs98-2003.11.ebuild
+++ b/dev-lang/hugs98/hugs98-2003.11.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2003.11.ebuild,v 1.10 2004/12/08 22:57:55 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2003.11.ebuild,v 1.11 2005/03/18 18:06:34 kosmikus Exp $
inherit base flag-o-matic eutils
diff --git a/dev-lang/hugs98/hugs98-2005.3.ebuild b/dev-lang/hugs98/hugs98-2005.3.ebuild
new file mode 100644
index 000000000000..7dfb0d868a2c
--- /dev/null
+++ b/dev-lang/hugs98/hugs98-2005.3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2005.3.ebuild,v 1.1 2005/03/18 18:06:34 kosmikus Exp $
+
+inherit base flag-o-matic eutils versionator
+
+IUSE="opengl"
+
+# version numbering of Hugs is rather strange
+# we have to transform 2003.11 -> Nov2003
+HUGS_MONTH_NR=$(get_version_component_range 2)
+
+transform_month() {
+ case "$1" in
+ 1) echo "Jan";;
+ 2) echo "Feb";;
+ 3) echo "Mar";;
+ 4) echo "Apr";;
+ 5) echo "May";;
+ 6) echo "Jun";;
+ 7) echo "Jul";;
+ 8) echo "Aug";;
+ 9) echo "Sep";;
+ 10) echo "Oct";;
+ 11) echo "Nov";;
+ 12) echo "Dec";;
+ *) echo "";;
+ esac
+}
+
+HUGS_MONTH=$(transform_month ${HUGS_MONTH_NR})
+MY_PV="${HUGS_MONTH}$(get_major_version )"
+MY_P="${PN}-${MY_PV}"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="The HUGS98 Haskell interpreter"
+SRC_URI="http://cvs.haskell.org/Hugs/downloads/${MY_PV}/${MY_P}.tar.gz"
+HOMEPAGE="http://www.haskell.org/hugs/"
+
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~amd64 ~ppc"
+LICENSE="as-is"
+
+DEPEND="virtual/libc
+ opengl? ( virtual/opengl virtual/glu virtual/glut )
+ ~app-text/docbook-sgml-dtd-4.2"
+
+src_unpack() {
+ base_src_unpack
+ cd ${S}/src
+}
+
+src_compile() {
+ local myconf
+
+ # Strip -O? from CFLAGS because of bugs
+ # in the garbage collection of gcc on ppc.
+ # See bug #73611
+ [ "${ARCH}" = "ppc" ] && filter-flags "-O?"
+
+ if use opengl; then
+ myconf="--enable-hopengl"
+ # the nvidia drivers *seem* not to work together
+ # with pthreads
+ [ ! -f /etc/env.d/09opengl ] \
+ || [ -z "`grep opengl/nvidia/lib /etc/env.d/09opengl`" ] \
+ && myconf="$myconf --with-pthreads" \
+ || myconf="--with-pthreads"
+ fi
+
+ # cd ${S}/src/unix || die "source directory not found"
+ econf \
+ --enable-ffi \
+ --enable-profiling \
+ ${myconf} || die "econf failed"
+ # cd ..
+ emake || die "make failed"
+}
+
+src_install () {
+ make install DESTDIR="${D}" || die "make install failed"
+
+ #somewhat clean-up installation of few docs
+ cd ${S}
+ dodoc Credits License Readme
+ cd ${D}/usr/lib/hugs
+ rm Credits License Readme
+ mv demos/ docs/ ${D}/usr/share/doc/${PF}
+}