blob: 8002cf43f283556af9707a63eb903af2b7adac98 (
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
38
39
40
41
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/htmltidy/htmltidy-0.8.4.ebuild,v 1.11 2004/02/22 20:04:01 agriffis Exp $
# convert from normalized gentoo version number to htmltidy's wacky date thing
month=(dmy jan feb mar apr may jun jul aug sep oct nov dec)
parts=(${PV//./ })
vers=$(printf "%d%s%02d" ${parts[2]} ${month[${parts[1]}]} ${parts[0]})
MY_P=tidy${vers}
S=${WORKDIR}/${MY_P}
DESCRIPTION="fix mistakes and tidy up sloppy editing in HTML and XML"
SRC_URI="mirror://sourceforge/tidy/${MY_P}.tgz"
HOMEPAGE="http://tidy.sourceforge.net/"
SLOT="0"
KEYWORDS="x86 sparc"
LICENSE="GPL-2"
DEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
# fix man page install path and skip "chown"
t=Makefile
cp $t $t.orig
sed 's:)man/:)share/man/:; s:chgrp\|chown:#&:' $t.orig > $t
}
src_compile() {
emake CFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dodir /usr/bin
dodir /usr/share/man/man1
make INSTALLDIR="${D}/usr/" install || die
dohtml -a html,gif *
}
|