Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/hugs98
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/ChangeLog,v 1.46 2008/01/27 18:23:25 dcoutts Exp $
27 Jan 2008; Duncan Coutts
+files/hugs98-2005.3-conditional-doc.patch:
Added missing patch file, fixes bug #207703.
*hugs98-2006.9 (26 Jan 2008)
26 Jan 2008; Duncan Coutts
New version. Fixes bug #143141.
22 Jul 2007; Hans de Graaff
Drop virtual/x11 references.
03 Oct 2006; Duncan Coutts
Use eselect-opengl rather than deprecated opengl-update. Fixes bug #147244
12 Sep 2006;
Stable on x86, bug 144676.
04 Sep 2006; Joshua Kinard
Added ~mips to KEYWORDS.
29 Aug 2006; Jeroen Roovers
Stable for HPPA (bug #144676).
25 Aug 2006;
Stable on ppc wrt bug #144676
22 Aug 2006; Thomas Cort
Stable on alpha wrt Bug #144676.
21 Aug 2006; Ferris McCormick
Stable on sparc --- Bug #126324 --- seems fine and is a dependency for some
utilities.
15 Aug 2006; Chris Parrott
Marked stable for amd64.
13 Jul 2006; Aron Griffis
Mark 2005.3-r2 stable on ia64
05 Jul 2006; Duncan Coutts
-hugs98-2005.3-r1.ebuild, hugs98-2005.3-r2.ebuild:
Remove old revision and add RESTRICT=test since the testsuite is not
included in the tarballs
05 Jul 2006; Diego Pettenò
hugs98-2005.3-r2.ebuild:
Add ~x86-fbsd keyword.
04 Jul 2006; Jeroen Roovers
Marked ~hppa (bug #126324).
21 May 2006; Markus Rothe
Stable on ppc64
24 Mar 2006; Aron Griffis
Mark 2005.3-r2 ~ia64. #126324
01 Mar 2006; Markus Rothe
Added ~ppc64; bug #124469
28 Feb 2006; Duncan Coutts
+files/hugs98-2005.3-find.patch, hugs98-2005.3-r2.ebuild:
Add a patch by Tom Payne
16 Feb 2006;
metadata.xml, hugs98-2005.3-r2.ebuild:
Add a patch to fix building of the OpenAL bindings. (thanks to kolmodin)
*hugs98-2005.3-r2 (16 Feb 2006)
16 Feb 2006;
+hugs98-2005.3-r2.ebuild:
Ported to modular X. Added X and openal USE flags. Fixed building of the
optional opengl package. Removed an old revision.
02 Oct 2005; Aron Griffis
Mark 2005.3-r1 stable on alpha
23 Sep 2005;
Marked stable on x86.
18 Aug 2005; Jose Luis Rivero
hugs98-2005.3-r1.ebuild:
Keyworded ~alpha wrt #98560
*hugs98-2005.3-r1 (25 Jul 2005)
25 Jul 2005;
Added an upstream patch. Thanks to Hans Lub
for pointing this out.
19 Mar 2005; Andres Loeh
Small fix to make it build on amd64.
*hugs98-2005.3 (18 Mar 2005)
18 Mar 2005; Andres Loeh
Added an ebuild for the March 2005 interim release.
08 Dec 2004; Michael Hanselmann
Fixed bug #73611.
08 Dec 2004; Michael Hanselmann
Added to ~ppc
16 Nov 2004; Andres Loeh
Added ~amd64 keyword (bug #65074).
03 Nov 2004; Andres Loeh
hugs98-2002.11.ebuild, hugs98-2003.11.ebuild,
files/hugs98-2003.11-gcc34.patch:
Patched for gcc-3.4, thanks to several people (see bug #64426). Cleaned up.
19 Oct 2004; Mamoru KOMACHI
Fixed missing dependencies; bug #68021.
01 Jul 2004; Jeremy Huddleston
hugs98-2002.11-r1.ebuild, hugs98-2002.11.ebuild, hugs98-2003.11.ebuild:
virtual/glibc -> virtual/libc
03 Jun 2004; Aron Griffis
Fix use invocation
03 Mar 2004; Andres Loeh
Removed version. Sources are no longer available.
17 Dec 2003; Andres Loeh
Pthreads and the NVIDIA OpenGL interface do not seem to work well together.
Temporarily disabling pthreads if using that interface (compare bug #34858).
*hugs98-2003.11 (01 Dec 2003)
01 Dec 2003; Andres Loeh
Version bump. Based on new ebuild submitted by Peter Simons
provided by Ralf Hinze
*hugs98-2002.11-r1 (23 Apr 2003)
23 Apr 2003; Andres Loeh
Fixed bug that caused some .so libs not to be built. Compare
http://forums.gentoo.org/viewtopic.php?t=36909. Thanks to PerdiX and thaldyron
for mentioning the problem in the forum.
*hugs98-2002.11 (10 Dec 2002)
10 Dec 2002; George Shapovalov
new version
update submitted by Andres Loeh
* Autoupdate keywords (12-6-02)
06 Dec 2002; Rodney Rees
*hugs98-2000.12-r1 (08 Aug 2002)
08 Aug 2002; Karl Trygve Kalleberg
Added support for readline useflag, as patched by
Michal Prada
Removed hugs98-2000.12.ebuild files/digest-hugs98-2000.12
*hugs98-2000.12 (24 Apr 2002)
24 Apr 2002; Karl Trygve Kalleberg
Hugs 98 is a functional programming system based on Haskell 98, the de facto
standard for non-strict functional programming languages. Hugs 98 provides
an almost complete implementation of Haskell 98, including:
* Lazy evaluation, higher order functions, and pattern matching.
* A wide range of built-in types, from characters to bignums, and lists to
functions, with comprehensive facilities for defining new datatypes and
type synonyms.
* An advanced polymorphic type system with type and constructor class
overloading.
* All of the features of the Haskell 98 expression and pattern syntax
including lambda, case, conditional and let expressions, list
comprehensions, do-notation, operator sections, and wildcard,
irrefutable and `as' patterns.
* An implementation of the main Haskell 98 primitives for monadic I/O,
with support for simple interactive programs, access to text files,
handle-based I/O, and exception handling.
* An almost complete implementation of the Haskell module system. Hugs 98
also supports a number of advanced and experimental extensions including
multi-parameter classes, extensible records, rank-2 polymorphism,
existentials, scoped type variables, and restricted type synonyms.
AUX hugs98-2003.11-gcc34.patch 303 RMD160 db9c39870607d55182f1d09e7d52d6d03d7a9935 SHA1 118bace20f793f11dc8a50f44e4bf5d4a0206091 SHA256 d59a4b1d9fe4632d0a551aaeb2bc53e5804c88948e0a797220f427f0b452879d
AUX hugs98-2005.3-conditional-doc.patch 436 RMD160 b5eb62be1d81a7b05723dd0e39efb74449fa8589 SHA1 a6778c0a535d445de3b148e9e662186e3571073f SHA256 baf43071ba9b5560225d56cd80e5dd2cd0e2318e19faa32bc49455ee411750dc
AUX hugs98-2005.3-find.patch 576 RMD160 2af0bec8c03662ce1e1ad6206c73d8dac652c7cf SHA1 2bcd5435635b662285d7bc3ee0ea5d96daf2e80e SHA256 c330530b14e7f37a0656a83516eb0cd8d8ca634f686aae2884ffb06a50e5f233
AUX hugs98-2005.3-openal.patch 1323 RMD160 eaf01eadf4bf71ed690fcccc2fdb57e3e3868e33 SHA1 7ff24475a1066fae3545e5b24efa6d6c471b2635 SHA256 7e60d448b4c75f0321ff6aec0cff845c9c6053b5ba5229af4451f814211f13ef
DIST hugs98-Mar2005-patch.gz 5304 RMD160 7eb44a997cc7a94528753851024025eabf282296 SHA1 27639b03b5972c5dcccd4d329bf6c8d814ae8c0f SHA256 3551cb640ef0d6fc5b97e94ac3303f00171ce1a0e4144d615d0982863c1dbe34
DIST hugs98-Mar2005.tar.gz 4198745 RMD160 4c3b391a7364a199694ab8c7946146eb37b7c95c SHA1 34d994997bc6bd96c08e19a18cdf31a17850051b SHA256 a6b9b82aea02e76b4e7359172ef7c71abe58b3104a77d109cb3393bf0bbe6227
DIST hugs98-Nov2003.tar.gz 1919935 RMD160 32c228e3e3fb25ca502586ac3addf9f71f93b3b2 SHA1 a320ff611c230450898a3e13d88b36dfc7c3239f SHA256 335a23a38cf16820ee94d0aa75c0a2d6130793dcbb9ecb54904e5f1c7dad0f84
DIST hugs98-plus-Sep2006.tar.gz 5322244 RMD160 4a7e744360a29fbf94f5ac86ea559e80f12205a5 SHA1 1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9 SHA256 aafaca9ca544572ebef70bbe86b5eb0abaa5d7c11c0b766d7db72a46b022bed5
EBUILD hugs98-2003.11.ebuild 2561 RMD160 909c47a54aae81640ac0ecc0f8d2828003874856 SHA1 5d5f8ebef29e91a91890cef0b174b2c427c867a9 SHA256 a4bd1efdc42e33dd133b8cd5739d38e8bccf4e10067840358222c4394cebf59f
EBUILD hugs98-2005.3-r2.ebuild 3061 RMD160 30d7d83f2d26a499ece4680314edf4318f9c7a51 SHA1 9f2987e386a7d2d80e3b994d4c97557b8e3d6641 SHA256 3af41ef5cc401f856ecdc80e72b4047a25c38c57fabadd325ae3649a2cb0d7ee
EBUILD hugs98-2006.9.ebuild 2729 RMD160 5ef0f8c535e3676e2a559ab87aa304eaeedb5a44 SHA1 ee8af201575c4ec6a87ebbf3d970757c0c593aa3 SHA256 0347e1e8b66558f62c17ff963d0cd6c8552ad75b35928e993f3cb25de01944f2
MISC ChangeLog 7734 RMD160 26b1df2667d75d9a092cdb979c8a5a473087e0e7 SHA1 2b1732ecb2468f46a76ab7e2fe07135750bc76e2 SHA256 876e6f7e9b34ec7e4273ee45e8a7c7e4e2b77c9cf2db8a873418cc9ff5ac6ed4
MISC metadata.xml 223 RMD160 7783e6057effb8b8f0b79cffe8b557b32c633839 SHA1 7b962c77f2e38479a9d1621ec8d307ca9f761753 SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508
# Copyright 1999-2006 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.12 2006/07/05 14:33:18 dcoutts Exp $
inherit base flag-o-matic eutils
IUSE="opengl"
MY_P="hugs98-Nov2003"
S=${WORKDIR}/${MY_P}
DESCRIPTION="The HUGS98 Haskell interpreter"
SRC_URI="http://cvs.haskell.org/Hugs/downloads/Nov2003/${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"
# the testsuite is not included in the tarball
RESTRICT="test"
src_unpack() {
base_src_unpack
cd ${S}/src
epatch ${FILESDIR}/${P}-gcc34.patch
}
src_compile() {
local myconf
[ "${ARCH}" = "amd64" ] && append-flags -fPIC
# 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
# When timing is enabled, the build will fail at some
# point with:
#
# | gcc runhugs.o server.o [...]-o runhugs
# | evaluator.o(.text+0x1b7): In function `evaluator':
# | : undefined reference to `updateTimers'
# | collect2: ld returned 1 exit status
#
# Somebody *cough* should look into this.
myconf="$myconf --disable-timer"
# When using econf here, configure will spout warnings
# about how you need to give "--host --target --build",
# and sometimes it will refuse to run at all.
cd ${S}/src/unix || die "source directory not found"
./configure \
--host=${CHOST} \
--target=${CHOST} \
--build=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--enable-ffi \
--with-pthreads \
--enable-profiling \
${myconf} || die "./configure failed"
cd ..
emake || die "make failed"
}
src_install () {
cd ${S}/src || die "source directory not found"
make \
HUGSDIR=${D}/usr/lib/hugs \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || 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}
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2005.3-r2.ebuild,v 1.19 2007/07/22 08:56:18 graaff Exp $
inherit base flag-o-matic eutils versionator multilib
IUSE="X opengl openal"
# 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="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
LICENSE="as-is"
RDEPEND="
X? ( x11-libs/libX11 )
opengl? ( virtual/opengl virtual/glu virtual/glut )
openal? ( media-libs/openal )"
DEPEND="${RDEPEND}
opengl? ( app-admin/eselect-opengl )
~app-text/docbook-sgml-dtd-4.2"
# the testsuite is not included in the tarball
RESTRICT="test"
src_unpack() {
base_src_unpack
cd ${S}
epatch ${WORKDIR}/${MY_P}-patch
epatch ${FILESDIR}/${P}-openal.patch
epatch ${FILESDIR}/${P}-find.patch
if ! use X; then
sed -i -e 's/X11//' -e 's/HGL//' "${S}/Makefile" \
"${S}/libraries/tools/convert_libraries" \
"${S}/libraries/tools/test_libraries"
rm -r "${S}/fptools/libraries/X11" "${S}/fptools/libraries/HGL"
fi
if ! use opengl; then
sed -i -e 's/OpenGL//' -e 's/GLUT//' "${S}/Makefile" \
"${S}/libraries/tools/convert_libraries" \
"${S}/libraries/tools/test_libraries"
rm -r "${S}/fptools/libraries/OpenGL" "${S}/fptools/libraries/GLUT"
fi
if ! use openal; then
sed -i 's/OpenAL//' "${S}/Makefile" \
"${S}/libraries/tools/convert_libraries" \
"${S}/libraries/tools/test_libraries"
rm -r "${S}/fptools/libraries/OpenAL"
fi
}
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-opengl"
# the nvidia drivers *seem* not to work together with pthreads
if ! /usr/bin/eselect opengl show | grep -q nvidia; then
myconf="$myconf --with-pthreads"
fi
fi
econf \
--build=${CHOST} \
--enable-ffi \
--enable-profiling \
${myconf} || die "econf failed"
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/$(get_libdir)/hugs"
rm Credits License Readme
mv demos/ docs/ "${D}/usr/share/doc/${PF}"
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2006.9.ebuild,v 1.1 2008/01/26 20:29:19 dcoutts Exp $
inherit base flag-o-matic eutils versionator multilib
IUSE="X opengl openal doc"
# 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
}
transform_month_num() {
case "$1" in
[1-9]) echo 0$1;;
1[0-2]) echo $1;;
esac
}
HUGS_MONTH=$(transform_month ${HUGS_MONTH_NR})
HUGS_MONTH0=$(transform_month_num ${HUGS_MONTH_NR})
MY_PV="${HUGS_MONTH}$(get_major_version )"
MY_PV0="$(get_version_component_range 1)-${HUGS_MONTH0}"
MY_P="${PN}-plus-${MY_PV}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="The Hugs98 Haskell interpreter"
SRC_URI="http://cvs.haskell.org/Hugs/downloads/${MY_PV0}/${MY_P}.tar.gz"
HOMEPAGE="http://www.haskell.org/hugs/"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
LICENSE="as-is"
RDEPEND="
X? ( x11-libs/libX11 )
opengl? ( virtual/opengl virtual/glu virtual/glut )
openal? ( media-libs/openal )"
DEPEND="${RDEPEND}
opengl? ( app-admin/eselect-opengl )
~app-text/docbook-sgml-dtd-4.2"
# the testsuite is not included in the tarball
RESTRICT="test"
src_unpack() {
base_src_unpack
cd "${S}"
epatch "${FILESDIR}/hugs98-2005.3-find.patch"
epatch "${FILESDIR}/hugs98-2005.3-conditional-doc.patch"
}
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
# the nvidia drivers *seem* not to work together with pthreads
if ! /usr/bin/eselect opengl show | grep -q nvidia; then
myconf="$myconf --with-pthreads"
fi
fi
econf \
--build=${CHOST} \
--enable-ffi \
--enable-profiling \
$(use_enable X x11) \
$(use_enable opengl) \
$(use_enable openal) \
${myconf} || die "econf failed"
emake || die "make failed"
if use doc; then
emake doc || die "make doc failed"
fi
}
src_install () {
emake install DESTDIR="${D}" || die "make install failed"
if use doc; then
emake install_doc DESTDIR="${D}" || die "make install_doc failed"
fi
#somewhat clean-up installation of few docs
cd "${S}"
dodoc Credits License Readme
cd "${D}/usr/$(get_libdir)/hugs"
rm Credits License Readme
mv demos/ docs/ "${D}/usr/share/doc/${PF}"
}