# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils gnuconfig cvs

HM=${PN#husky-}
ECVS_AUTH="pserver"
ECVS_SERVER="husky.cvs.sourceforge.net:/cvsroot/husky"
ECVS_MODULE="${HM}"
ECVS_CVS_COMPRESS="-z3"

DESCRIPTION="FTN husky ${HM} library"
SRC_URI=""
HOMEPAGE="http://husky.sf.net"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="net-fido/husky-huskylib
	net-fido/husky-smapi
	net-fido/husky-fidoconf
	net-fido/husky-areafix
	net-fido/husky-hptzip"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${ECVS_LOCALNAME}"

# sed -i '/unused(my_perl);/d' "${S}/${HM}"/src/perl.c

src_unpack() {
cvs_src_unpack
}
src_compile() {
cd "${S}/${HM}"
emake RPM_BUILD_ROOT=1 || die "Sorry! Do can not compile"
}
src_install() {
cd "${S}/${HM}"
emake RPM_BUILD_ROOT=1 DESTDIR="${D}" LDCONFIG="" install || die "Sorry! Do can not install"
}