blob: 7928e98f96ab3160f54acb58f2c5beec6c683a5d (
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-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Chouser <chouser@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/htmltidy/htmltidy-0.8.4.ebuild,v 1.1 2002/01/12 06:45:55 chouser 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]})
P=tidy${vers}
S=${WORKDIR}/${P}
DESCRIPTION="fix mistakes and tidy up sloppy editing in HTML and XML"
SRC_URI="http://prdownloads.sourceforge.net/tidy/${P}.tgz"
HOMEPAGE="http://tidy.sourceforge.net/"
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 () {
mkdir -p "${D}/usr/bin"
mkdir -p "${D}/usr/share/man/man1"
make INSTALLDIR="${D}/usr/" install || die
dohtml -a html,gif *
}
|