summaryrefslogtreecommitdiff
path: root/net-libs/libpri
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2017-09-19 10:40:56 +0100
committerTony Vroon <chainsaw@gentoo.org>2017-09-19 10:42:39 +0100
commit5faccaea1a242f29fd22a9e2512fac0214f178e9 (patch)
tree68054ca6b8d855ce58aad8a2772682ea56592466 /net-libs/libpri
parentc9489721841c871ff91f2a779ded5badc5977fac (diff)
downloadgentoo-5faccaea1a242f29fd22a9e2512fac0214f178e9.tar.gz
gentoo-5faccaea1a242f29fd22a9e2512fac0214f178e9.tar.xz
net-libs/libpri: Version bump to 1.6.0
Package-Manager: Portage-2.3.8, Repoman-2.3.1
Diffstat (limited to 'net-libs/libpri')
-rw-r--r--net-libs/libpri/Manifest1
-rw-r--r--net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch53
-rw-r--r--net-libs/libpri/libpri-1.6.0.ebuild34
3 files changed, 88 insertions, 0 deletions
diff --git a/net-libs/libpri/Manifest b/net-libs/libpri/Manifest
index 60313ae8cbc..774c13856db 100644
--- a/net-libs/libpri/Manifest
+++ b/net-libs/libpri/Manifest
@@ -3,3 +3,4 @@ DIST libpri-1.4.13.tar.gz 338432 SHA256 5c17611b7294c83f20fac5dc5cd9930de684a2f8
DIST libpri-1.4.14.tar.gz 338303 SHA256 25def0f3d492e7604c58d81f5c5a3c70f158bbf78b1250a3bda208e994799dd0 SHA512 c702249db62abb694747b56c588aa0e3883f54cba7cc125652df446604f349979e68a6d6b477bdcddd938179f1d1bab0a73044b0eb4c88a615770344ca419cdf WHIRLPOOL 62b5d4480556eea849a54ebd3a8d910ca02f078c5376031cfa388602350b3a514671102e0a6fe568c092b822a8d514fa2012d20db78b0b96a947a1b3a8c42ecd
DIST libpri-1.4.15.tar.gz 338633 SHA256 9af4192137b0364ebc1fb86ecceaf6bb154772d7b8f094a1a7b2f3dcddc032d5 SHA512 2737ad404440a0c809bf0bb0e406565757fe850040911561c2e5e64f4c49b02af69db0d23dac322dda354583bca0ced88becc07017e686a848b69c8f152fb9d4 WHIRLPOOL 4b162d9de627c657bd7d97c7e7b19aa5c74b2497728986d08c46fbfa0582eb0e2c865d5536c78c8eb6e0ec489e5e785a414ca82aa126b4de03ed5095d38783aa
DIST libpri-1.5.0.tar.gz 340683 SHA256 ee224bc4aa65c54546bd09675c3f0b71817ce9e277332bce86989d8dcd556a24 SHA512 194e4b525e77a28665525e43a2d105d542fab242d3d21951574668bf4d14d90adeb4e0b18384eca1628d75a16d89c8b1e6577e30542d77dd5dfd3d6f4d60ed3a WHIRLPOOL 2b8749e8a5f238644cbd3f78b3f23dd50b05036e846678d42387522ec8470ccbb033595628a8498b888f71b2b66be4716d2c47a30f52b126bf7b1233ea417f04
+DIST libpri-1.6.0.tar.gz 340578 SHA256 7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6 SHA512 3eb876477cdd27c88f274e4a2e35a67f660b8d8eed140e56c40769982a58f1cdd4e5be352f8f220dc100eedf1ad09286c578430a52d9abe326440c8cbf517fa5 WHIRLPOOL 79c87b2f5a0b5fd0977aa24ce5370a074f0528cd7e8834643adb084969e25a14bfc81ea4cfde2068c7ba213788a78674e42af33a2b20e80848f69b63560c0e97
diff --git a/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch b/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch
new file mode 100644
index 00000000000..1928e5d871f
--- /dev/null
+++ b/net-libs/libpri/files/libpri-1.6.0-respect-user-flags.patch
@@ -0,0 +1,53 @@
+diff -uNr libpri-1.6.0.ORIG/Makefile libpri-1.6.0/Makefile
+--- libpri-1.6.0.ORIG/Makefile 2017-09-19 10:37:05.176546588 +0100
++++ libpri-1.6.0/Makefile 2017-09-19 10:37:41.029544605 +0100
+@@ -24,10 +24,6 @@
+ # Uncomment if you want libpri not send PROGRESS_INDICATOR w/ALERTING
+ #ALERTING=-DALERTING_NO_PROGRESS
+
+-CC=gcc
+-GREP=grep
+-AWK=awk
+-
+ OSARCH=$(shell uname -s)
+ PROC?=$(shell uname -m)
+
+@@ -68,7 +64,7 @@
+ $(STATIC_OBJS)
+ CFLAGS ?= -g
+ CFLAGS += $(CPPFLAGS)
+-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
+ INSTALL_PREFIX=$(DESTDIR)
+ INSTALL_BASE=/usr
+@@ -108,17 +104,12 @@
+ #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+ #This works for even old (2.96) versions of gcc and provides a small boost either way.
+ #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+-ifeq ($(PROC),sparc64)
+-PROC=ultrasparc
+-LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+-else
+- ifneq ($(CODE_COVERAGE),)
++ifneq ($(CODE_COVERAGE),)
+ LIBPRI_OPT=
+ COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
+ COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+- else
+- LIBPRI_OPT=-O2
+- endif
++else
++ LIBPRI_OPT=
+ endif
+
+ ifeq ($(CPUARCH),i686)
+@@ -197,7 +188,7 @@
+ ranlib $(STATIC_LIBRARY)
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+- $(CC) $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
++ $(CC) $(SOFLAGS) $(LDFLAGS) -o $@ $(DYNAMIC_OBJS)
+ $(LDCONFIG) $(LDCONFIG_FLAGS) .
+ ln -sf $(DYNAMIC_LIBRARY) libpri.so
+
diff --git a/net-libs/libpri/libpri-1.6.0.ebuild b/net-libs/libpri/libpri-1.6.0.ebuild
new file mode 100644
index 00000000000..0d4713219a9
--- /dev/null
+++ b/net-libs/libpri/libpri-1.6.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+MY_P="${P/_/-}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Primary Rate ISDN (PRI) library"
+HOMEPAGE="http://www.asterisk.org/"
+SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.13-multilib.patch"
+ "${FILESDIR}/${PN}-1.6.0-respect-user-flags.patch"
+ "${FILESDIR}/${PN}-1.4.13-no-static-lib.patch"
+)
+
+src_compile() {
+ tc-export CC
+ default
+}
+src_install() {
+ emake INSTALL_PREFIX="${D}" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc ChangeLog README TODO
+}