Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/duma: duma-2.5.15.ebuild ChangeLog
Date: Sat, 01 Aug 2009 20:00:25
Message-Id: E1MXKkh-0007Tr-BG@stork.gentoo.org
1 nerdboy 09/08/01 20:00:23
2
3 Modified: ChangeLog
4 Added: duma-2.5.15.ebuild
5 Log:
6 Updated to latest version using new ebuild (closes bug #275011).
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.10 dev-util/duma/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/duma/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/duma/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/duma/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/duma/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 1 Apr 2009 00:47:27 -0000 1.9
23 +++ ChangeLog 1 Aug 2009 20:00:23 -0000 1.10
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-util/duma
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/ChangeLog,v 1.9 2009/04/01 00:47:27 nerdboy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/duma/ChangeLog,v 1.10 2009/08/01 20:00:23 nerdboy Exp $
29 +
30 +*duma-2.5.15 (01 Aug 2009)
31 +
32 + 01 Aug 2009; Steve Arnold <nerdboy@g.o> +duma-2.5.15.ebuild,
33 + +files/duma-2.5.15-GNUmakefile.patch:
34 + Updated to latest version using ebuild and patch contributed by
35 + ssuominen with one or two minor enhancements. Closes bug #275011.
36
37 *duma-2.5.14-r1 (01 Apr 2009)
38
39
40
41
42 1.1 dev-util/duma/duma-2.5.15.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/duma/duma-2.5.15.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/duma/duma-2.5.15.ebuild?rev=1.1&content-type=text/plain
46
47 Index: duma-2.5.15.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/duma/duma-2.5.15.ebuild,v 1.1 2009/08/01 20:00:23 nerdboy Exp $
52
53 EAPI=2
54 inherit eutils flag-o-matic multilib toolchain-funcs versionator
55
56 MY_P=${PN}_$(replace_all_version_separators '_')
57
58 DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library"
59 HOMEPAGE="http://duma.sourceforge.net"
60 SRC_URI="mirror://sourceforge/duma/${MY_P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86"
65 IUSE="examples"
66
67 RDEPEND="app-shells/bash"
68 DEPEND="${RDEPEND}"
69
70 S=${WORKDIR}/${MY_P}
71
72 src_prepare() {
73 epatch "${FILESDIR}"/${P}-GNUmakefile.patch
74 }
75
76 src_compile() {
77 # strip-flags
78 replace-flags O? O0
79 append-flags -Wall -Wextra -U_FORTIFY_SOURCE
80 tc-export AR CC CXX LD RANLIB
81
82 case "${CHOST}" in
83 *-linux-gnu)
84 OS=linux;;
85 *-solaris*)
86 OS=solaris;;
87 *-darwin*)
88 OS=osx;;
89 *-freebsd*)
90 OS=freebsd;;
91 *-netbsd*)
92 OS=netbsd;;
93 *-cygwin*)
94 OS=cygwin;;
95 **-irix**)
96 OS=irix;;
97 esac
98 export OS="${OS}"
99 elog "Detected OS is: ${OS}"
100
101 if use amd64 && ! [ -n "${DUMA_ALIGNMENT}" ]; then
102 export DUMA_ALIGNMENT=16
103 elog "Exported DUMA_ALIGNMENT=${DUMA_ALIGNMENT} for x86_64,"
104 fi
105
106 make reconfig || die "make config failed"
107 # The above must be run first if distcc is enabled, otherwise
108 # the real build breaks on parallel makes.
109 emake || die "emake failed"
110 }
111
112 src_test() {
113 emake test || die "emake test failed"
114
115 elog "Please, see the output above to verify all tests have passed."
116 elog "Both static and dynamic confidence tests should say PASSED."
117 }
118
119 src_install(){
120 emake prefix="${D}/usr" libdir="${D}/usr/$(get_libdir)" \
121 docdir="${D}/usr/share/doc/${PF}" install || die "emake install failed"
122
123 dodoc CHANGELOG TODO GNUmakefile
124
125 if use examples; then
126 insinto /usr/share/doc/${PF}/examples
127 doins example[1-6].cpp example_makes/ex6/Makefile || die "doins failed"
128 fi
129 }
130
131 pkg_postinst() {
132 elog "See the GNUmakefile which will be also installed at"
133 elog "/usr/share/doc/${PF} for more options. You can now export"
134 elog "varibles to the build system easily, e.g.:"
135 elog "# export CPPFLAGS=\"-DFLAG\" (or by using append-cppflags)"
136 elog "# export DUMA_ALIGNMENT=${DUMA_ALIGNMENT} (Default is 16 for x86_64)"
137 elog "See more information about DUMA_ALIGNMENT from Readme.txt"
138 }