Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatmem/, dev-ada/gnatmem/files/
Date: Thu, 28 Sep 2017 07:01:25
Message-Id: 1506582061.391c0b8fcce0821e97eb16655c4833bf2c74921d.tupone@gentoo
1 commit: 391c0b8fcce0821e97eb16655c4833bf2c74921d
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 28 07:01:01 2017 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 28 07:01:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=391c0b8f
7
8 dev-ada/gnatmem: Adding dev-ada/gnatmem-2017
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 dev-ada/gnatmem/Manifest | 1 +
13 dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch | 12 ++++++++----
14 ...m-2016-gentoo.patch => gnatmem-2017-gentoo.patch} | 12 ++++++++----
15 dev-ada/gnatmem/gnatmem-2016.ebuild | 15 ++-------------
16 .../{gnatmem-2016.ebuild => gnatmem-2017.ebuild} | 17 +++--------------
17 dev-ada/gnatmem/metadata.xml | 20 ++++++++++++++++----
18 6 files changed, 38 insertions(+), 39 deletions(-)
19
20 diff --git a/dev-ada/gnatmem/Manifest b/dev-ada/gnatmem/Manifest
21 index e30fd588fc2..2669213c415 100644
22 --- a/dev-ada/gnatmem/Manifest
23 +++ b/dev-ada/gnatmem/Manifest
24 @@ -1 +1,2 @@
25 DIST gnatmem-gpl-2016-src.tar.gz 80104 SHA256 bd39c7b18e4f52fdd029b999f7e1af52d01c975063c28ae1ef6875e4fc5e224f SHA512 bc711af9eda55e89a22fee9dbe506a60fbdd718a9f47141a8d13ad4b97c4520c3988e3a55b6c85bb53098e542f655de9572aeefc99d88c41a2645d9f01b2828b WHIRLPOOL 8aee794c18efcbdbb50a4d58b9f247de30dea8d5b0a41034b1e20ad7786eefab5dfd14bf99994340a993d67989eab939ba78097d46933d841686d1bbc68fce0b
26 +DIST gnatmem-gpl-2017-src.tar.gz 80106 SHA256 11a27a66030b1a074875ccdaa0ffb06e86d687e1904ab0f5922e08bb488e5e7c SHA512 52ba2cfb24314f481ec07e351ff6d8883753dcfe5d0489a78536bf0b841d931055be02271a5d93b2ec15c52fd775d4b177a17de52f9472cc8f352bf044b28897 WHIRLPOOL 6599c8b77e89d7bc1f6b1eea459009aa2626173a7ebe47b65ead3ba76a109699ff8d0f27cfe1cea9fb0a8cb90cf9a897f70cf8af4647f21feec87b422e544c1b
27
28 diff --git a/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch b/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch
29 index 357f723c743..69530dd24b2 100644
30 --- a/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch
31 +++ b/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch
32 @@ -1,9 +1,13 @@
33 --- 1/configure.in.old 2016-12-08 20:57:53.942004080 +0100
34 +++ 1/configure.in 2016-12-08 21:00:10.393677257 +0100
35 -@@ -6,19 +6,14 @@
36 - if test ${GNATBIND} = "no"; then
37 - AC_MSG_ERROR(Ada compiler needed,1)
38 - fi
39 +@@ -2,23 +2,14 @@
40 + AC_INIT(gnatmem.gpr.in)
41 + AC_CANONICAL_SYSTEM
42 + AC_PROG_CC(gcc)
43 +-AC_CHECK_TOOL(GNATBIND,gnatbind,"no")
44 +-if test ${GNATBIND} = "no"; then
45 +- AC_MSG_ERROR(Ada compiler needed,1)
46 +-fi
47 +AC_CONFIG_HEADERS(config.h:config.in)
48 +AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
49 AC_ARG_WITH(binutils-buildtree,
50
51 diff --git a/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch b/dev-ada/gnatmem/files/gnatmem-2017-gentoo.patch
52 similarity index 93%
53 copy from dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch
54 copy to dev-ada/gnatmem/files/gnatmem-2017-gentoo.patch
55 index 357f723c743..69530dd24b2 100644
56 --- a/dev-ada/gnatmem/files/gnatmem-2016-gentoo.patch
57 +++ b/dev-ada/gnatmem/files/gnatmem-2017-gentoo.patch
58 @@ -1,9 +1,13 @@
59 --- 1/configure.in.old 2016-12-08 20:57:53.942004080 +0100
60 +++ 1/configure.in 2016-12-08 21:00:10.393677257 +0100
61 -@@ -6,19 +6,14 @@
62 - if test ${GNATBIND} = "no"; then
63 - AC_MSG_ERROR(Ada compiler needed,1)
64 - fi
65 +@@ -2,23 +2,14 @@
66 + AC_INIT(gnatmem.gpr.in)
67 + AC_CANONICAL_SYSTEM
68 + AC_PROG_CC(gcc)
69 +-AC_CHECK_TOOL(GNATBIND,gnatbind,"no")
70 +-if test ${GNATBIND} = "no"; then
71 +- AC_MSG_ERROR(Ada compiler needed,1)
72 +-fi
73 +AC_CONFIG_HEADERS(config.h:config.in)
74 +AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])
75 AC_ARG_WITH(binutils-buildtree,
76
77 diff --git a/dev-ada/gnatmem/gnatmem-2016.ebuild b/dev-ada/gnatmem/gnatmem-2016.ebuild
78 index 6e1f3b1de96..5875024baef 100644
79 --- a/dev-ada/gnatmem/gnatmem-2016.ebuild
80 +++ b/dev-ada/gnatmem/gnatmem-2016.ebuild
81 @@ -14,26 +14,15 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/573995c8c7a447658e0affa2 -> ${MYP}.t
82 LICENSE="GPL-3"
83 SLOT="0"
84 KEYWORDS="~amd64"
85 -IUSE=""
86 +IUSE="gnat_2016 gnat_2017"
87
88 RDEPEND=""
89 -DEPEND="dev-ada/gprbuild"
90 +DEPEND="dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
91
92 S="${WORKDIR}"/${MYP}
93
94 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
95
96 -pkg_setup() {
97 - GCC=${ADA:-$(tc-getCC)}
98 - export GNATBIND="${GCC/gcc/gnatbind}"
99 - if [[ -z "$(type ${GNATBIND} 2>/dev/null)" ]] ; then
100 - eerror "You need a gcc compiler that provides the Ada Compiler:"
101 - eerror "1) use gcc-config to select the right compiler or"
102 - eerror "2) set ADA=gcc-4.9.4 in make.conf"
103 - die "ada compiler not available"
104 - fi
105 -}
106 -
107 src_prepare() {
108 default
109 mv configure.in configure.ac
110
111 diff --git a/dev-ada/gnatmem/gnatmem-2016.ebuild b/dev-ada/gnatmem/gnatmem-2017.ebuild
112 similarity index 57%
113 copy from dev-ada/gnatmem/gnatmem-2016.ebuild
114 copy to dev-ada/gnatmem/gnatmem-2017.ebuild
115 index 6e1f3b1de96..ee97065ed89 100644
116 --- a/dev-ada/gnatmem/gnatmem-2016.ebuild
117 +++ b/dev-ada/gnatmem/gnatmem-2017.ebuild
118 @@ -9,31 +9,20 @@ MYP=${PN}-gpl-${PV}-src
119
120 DESCRIPTION="Monitors dynamic allocation and deallocation activity in a program"
121 HOMEPAGE="http://libre.adacore.com/"
122 -SRC_URI="http://mirrors.cdn.adacore.com/art/573995c8c7a447658e0affa2 -> ${MYP}.tar.gz"
123 +SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed033 -> ${MYP}.tar.gz"
124
125 LICENSE="GPL-3"
126 SLOT="0"
127 KEYWORDS="~amd64"
128 -IUSE=""
129 +IUSE="gnat_2016 gnat_2017"
130
131 RDEPEND=""
132 -DEPEND="dev-ada/gprbuild"
133 +DEPEND="dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
134
135 S="${WORKDIR}"/${MYP}
136
137 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
138
139 -pkg_setup() {
140 - GCC=${ADA:-$(tc-getCC)}
141 - export GNATBIND="${GCC/gcc/gnatbind}"
142 - if [[ -z "$(type ${GNATBIND} 2>/dev/null)" ]] ; then
143 - eerror "You need a gcc compiler that provides the Ada Compiler:"
144 - eerror "1) use gcc-config to select the right compiler or"
145 - eerror "2) set ADA=gcc-4.9.4 in make.conf"
146 - die "ada compiler not available"
147 - fi
148 -}
149 -
150 src_prepare() {
151 default
152 mv configure.in configure.ac
153
154 diff --git a/dev-ada/gnatmem/metadata.xml b/dev-ada/gnatmem/metadata.xml
155 index 4dacd9de192..0119f73e16b 100644
156 --- a/dev-ada/gnatmem/metadata.xml
157 +++ b/dev-ada/gnatmem/metadata.xml
158 @@ -5,11 +5,23 @@
159 <email>tupone@g.o</email>
160 <name>Tupone Alfredo</name>
161 </maintainer>
162 + <use>
163 + <flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
164 + <flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
165 + </use>
166 <longdescription lang="en">
167 - The gnatmem utility monitors dynamic allocation and deallocation activity in a program, and displays information about incorrect deallocations and possible sources of memory leaks. It provides three type of information:
168 + The gnatmem utility monitors dynamic allocation and deallocation
169 + activity in a program, and displays information about incorrect
170 + deallocations and possible sources of memory leaks. It provides three
171 + type of information:
172
173 - General information concerning memory management, such as the total number of allocations and deallocations, the amount of allocated memory and the high water mark, i.e. the largest amount of allocated memory in the course of program execution.
174 - Backtraces for all incorrect deallocations, that is to say deallocations which do not correspond to a valid allocation.
175 - Information on each allocation that is potentially the origin of a memory leak.
176 + General information concerning memory management, such as the total
177 + number of allocations and deallocations, the amount of allocated memory
178 + and the high water mark, i.e. the largest amount of allocated memory in
179 + the course of program execution.
180 + Backtraces for all incorrect deallocations, that is to say
181 + deallocations which do not correspond to a valid allocation.
182 + Information on each allocation that is potentially the origin of a
183 + memory leak.
184 </longdescription>
185 </pkgmetadata>