Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-haskell/wxhaskell
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/ChangeLog,v 1.28 2007/12/13 00:52:24 dcoutts Exp $
13 Dec 2007; Duncan Coutts
Remove unnecessary blocker.
31 Oct 2007; Duncan Coutts
Drop virtual/ghc in favour of dev-lang/ghc
13 Oct 2007; Ryan Hill
Make sure the right version of wxGTK is being checked in pkg_setup.
13 Oct 2007; Ryan Hill
Lock wxGTK to 2.6.
30 Apr 2007; Duncan Coutts
Fix ghc deps.
28 Jan 2007; Duncan Coutts
-wxhaskell-0.9.ebuild:
Remove old versions that depend on wxGTK-2.4. Fixes bug #164145.
06 Jan 2007; Andres Loeh
wxhaskell-0.9.ebuild, wxhaskell-0.9.4.ebuild:
Fixed elog / einfo usage.
19 May 2006; Jon Hood
Use the correct libdirs when installing for 64-bit. This way, it compiles
with multilib-strict.
10 Mar 2006; Duncan Coutts
Make the wxhaskell package be exposed by default with ghc-6.2.2
Add ~sparc to KEYWORDS. See bug #124902
19 Feb 2006;
wxhaskell-0.9.ebuild, wxhaskell-0.9.4.ebuild:
Masking 0.8-r1 and 0.9 since wxGTK-2.4.x doesn't work due to bug #123323
Updating all ebuild versions to remove gtk2 USE flag (bug #106560).
Also add app-arch/unzip to DEPEND (bug #69831)
Other changes to install location and how the package is registered.
17 Feb 2006;
wxhaskell-0.9.ebuild, wxhaskell-0.9.4.ebuild:
Require that wxGTK was built with USE="X -odbc -unicode"
Hopefully this will address bugs #92827 and #110932.
16 Feb 2006;
wxhaskell-0.9.ebuild, wxhaskell-0.9.4.ebuild:
Seriously broken on amd64. Temporarily disabling all versions on amd64.
It appears to install a file as "/usr/lib" which overwrites the /usr/lib
symlink on amd64 profiles. Only 0.9.4 is known to be affected but I'm
disabling all the versions for the moment just to be safe.
*wxhaskell-0.9.4 (11 May 2005)
11 May 2005; Andres Loeh
+wxhaskell-0.9.4.ebuild:
New version, that is compatible with ghc-6.4.
10 Apr 2005; Michael Hanselmann
wxhaskell-0.8-r1.ebuild:
Stable on ppc.
14 Mar 2005; Andres Loeh
wxhaskell-0.8-r1.ebuild, -wxhaskell-0.8.ebuild, wxhaskell-0.9.ebuild:
wxHaskell is not yet compatible with ghc-6.4.
*wxhaskell-0.9 (26 Feb 2005)
26 Feb 2005; Andres Loeh
-wxhaskell-0.6.ebuild, wxhaskell-0.8-r1.ebuild, +wxhaskell-0.9.ebuild:
New version 0.9. Marked 0.8-r1 stable on x86. Removed 0.6 versions.
*wxhaskell-0.8-r1 (25 Nov 2004)
25 Nov 2004; Andres Loeh
Supports ghc-package.eclass now (bug #69270). Added ~amd64 flag (bug #58590).
10 Nov 2004; Andres Loeh
Fixed bug #70683.
26 Oct 2004; Andres Loeh
Marked stable on x86.
30 Aug 2004; Andres Loeh
Make use of wxwidgets eclass (#61871).
*wxhaskell-0.8 (23 Aug 2004)
23 Aug 2004; Andres Loeh
New version.
13 Jun 2004; Andres Loeh
Marked stable for x86.
02 Jun 2004; Aron Griffis
wxhaskell-0.6.ebuild, wxhaskell-0.7.ebuild:
Fix use invocation
*wxhaskell-0.7 (12 Apr 2004)
12 Apr 2004; Andres Loeh
New version.
*wxhaskell-0.6-r1 (03 Mar 2004)
03 Mar 2004; Andres Loeh
Fixed library placement bug.
*wxhaskell-0.6 (03 Mar 2004)
03 Mar 2004; Andres Loeh
wxhaskell-0.6.ebuild:
wxHaskell is a Haskell binding for the wxWidgets library. First import into
portage.
DIST wxhaskell-src-0.9.4.zip 569954 RMD160 70c386cb2451509dbd5bca652435bab35b808ed1 SHA1 6133991fb1e6c76a3b5b2bf175277ce56c2adad3 SHA256 586ad7eb706442e44c070455b32800ba2a5e24a67ffd5b90a9aa4f803238fdcd
EBUILD wxhaskell-0.9.4.ebuild 3067 RMD160 8d0058aa0c4cedb4e2fc31630ad47e3f408d55fa SHA1 c77d8e54ca29f9fcdc269d97f9bd6408f24e60ec SHA256 380a25f9acfd605fb971f69c92bc1bdb05f8fcb346fe2f1c6c4eae547d839126
MISC ChangeLog 4480 RMD160 d0654614235a9fb2af4c3710c495dbd1586683e6 SHA1 7d8ff5aa1a69b5ab76dd7dd53d5ddcace0762d15 SHA256 4a51a2508397ac0e1f0d31dfe401c8dde783cf3b62c3d9a08b24a4a17c7451f3
MISC metadata.xml 223 RMD160 7783e6057effb8b8f0b79cffe8b557b32c633839 SHA1 7b962c77f2e38479a9d1621ec8d307ca9f761753 SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxhaskell/wxhaskell-0.9.4.ebuild,v 1.13 2007/12/13 00:52:24 dcoutts Exp $
inherit flag-o-matic wxwidgets ghc-package multilib
DESCRIPTION="a portable and native GUI library for Haskell"
HOMEPAGE="http://wxhaskell.sourceforge.net/"
SRC_URI="mirror://sourceforge/wxhaskell/${PN}-src-${PV}.zip"
LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
RDEPEND="
DEPEND="${RDEPEND}
app-arch/unzip
doc? ( >=dev-haskell/haddock-0.6-r2 )"
pkg_setup() {
if ! built_with_use =x11-libs/wxGTK-2.6* X; then
eerror "wxhaskell needs wxGTK that has been built with X11 support."
eerror "Please re-emerge wxGTK with USE=\"X -odbc -unicode\""
die "wxhaskell requires wxGTK to be built with USE=\"X -odbc -unicode\""
fi
if built_with_use =x11-libs/wxGTK-2.6* odbc; then
eerror "Sadly wxhaskell does not work with wxGTK that has been built"
eerror "with USE=\"odbc\"."
eerror "Please re-emerge wxGTK with USE=\"-odbc\""
die "wxhaskell requires wxGTK to be built with USE=\"-odbc\""
fi
}
src_unpack() {
unpack ${A}
# adapt to Gentoo path convention
sed -i 's:/doc/html:/share/doc/html:' "${S}/configure"
# fix superfluous dependencies on hslibs packages
sed -i -e 's:,lang::' -e 's:,"lang"::' \
-e 's:,concurrent::' -e 's:,"concurrent"::' "${S}/configure"
# fix Makefile to respect CXXFLAGS
sed -i 's:^\(WXC-CXXFLAGS.*=\):\1\$(CXXFLAGS) :' "${S}/makefile"
}
src_compile() {
ghc-setup-pkg
#wxhaskell supports gtk or gtk2, but not unicode yet. However since the gtk2
#USE flag is deprecated we now only build with gtk2:
WX_GTK_VER=2.6
need-wxwidgets gtk2
# every C compiler result ends up in a shared lib
append-flags -fPIC
# non-standard configure, so econf is not an option
# --wx-config must appear first according to configure file comments
./configure \
--wx-config="${WX_CONFIG}" \
--prefix=/usr \
--with-opengl \
--libdir=/usr/$(get_libdir)/${P} \
--package-conf="${S}/$(ghc-localpkgconf)" \
|| die "./configure failed"
emake -j1 || die "make failed"
# create documentation
if use doc; then
emake -j1 doc || die "make doc failed"
fi
}
src_install() {
local f
# don't register the packages, just install the files
emake -j1 install-files DESTDIR="${D}" || die "make install failed"
# the .so needs to be on the lib path
mkdir -p "${D}/usr/$(get_libdir)"
for f in "${D}/usr/$(get_libdir)/${P}/"libwxc-*.so; do
mv ${f} "${D}/usr/$(get_libdir)/"
done
if use doc; then
dohtml -A haddock -r out/doc/*
cp -r samples "${D}/usr/share/doc/${PF}"
fi
# substitute for the ${wxhlibdir} in package files and register them
# for ghc-6.2 change the package to be exposed by default.
sed -i -e "s:\${wxhlibdir}:${D}/usr/$(get_libdir)/${P}:" \
-e "s:auto = False:auto = True:" \
"${D}/usr/$(get_libdir)/${P}/"*.pkg
ghc-setup-pkg "${D}/usr/$(get_libdir)/${P}/"*.pkg
ghc-install-pkg
}