summaryrefslogtreecommitdiff
blob: 29cb9e51ca863b36097c47abe0c578f825b9b1b0 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-Tail/File-Tail-0.98-r1.ebuild,v 1.1 2002/05/04 02:45:39 woodchip Exp $

S=${WORKDIR}/${P}
DESCRIPTION="File::Tail module for perl"
SRC_URI="http://www.cpan.org/authors/id/MGRABNAR/${P}.tar.gz"

DEPEND="virtual/glibc >=sys-devel/perl-5"
LICENSE="Artistic | GPL-2"
SLOT="0"

src_compile() {
	OPTIMIZE="$CFLAGS" perl Makefile.PL /usr
	make || die
}

src_install () {
	eval `perl '-V:installarchlib'`
	mkdir -p ${D}/$installarchlib

	make \
		PREFIX=${D}/usr \
		INSTALLMAN3DIR=${D}/usr/share/man/man3 \
		INSTALLMAN1DIR=${D}/usr/share/man/man1 \
		install || die

	dodoc ChangeLog MANIFEST README ToDo
}