Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/openr2/, net-misc/openr2/files/
Date: Wed, 03 Jan 2018 18:39:18
Message-Id: 1515004667.91a00775903ca1bb19aca687dc2234cd33a046f6.soap@gentoo
1 commit: 91a00775903ca1bb19aca687dc2234cd33a046f6
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 3 18:37:47 2018 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 3 18:37:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91a00775
7
8 net-misc/openr2: Port to EAPI 6
9
10 Closes: https://bugs.gentoo.org/543402
11 Closes: https://bugs.gentoo.org/581018
12 Package-Manager: Portage-2.3.19, Repoman-2.3.6
13
14 .../openr2/files/1.3.0-respect-user-cflags.patch | 15 -----------
15 .../files/openr2-1.3.0-fix-build-system.patch | 30 ++++++++++++++++++++++
16 net-misc/openr2/openr2-1.3.0.ebuild | 21 ++++++++++-----
17 3 files changed, 45 insertions(+), 21 deletions(-)
18
19 diff --git a/net-misc/openr2/files/1.3.0-respect-user-cflags.patch b/net-misc/openr2/files/1.3.0-respect-user-cflags.patch
20 deleted file mode 100644
21 index 7a8f23f3f29..00000000000
22 --- a/net-misc/openr2/files/1.3.0-respect-user-cflags.patch
23 +++ /dev/null
24 @@ -1,15 +0,0 @@
25 -diff -uNr openr2-1.3.0.ORIG//configure.in openr2-1.3.0/configure.in
26 ---- openr2-1.3.0.ORIG//configure.in 2010-05-13 11:59:14.000000000 +0100
27 -+++ openr2-1.3.0/configure.in 2010-05-13 11:59:35.000000000 +0100
28 -@@ -25,11 +25,6 @@
29 - AC_CONFIG_HEADERS(config.h)
30 - AM_INIT_AUTOMAKE
31 -
32 --# let's default to compile with debugging information
33 --# most users will not even care about it
34 --CFLAGS='-ggdb3 -O0'
35 --CXXFLAGS='-ggdb3 -O0'
36 --
37 - AC_PROG_CC
38 - AC_PROG_LIBTOOL
39 - AC_LANG([C])
40
41 diff --git a/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch b/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch
42 new file mode 100644
43 index 00000000000..59918934d56
44 --- /dev/null
45 +++ b/net-misc/openr2/files/openr2-1.3.0-fix-build-system.patch
46 @@ -0,0 +1,30 @@
47 +--- a/configure.in
48 ++++ b/configure.in
49 +@@ -25,11 +25,6 @@
50 + AC_CONFIG_HEADERS(config.h)
51 + AM_INIT_AUTOMAKE
52 +
53 +-# let's default to compile with debugging information
54 +-# most users will not even care about it
55 +-CFLAGS='-ggdb3 -O0'
56 +-CXXFLAGS='-ggdb3 -O0'
57 +-
58 + AC_PROG_CC
59 + AC_PROG_LIBTOOL
60 + AC_LANG([C])
61 +diff -ur ORIG/src/Makefile.am MOD/src/Makefile.am
62 +--- a/src/Makefile.am
63 ++++ b/src/Makefile.am
64 +@@ -1,10 +1,10 @@
65 +-AM_CFLAGS = -std=c99 -pedantic -Wall -Werror -Wwrite-strings -Wunused-variable -Wstrict-prototypes -Wmissing-prototypes
66 ++AM_CFLAGS = -std=c99 -pedantic -Werror -Wwrite-strings -Wunused-variable -Wstrict-prototypes -Wmissing-prototypes
67 + if WANT_OR2_TRACE_STACKS
68 + AM_CFLAGS += -DOR2_TRACE_STACKS
69 + endif
70 +
71 + if HAVE_SVNVERSION
72 +-AM_CFLAGS += -DREVISION=\"$(shell svnversion -n .)\"
73 ++AM_CFLAGS += -DREVISION=\"0\"
74 + endif
75 +
76 + lib_LTLIBRARIES = libopenr2.la
77
78 diff --git a/net-misc/openr2/openr2-1.3.0.ebuild b/net-misc/openr2/openr2-1.3.0.ebuild
79 index d00d1438946..3e45c492124 100644
80 --- a/net-misc/openr2/openr2-1.3.0.ebuild
81 +++ b/net-misc/openr2/openr2-1.3.0.ebuild
82 @@ -1,8 +1,9 @@
83 -# Copyright 1999-2014 Gentoo Foundation
84 +# Copyright 1999-2018 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86
87 -EAPI=3
88 -inherit autotools base
89 +EAPI=6
90 +
91 +inherit autotools
92
93 DESCRIPTION="An open implementation of the MFC/R2 telephony signaling protocol"
94 HOMEPAGE="http://libopenr2.org/"
95 @@ -14,13 +15,21 @@ KEYWORDS="~amd64"
96 IUSE=""
97
98 RDEPEND="net-misc/dahdi"
99 -PATCHES=( "${FILESDIR}/${PV}-respect-user-cflags.patch" )
100 +DEPEND="${RDEPEND}"
101 +
102 +PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
103
104 src_prepare() {
105 - base_src_prepare
106 + default
107 + mv configure.{in,ac} || die
108 eautoreconf
109 }
110
111 +src_configure() {
112 + econf --disable-static
113 +}
114 +
115 src_install() {
116 - emake DESTDIR="${D}" install || die
117 + default
118 + find "${D}" -name '*.la' -delete || die
119 }