2015-08-28 22:50:46 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2015-08-28 22:50:46 +03:00
|
|
|
EAPI=5
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Command-line flags module for Unix shell scripts"
|
2015-08-28 22:50:46 +03:00
|
|
|
HOMEPAGE="https://github.com/kward/shflags"
|
|
|
|
SRC_URI="https://github.com/kward/shflags/archive/${PV}.tar.gz -> ${P}.tgz"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
2014-07-29 21:59:17 +04:00
|
|
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
2012-02-06 16:39:49 +04:00
|
|
|
IUSE="examples"
|
|
|
|
|
|
|
|
src_test() {
|
2015-08-28 22:50:46 +03:00
|
|
|
cd src || die
|
2012-02-06 16:39:49 +04:00
|
|
|
./shflags_test.sh || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dohtml README.html
|
|
|
|
dodoc README.txt doc/*.txt
|
|
|
|
insinto /usr/share/misc
|
|
|
|
doins src/shflags
|
|
|
|
use examples && dodoc examples/*.sh
|
|
|
|
}
|