Not sure if this is complete though... it compiles, but does it run?
Closes: https://bugs.gentoo.org/630568
Package-Manager: Portage-2.3.13, Repoman-2.3.4
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=TOMZO
-inherit perl-module
+inherit perl-module toolchain-funcs flag-o-matic
DESCRIPTION="Perl interface to file system quotas"
KEYWORDS="~amd64"
IUSE=""
-RDEPEND=""
-DEPEND="virtual/perl-ExtUtils-MakeMaker"
+RDEPEND="
+ sys-fs/quota[rpc]
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+"
# Tests need real FS access/root permissions and are interactive
DIST_TEST=skip
src_prepare() {
default
+ export mymake="OPTIMIZE=$($(tc-getPKG_CONFIG) --cflags libtirpc)"
# disable AFS completely for now, need somebody who can really test it
sed -i -e 's|-d "/afs"|0|' Makefile.PL || die "sed failed"