You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/mawk/mawk-1.3.4_p20130219.ebuild

44 lines
954 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mawk/mawk-1.3.4_p20130219.ebuild,v 1.1 2013/03/10 01:03:33 radhermit Exp $
EAPI="5"
inherit toolchain-funcs eutils
MY_P=${P/_p/-}
DESCRIPTION="an (often faster than gawk) awk-interpreter"
HOMEPAGE="http://invisible-island.net/mawk/mawk.html"
SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND="app-admin/eselect-awk"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
DOCS=( ACKNOWLEDGMENT CHANGES README )
src_prepare() {
tc-export BUILD_CC
}
src_install() {
default
exeinto /usr/share/doc/${PF}/examples
doexe examples/*
docompress -x /usr/share/doc/${PF}/examples
}
pkg_postinst() {
eselect awk update ifunset
}
pkg_postrm() {
eselect awk update ifunset
}