Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/duma/
Date: Thu, 29 Sep 2016 17:20:49
Message-Id: 1475169638.d5b945cb389b5d51fad09e81a824502cf26f48d3.bircoph@gentoo
1 commit: d5b945cb389b5d51fad09e81a824502cf26f48d3
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 17:20:16 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 17:20:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5b945cb
7
8 dev-util/duma: drop old
9
10 Package-Manager: portage-2.3.1
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 dev-util/duma/duma-2.5.15-r1.ebuild | 94 -------------------------------------
14 1 file changed, 94 deletions(-)
15
16 diff --git a/dev-util/duma/duma-2.5.15-r1.ebuild b/dev-util/duma/duma-2.5.15-r1.ebuild
17 deleted file mode 100644
18 index e295d57..00000000
19 --- a/dev-util/duma/duma-2.5.15-r1.ebuild
20 +++ /dev/null
21 @@ -1,94 +0,0 @@
22 -# Copyright 1999-2010 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=2
27 -inherit eutils flag-o-matic multilib toolchain-funcs versionator
28 -
29 -MY_P=${PN}_$(replace_all_version_separators '_')
30 -
31 -DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library"
32 -HOMEPAGE="http://duma.sourceforge.net"
33 -SRC_URI="mirror://sourceforge/duma/${MY_P}.tar.gz
34 - mirror://gentoo/${P}-GNUmakefile.patch.bz2"
35 -
36 -LICENSE="GPL-2"
37 -SLOT="0"
38 -KEYWORDS="~amd64 ~ppc ~x86"
39 -IUSE="examples"
40 -
41 -RDEPEND="app-shells/bash"
42 -DEPEND="${RDEPEND}"
43 -
44 -S=${WORKDIR}/${MY_P}
45 -
46 -src_prepare() {
47 - epatch "${DISTDIR}"/${P}-GNUmakefile.patch.bz2
48 -}
49 -
50 -src_compile() {
51 - # strip-flags
52 - replace-flags O? O0
53 - append-flags -Wall -Wextra -U_FORTIFY_SOURCE
54 - tc-export AR CC CXX LD RANLIB
55 -
56 - case "${CHOST}" in
57 - *-linux-gnu)
58 - OS=linux;;
59 - *-solaris*)
60 - OS=solaris;;
61 - *-darwin*)
62 - OS=osx;;
63 - *-freebsd*)
64 - OS=freebsd;;
65 - *-netbsd*)
66 - OS=netbsd;;
67 - *-cygwin*)
68 - OS=cygwin;;
69 - **-irix**)
70 - OS=irix;;
71 - esac
72 - export OS="${OS}"
73 - elog "Detected OS is: ${OS}"
74 -
75 - if use amd64 && ! [ -n "${DUMA_ALIGNMENT}" ]; then
76 - export DUMA_ALIGNMENT=16
77 - elog "Exported DUMA_ALIGNMENT=${DUMA_ALIGNMENT} for x86_64,"
78 - fi
79 -
80 - make reconfig || die "make config failed"
81 - # The above must be run first if distcc is enabled, otherwise
82 - # the real build breaks on parallel makes.
83 - emake || die "emake failed"
84 -}
85 -
86 -src_test() {
87 - emake test || die "emake test failed"
88 -
89 - elog "Please, see the output above to verify all tests have passed."
90 - elog "Both static and dynamic confidence tests should say PASSED."
91 -}
92 -
93 -src_install(){
94 - emake prefix="${D}/usr" libdir="${D}/usr/$(get_libdir)" \
95 - docdir="${D}/usr/share/doc/${PF}" install || die "emake install failed"
96 -
97 - dosed "s|LD_PRELOAD=./libduma|LD_PRELOAD=libduma|" /usr/bin/duma \
98 - || die "dosed failed"
99 -
100 - dodoc CHANGELOG TODO GNUmakefile
101 -
102 - if use examples; then
103 - insinto /usr/share/doc/${PF}/examples
104 - doins example[1-6].cpp example_makes/ex6/Makefile || die "doins failed"
105 - fi
106 -}
107 -
108 -pkg_postinst() {
109 - elog "See the GNUmakefile which will be also installed at"
110 - elog "/usr/share/doc/${PF} for more options. You can now export"
111 - elog "varibles to the build system easily, e.g.:"
112 - elog "# export CPPFLAGS=\"-DFLAG\" (or by using append-cppflags)"
113 - elog "# export DUMA_ALIGNMENT=${DUMA_ALIGNMENT} (Default is 16 for x86_64)"
114 - elog "See more information about DUMA_ALIGNMENT from Readme.txt"
115 -}