summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libpri/libpri-1.2.5.ebuild')
-rw-r--r--net-libs/libpri/libpri-1.2.5.ebuild30
1 files changed, 13 insertions, 17 deletions
diff --git a/net-libs/libpri/libpri-1.2.5.ebuild b/net-libs/libpri/libpri-1.2.5.ebuild
index b631d458ae31..d7b01ea5939a 100644
--- a/net-libs/libpri/libpri-1.2.5.ebuild
+++ b/net-libs/libpri/libpri-1.2.5.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/libpri-1.2.5.ebuild,v 1.7 2009/03/19 13:07:35 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/libpri-1.2.5.ebuild,v 1.8 2009/05/17 22:22:58 volkmar Exp $
+
+EAPI="2"
inherit eutils
@@ -12,25 +14,22 @@ BRI_VERSION="0.3.0-PRE-1y-h"
DESCRIPTION="Primary Rate ISDN (PRI) library"
HOMEPAGE="http://www.asterisk.org/"
-SRC_URI="http://ftp.digium.com/pub/libpri/releases/${MY_P}.tar.gz
+SRC_URI="http://downloads.digium.com/pub/libpri/releases/${MY_P}.tar.gz
bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
# bri? ( http://www.netdomination.org/pub/asterisk/libpri-${PV}-bristuff-${BRI_VERSION}.diff.gz )"
-S="${WORKDIR}/${MY_P}"
+S=${WORKDIR}/${MY_P}
-S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}"
+S_BRI=${WORKDIR}/bristuff-${BRI_VERSION}
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc sparc x86"
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
- epatch "${FILESDIR}/${PN}-1.2.5-gentoo.diff"
- epatch "${FILESDIR}/${P}-multilib.patch"
- epatch "${FILESDIR}/${P}-gcc42.patch"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.2.5-gentoo.diff
+ epatch "${FILESDIR}"/${P}-multilib.patch
+ epatch "${FILESDIR}"/${P}-gcc42.patch
if use bri; then
einfo "Patching libpri w/ BRI stuff (${BRI_VERSION})"
@@ -45,12 +44,9 @@ src_unpack() {
fi
}
-src_compile() {
- emake || die
-}
-
src_install() {
- make INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install \
+ || die "emake install failed"
- dodoc ChangeLog README TODO
+ dodoc ChangeLog README TODO || die "dodoc failed"
}