1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 AUTOTOOLS_AUTORECONF="1"
8 inherit autotools autotools-utils eutils
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
13 SRC_URI="https://github.com/sahlberg/${PN}/archive/${P}.tar.gz"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 s390 x86"
17 DESCRIPTION="Client library for accessing NFS shares over a network"
18 HOMEPAGE="https://github.com/sahlberg/libnfs"
20 LICENSE="LGPL-2.1 GPL-3"
21 SLOT="0/11" # sub-slot matches SONAME major
22 IUSE="examples static-libs"
28 S="${WORKDIR}/${PN}-${P}"
39 autotools-utils_src_install
41 # --enable-examples configure switch just compiles them
42 # better install sources instead
43 exeinto /usr/share/doc/${PF}/examples/
44 for program in $(grep PROGRAMS examples/Makefile.am | cut -d= -f2); do
45 doexe examples/${program}.c