summaryrefslogtreecommitdiff
blob: 5696c5698d5d58933da7e25e000c98604f0bc0be (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
36
37
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/lout/lout-3.25-r1.ebuild,v 1.4 2002/12/09 04:17:44 manson Exp $

DESCRIPTION="Lout is a high-level language for document formatting."
HOMEPAGE="http://snark.ptc.spbu.ru/~uwe/lout/"
LICENSE="GPL-2"
KEYWORDS="x86 sparc "
SLOT="0"
DEPEND=">=sys-libs/zlib-1.1.4"
RDEPEND=""
SRC_URI="http://www.tex.ac.uk/tex-archive/support/lout/${P}.tar.gz"

src_unpack() {
	unpack $A
	cd ${S}

	# Apply the makefile patch, this is the only configuration so far :-(
	patch -p0 < ${FILESDIR}/${P}-r1-makefile-gentoo.patch
}

src_compile() {
	emake prg2lout lout || die "emake prg2lout lout failed"
}

src_install() {
	emake DESTDIR=${D} install installdoc installman || die "emake install failed"

	dodoc README READMEPDF blurb blurb.short whatsnew
}

pkg_postinst() {
	/usr/bin/lout -x -s /usr/lib/lout/include/init
	chmod 644 /usr/lib/lout/data/*
	chmod 644 /usr/lib/lout/hyph/*
}