diff options
Diffstat (limited to 'net-libs/canlock/canlock-2b.ebuild')
-rw-r--r-- | net-libs/canlock/canlock-2b.ebuild | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/net-libs/canlock/canlock-2b.ebuild b/net-libs/canlock/canlock-2b.ebuild index 9d58b0a2dc63..d54ed58f3701 100644 --- a/net-libs/canlock/canlock-2b.ebuild +++ b/net-libs/canlock/canlock-2b.ebuild @@ -1,43 +1,39 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=7 -inherit eutils multilib toolchain-funcs +inherit toolchain-funcs MY_P="${P/-/_}" + DESCRIPTION="A library for creating and verifying Usenet cancel locks" HOMEPAGE="https://packages.qa.debian.org/c/canlock.html" -SRC_URI="mirror://debian/pool/main/c/${PN}/${MY_P}.orig.tar.gz +SRC_URI=" + mirror://debian/pool/main/c/${PN}/${MY_P}.orig.tar.gz mirror://debian/pool/main/c/${PN}/${MY_P}-6.diff.gz" LICENSE="BSD MIT" SLOT="0" KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" -IUSE="static-libs" - -S=${WORKDIR}/${P/-/} -src_prepare() { - epatch "${WORKDIR}"/${MY_P}-6.diff \ - "${FILESDIR}"/${P}-make.patch -} +S="${WORKDIR}/${P/-/}" -src_compile() { - local targets="shared" - if use static-libs || use test ; then - targets+=" static" - fi +PATCHES=( + "${WORKDIR}"/${MY_P}-6.diff + "${FILESDIR}"/${P}-make.patch +) - emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" ${targets} +src_configure() { + tc-export CC } src_install() { - use static-libs && dolib.a src/libcanlock.a dolib.so src/libcanlock.so.2.0.0 dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so.2 dosym libcanlock.so.2.0.0 /usr/$(get_libdir)/libcanlock.so - insinto /usr/include - doins include/canlock.h + + doheader include/canlock.h + dodoc CHANGES README doc/HOWTO } |