diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-12-26 10:31:58 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-12-26 10:32:29 +0100 |
commit | 286536eba9100c01104c90a7f05f75799e8b78f5 (patch) | |
tree | c949963eae5cd0e3b254f31a4c730a7a656e607f /dev-libs/argtable | |
parent | sys-kernel/ck-sources: v.bump (4.14.9) (diff) | |
download | gentoo-286536eba9100c01104c90a7f05f75799e8b78f5.tar.gz gentoo-286536eba9100c01104c90a7f05f75799e8b78f5.tar.bz2 gentoo-286536eba9100c01104c90a7f05f75799e8b78f5.zip |
dev-libs/argtable: EAPI bump
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/argtable')
-rw-r--r-- | dev-libs/argtable/argtable-2.13-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/argtable/argtable-2.13-r1.ebuild b/dev-libs/argtable/argtable-2.13-r1.ebuild new file mode 100644 index 000000000000..2c4752d6da85 --- /dev/null +++ b/dev-libs/argtable/argtable-2.13-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit versionator + +DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss" +HOMEPAGE="http://argtable.sourceforge.net/" + +MY_PV="$(replace_version_separator 1 '-')" +MY_P=${PN}${MY_PV} + +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc debug examples static-libs" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + rm -rf "${D}"/usr/share/doc/${PF}/ + + dodoc AUTHORS ChangeLog NEWS README + + if use doc ; then + cd "${S}/doc" + dodoc *.pdf *.ps + docinto html + dodoc *.html *.gif + fi + + if use examples ; then + cd "${S}/example" + docinto examples + dodoc Makefile *.[ch] README.txt + fi + + find "${ED}" -name "*.la" -delete || die "failed to delete .la files" +} |