summaryrefslogtreecommitdiff
blob: 5e70fd704dede55dbd6a7998c8d3ea24bdd92507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hugs98-graphics/hugs98-graphics-2.0.4.ebuild,v 1.1 2003/07/28 14:21:34 kosmikus Exp $

DESCRIPTION="Haskell Graphics Library for X"
HOMEPAGE="http://cvs.haskell.org/Hugs/pages/downloading.htm"
SRC_URI="http://cvs.haskell.org/Hugs/downloads/graphics-${PV}.src.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="virtual/glibc
	dev-lang/hugs98
	virtual/x11"
S=${WORKDIR}/graphics-${PV}
# where Hugs is installed
HUGSDIR="/usr/lib/hugs"
# where Hugs libraries get installed
HUGSLIBDIR="${D}${HUGSDIR}/lib"

src_compile() {
	# the package does not use configure
	make -C lib/x11 hugs_install=${HUGSDIR}
}

src_install() {
	dodoc Install License Readme Version Version-2.0.4
	# don't gzip dvi file
	install -m0644 doc/Graphics.dvi "${D}usr/share/doc/${PF}"
	# don't gzip demo file
	install -m0644 demos/HelloWorld.hs "${D}usr/share/doc/${PF}"

	mkdir -p ${HUGSLIBDIR}
	cp -R lib/x11/* ${HUGSLIBDIR}
}