summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2005-07-25 16:18:11 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2005-07-25 16:18:11 +0000
commit2a472870d9b7f634eff26c26979a6e04f829c93a (patch)
tree34714b51b2bd880031ba3e54f6a7dd4d05389ef3 /dev-lang/hugs98
parentChange qt dep per bug #100235 (diff)
downloadgentoo-2-2a472870d9b7f634eff26c26979a6e04f829c93a.tar.gz
gentoo-2-2a472870d9b7f634eff26c26979a6e04f829c93a.tar.bz2
gentoo-2-2a472870d9b7f634eff26c26979a6e04f829c93a.zip
Added an upstream patch. Thanks to Hans Lub <hlub@knoware.nl> (bug #100230) for pointing this out.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-lang/hugs98')
-rw-r--r--dev-lang/hugs98/ChangeLog8
-rw-r--r--dev-lang/hugs98/Manifest12
-rw-r--r--dev-lang/hugs98/files/digest-hugs98-2005.3-r12
-rw-r--r--dev-lang/hugs98/hugs98-2005.3-r1.ebuild92
4 files changed, 103 insertions, 11 deletions
diff --git a/dev-lang/hugs98/ChangeLog b/dev-lang/hugs98/ChangeLog
index c04e6b7082e7..bf90830e3d99 100644
--- a/dev-lang/hugs98/ChangeLog
+++ b/dev-lang/hugs98/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/hugs98
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/ChangeLog,v 1.21 2005/03/19 12:34:14 kosmikus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/ChangeLog,v 1.22 2005/07/25 16:18:11 dcoutts Exp $
+
+*hugs98-2005.3-r1 (25 Jul 2005)
+
+ 25 Jul 2005; <duncan@gentoo.org> +hugs98-2005.3-r1.ebuild:
+ Added an upstream patch. Thanks to Hans Lub <hlub@knoware.nl> (bug #100230)
+ for pointing this out.
19 Mar 2005; Andres Loeh <kosmikus@gentoo.org> hugs98-2005.3.ebuild:
Small fix to make it build on amd64.
diff --git a/dev-lang/hugs98/Manifest b/dev-lang/hugs98/Manifest
index 6f444c7154ce..a3105eb6b1e4 100644
--- a/dev-lang/hugs98/Manifest
+++ b/dev-lang/hugs98/Manifest
@@ -1,6 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 1a4aeafd87a22f2d5d010d966089c30f hugs98-2005.3-r1.ebuild 2235
MD5 82baad88b726920518455a0b2c393f89 hugs98-2003.11.ebuild 2498
MD5 9dc6f3b3a7078e9c867754ba5110989e hugs98-2005.3.ebuild 2126
MD5 fce2a2a8b23eb32acedcd9c566db8c64 ChangeLog 4457
@@ -8,10 +6,4 @@ 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
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFCPB1SOKSBj1ObwosRAlpzAJ0eMioY880F86J41J7fuetEbxIC/ACeNg4/
-RBndusEEauP/x3WriL4EY4I=
-=3p9K
------END PGP SIGNATURE-----
+MD5 0f560de47a443f3bea9cf87df2e85b81 files/digest-hugs98-2005.3-r1 133
diff --git a/dev-lang/hugs98/files/digest-hugs98-2005.3-r1 b/dev-lang/hugs98/files/digest-hugs98-2005.3-r1
new file mode 100644
index 000000000000..33a75b79ad6f
--- /dev/null
+++ b/dev-lang/hugs98/files/digest-hugs98-2005.3-r1
@@ -0,0 +1,2 @@
+MD5 e6c2826a51529b269b11057da6c1e6f6 hugs98-Mar2005.tar.gz 4198745
+MD5 8e423473750498b6626af32f551da3c5 hugs98-Mar2005-patch.gz 5304
diff --git a/dev-lang/hugs98/hugs98-2005.3-r1.ebuild b/dev-lang/hugs98/hugs98-2005.3-r1.ebuild
new file mode 100644
index 000000000000..55a4e1b9695d
--- /dev/null
+++ b/dev-lang/hugs98/hugs98-2005.3-r1.ebuild
@@ -0,0 +1,92 @@
+# 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-r1.ebuild,v 1.1 2005/07/25 16:18:11 dcoutts 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
+ http://cvs.haskell.org/Hugs/downloads/${MY_PV}/${MY_P}-patch.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}
+ epatch ${WORKDIR}/${MY_P}-patch
+ 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 \
+ --build=${CHOST} \
+ --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}
+}