| 1 |
tove |
1.1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/ack/ack-1.94.ebuild,v 1.1 2011/03/09 17:16:11 tove Exp $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI=3 |
| 6 |
|
|
|
| 7 |
|
|
ACK_PATCH="ack-gentoo-r1.patch" |
| 8 |
|
|
|
| 9 |
|
|
MODULE_AUTHOR=PETDANCE |
| 10 |
|
|
inherit perl-module bash-completion |
| 11 |
|
|
|
| 12 |
|
|
DESCRIPTION="ack is a tool like grep, aimed at programmers with large trees of heterogeneous source code" |
| 13 |
|
|
HOMEPAGE="http://betterthangrep.com/ ${HOMEPAGE}" |
| 14 |
|
|
SRC_URI+=" http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${ACK_PATCH}.bz2" |
| 15 |
|
|
|
| 16 |
|
|
LICENSE="Artistic-2" |
| 17 |
|
|
SLOT="0" |
| 18 |
|
|
KEYWORDS="~amd64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos" |
| 19 |
|
|
IUSE="" |
| 20 |
|
|
|
| 21 |
|
|
DEPEND=">=dev-perl/File-Next-1.02" |
| 22 |
|
|
RDEPEND="${DEPEND}" |
| 23 |
|
|
|
| 24 |
|
|
SRC_TEST=do |
| 25 |
|
|
PATCHES=( "${WORKDIR}"/${ACK_PATCH} ) |
| 26 |
|
|
|
| 27 |
|
|
src_install() { |
| 28 |
|
|
perl-module_src_install |
| 29 |
|
|
dobashcompletion etc/ack.bash_completion.sh |
| 30 |
|
|
} |
| 31 |
|
|
|
| 32 |
|
|
pkg_postinst() { |
| 33 |
|
|
bash-completion_pkg_postinst |
| 34 |
|
|
} |