-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="2"
+EAPI=6
DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
-HOMEPAGE="http://www.asterisk.org/"
-SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+HOMEPAGE="https://www.asterisk.org/"
+SRC_URI="https://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
IUSE="debug snomhack"
src_prepare() {
+ default
if ! use debug; then
sed -i -e "s:-DDEBUG_SUPPORT -DDEBUG_DEFAULT ::" src/Makefile.in \
|| die "sed failed"
$(use_enable debug extreme-debug) \
$(use_enable snomhack)
}
-
-src_install () {
- emake DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
-}
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
-inherit autotools eutils
+inherit autotools
DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
-HOMEPAGE="http://www.asterisk.org/"
-SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
+HOMEPAGE="https://www.asterisk.org/"
+SRC_URI="https://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug snomhack"
+PATCHES=(
+ "${FILESDIR}/${PV}-debug.patch"
+ "${FILESDIR}/${PV}-memset.patch"
+ "${FILESDIR}/${PV}-sandbox.patch"
+)
+
src_prepare() {
- epatch "${FILESDIR}/${PV}-debug.patch"
- epatch "${FILESDIR}/${PV}-memset.patch"
- epatch "${FILESDIR}/${PV}-sandbox.patch"
+ default
eautoreconf
}
$(use_enable debug extreme-debug) \
$(use_enable snomhack)
}
-
-src_install () {
- default
- dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
-}