summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smitdane@gmail.com>2010-08-15 01:02:27 -0400
committerDane Smith <smitdane@gmail.com>2010-08-15 01:02:27 -0400
commitb8a6c9cb5ee5bcea2460b256673fa576d11c9598 (patch)
tree971d35812bc9c2318c0e26e602663642c93da894
parentNew ebuild for kudzu (diff)
downloadsmithdanea-b8a6c9cb5ee5bcea2460b256673fa576d11c9598.tar.gz
smithdanea-b8a6c9cb5ee5bcea2460b256673fa576d11c9598.tar.bz2
smithdanea-b8a6c9cb5ee5bcea2460b256673fa576d11c9598.zip
Updated ebuild for mpatrol
-rw-r--r--dev-libs/mpatrol/ChangeLog15
-rw-r--r--dev-libs/mpatrol/Manifest10
-rw-r--r--dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch54
-rw-r--r--dev-libs/mpatrol/files/mpatrol-1.4.8-soname.patch29
-rw-r--r--dev-libs/mpatrol/files/mpatrol-textrel-fix.patch12
-rw-r--r--dev-libs/mpatrol/metadata.xml9
-rw-r--r--dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild92
-rw-r--r--dev-libs/mpatrol/mpatrol-1.4.8-r2.ebuild111
-rw-r--r--dev-libs/mpatrol/mpatrol-1.4.8.ebuild85
9 files changed, 417 insertions, 0 deletions
diff --git a/dev-libs/mpatrol/ChangeLog b/dev-libs/mpatrol/ChangeLog
new file mode 100644
index 0000000..e03ae38
--- /dev/null
+++ b/dev-libs/mpatrol/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for dev-libs/mpatrol
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*mpatrol-1.4.8-r2 (15 Aug 2010)
+*mpatrol-1.4.8-r1 (15 Aug 2010)
+*mpatrol-1.4.8 (15 Aug 2010)
+
+ 15 Aug 2010; Dane Smith (c1pher) <smithdanea@gmail.com>
+ +mpatrol-1.4.8.ebuild, +mpatrol-1.4.8-r1.ebuild, +mpatrol-1.4.8-r2.ebuild,
+ +files/mpatrol-1.4.8-gcc44-glibc210.patch,
+ +files/mpatrol-1.4.8-soname.patch, +files/mpatrol-textrel-fix.patch,
+ +metadata.xml:
+ New ebuild for mpatrol-1.4.8-r2 fixes LDFLAGS wrt bug 332731
+
diff --git a/dev-libs/mpatrol/Manifest b/dev-libs/mpatrol/Manifest
new file mode 100644
index 0000000..1810466
--- /dev/null
+++ b/dev-libs/mpatrol/Manifest
@@ -0,0 +1,10 @@
+AUX mpatrol-1.4.8-gcc44-glibc210.patch 2213 RMD160 394294d0674603dff0136348aa5edb2f135ff781 SHA1 f9d8b7d8ba4aec4c0cc6ce706f76845442e87852 SHA256 ea72642d04a4b07f4c3a3b5605ca3258f1ded8fd4ddcf72e61f7f6dc12bf7c6c
+AUX mpatrol-1.4.8-soname.patch 1097 RMD160 d0d767d24c51b8804691b416ac47d59bee8d4c2f SHA1 8878f286ac66f6fd3e757ba9fe627bd34a6c3f3a SHA256 f7e63160f3df250151bb9d8de13e252394a02beb89b9c905a0034907061498b2
+AUX mpatrol-textrel-fix.patch 529 RMD160 e0ef6ab28b24c2261a88e682d1f59ed0c681a328 SHA1 e6b65eb79fc334cb1f82214ed3c0000890e1e876 SHA256 23566db6fe6e035870db35e7311f42c2a367a50ec1a24b044a465fa7fe81f30b
+DIST mpatrol_1.4.8.tar.gz 4413896 RMD160 5caa6a31f1a53578f28ff597e62c010d68320bc0 SHA1 26b3ef60a718f80486f10f74468cb33b5fcf75dd SHA256 2a58512cb355bf46b08e85683a2ad872bdd4cad5f7a40c87117c7f5badd9f232
+EBUILD mpatrol-1.4.8-r1.ebuild 2479 RMD160 6fd21c32f8d6448d982cd9eb28c5c679800e414b SHA1 e434cf48950e9e623596773aaceb9f5dd39d4d78 SHA256 f96deee22a575720d5927f16c7add66829c630cbc979e834b0d51829f2110683
+EBUILD mpatrol-1.4.8-r2.ebuild 2867 RMD160 418fdff00ba1eebbfcbd18af4e3542a2204a9445 SHA1 847c3acbc3d665091121da8fe7b948c335f33d1b SHA256 f0c1c2e8c4cedcf2687926642f040abf5cf9a16f6a0d5ddbeef6afd55e004ec3
+EBUILD mpatrol-1.4.8.ebuild 2252 RMD160 9dc89eb4359f0aa770c941786737a1df1ec33f89 SHA1 bb61b433af5717da2cb1acd883413bad905b76e0 SHA256 e61b5c80b22a6d08a6b24ce38a2f11f75fb5fdcea9d1b2c1122be85a765bcdfa
+MISC ChangeLog 543 RMD160 1085bdc32dab36fd9d9039301f2e11f4b61f4177 SHA1 d7963aabc53afb07d1f588b8891f3972e4bbee93 SHA256 2095a77971ba164859e252ac1161f6cb6a921ae5b31d21c1e521a87f53e829f3
+MISC ChangeLog.new~ 448 RMD160 a7cca4ff52ad04f80e6a8fe12652af62f4692588 SHA1 705841bb97193bc0fdad6b7b92e92af1e59cd725 SHA256 170fd93f6528c3ca81e5090f22ae385e3981d8dc0ae462b22fa815e9968c97b9
+MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
diff --git a/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch b/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch
new file mode 100644
index 0000000..8fe9315
--- /dev/null
+++ b/dev-libs/mpatrol/files/mpatrol-1.4.8-gcc44-glibc210.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/272505
+
+--- mpatrol-orig/src/mptrace.c
++++ mpatrol/src/mptrace.c
+@@ -268,27 +268,27 @@
+ static XtResource resources[] =
+ {
+ {"alloc", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &alcol, XmRString, (XtPointer) "black"},
++ (long) &alcol, XmRString, (XtPointer) "black"},
+ {"base", "Base", XmRInt, sizeof(void *),
+- (Cardinal) &addrbase, XmRImmediate, (XtPointer) NULL},
++ (long) &addrbase, XmRImmediate, (XtPointer) NULL},
+ {"delay", "Delay", XmRInt, sizeof(unsigned long),
+- (Cardinal) &delay, XmRImmediate, (XtPointer) 0},
++ (long) &delay, XmRImmediate, (XtPointer) 0},
+ {"free", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &frcol, XmRString, (XtPointer) "white"},
++ (long) &frcol, XmRString, (XtPointer) "white"},
+ {"height", XmCHeight, XmRShort, sizeof(Dimension),
+- (Cardinal) &height, XmRImmediate, (XtPointer) 512},
++ (long) &height, XmRImmediate, (XtPointer) 512},
+ {"internal", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &incol, XmRString, (XtPointer) "red"},
++ (long) &incol, XmRString, (XtPointer) "red"},
+ {"space", "Space", XmRInt, sizeof(unsigned long),
+- (Cardinal) &addrspace, XmRImmediate, (XtPointer) 4},
++ (long) &addrspace, XmRImmediate, (XtPointer) 4},
+ {"unalloc", XmCColor, XmRPixel, sizeof(Pixel),
+- (Cardinal) &uncol, XmRString, (XtPointer) "blue"},
++ (long) &uncol, XmRString, (XtPointer) "blue"},
+ {"view-height", XmCHeight, XmRShort, sizeof(Dimension),
+- (Cardinal) &vheight, XmRImmediate, (XtPointer) 256},
++ (long) &vheight, XmRImmediate, (XtPointer) 256},
+ {"view-width", XmCWidth, XmRShort, sizeof(Dimension),
+- (Cardinal) &vwidth, XmRImmediate, (XtPointer) 256},
++ (long) &vwidth, XmRImmediate, (XtPointer) 256},
+ {"width", XmCWidth, XmRShort, sizeof(Dimension),
+- (Cardinal) &width, XmRImmediate, (XtPointer) 512}
++ (long) &width, XmRImmediate, (XtPointer) 512}
+ };
+
+
+--- mpatrol-orig/tools/dmalloc.c
++++ mpatrol/tools/dmalloc.c
+@@ -395,7 +395,7 @@
+ char *
+ bytestring(char *b, size_t s, char *p, size_t l)
+ {
+- char *t;
++ const char *t;
+ size_t i, n;
+
+ for (i = n = 0; (i < s) && (i < l); i++)
diff --git a/dev-libs/mpatrol/files/mpatrol-1.4.8-soname.patch b/dev-libs/mpatrol/files/mpatrol-1.4.8-soname.patch
new file mode 100644
index 0000000..a2f8210
--- /dev/null
+++ b/dev-libs/mpatrol/files/mpatrol-1.4.8-soname.patch
@@ -0,0 +1,29 @@
+--- build/unix/Makefile 2007-04-30 09:55:46.000000000 -0700
++++ build/unix/Makefile 2007-04-30 09:57:32.000000000 -0700
+@@ -124,7 +124,7 @@
+ $(AR) cr $@ $(ARCHIVE_MPTOBJS)
+
+ $(SHARED_MPATROL).$(VERSION).$(REVISION): $(SHARED_MPTOBJS)
+- $(LD) $(LDFLAGS) -o $@ $(SHARED_MPTOBJS)
++ $(LD) $(LDFLAGS) -o $@ $(SHARED_MPTOBJS) -Wl,--soname=$(SHARED_MPATROL).$(VERSION)
+
+ $(SHARED_MPATROL): $(SHARED_MPATROL).$(VERSION).$(REVISION)
+ @ ln -f -s $< $@
+@@ -139,7 +139,7 @@
+ $(AR) cr $@ $(ARCHTS_MPTOBJS)
+
+ $(SHARTS_MPATROL).$(VERSION).$(REVISION): $(SHARTS_MPTOBJS)
+- $(LD) $(LDFLAGS) -o $@ $(SHARTS_MPTOBJS)
++ $(LD) $(LDFLAGS) -o $@ $(SHARTS_MPTOBJS) -Wl,--soname=$(SHARTS_MPATROL).$(VERSION)
+
+ $(SHARTS_MPATROL): $(SHARTS_MPATROL).$(VERSION).$(REVISION)
+ @ ln -f -s $< $@
+@@ -154,7 +154,7 @@
+ $(AR) cr $@ $(ARCHIVE_MPAOBJS)
+
+ $(SHARED_MPALLOC).$(VERSION).$(REVISION): $(SHARED_MPAOBJS)
+- $(LD) $(LDFLAGS) -o $@ $(SHARED_MPAOBJS)
++ $(LD) $(LDFLAGS) -o $@ $(SHARED_MPAOBJS) -Wl,--soname=$(SHARED_MPALLOC).$(VERSION)
+
+ $(SHARED_MPALLOC): $(SHARED_MPALLOC).$(VERSION).$(REVISION)
+ @ ln -f -s $< $@
diff --git a/dev-libs/mpatrol/files/mpatrol-textrel-fix.patch b/dev-libs/mpatrol/files/mpatrol-textrel-fix.patch
new file mode 100644
index 0000000..ef37e34
--- /dev/null
+++ b/dev-libs/mpatrol/files/mpatrol-textrel-fix.patch
@@ -0,0 +1,12 @@
+diff -urp mpatrol-old/src/config.h mpatrol/src/config.h
+--- mpatrol-old/src/config.h 2002-01-08 21:13:59.000000000 +0100
++++ mpatrol/src/config.h 2005-12-22 17:14:25.000000000 +0100
+@@ -796,7 +796,7 @@
+
+ #ifndef MP_INIT_SUPPORT
+ #if SYSTEM == SYSTEM_DGUX || SYSTEM == SYSTEM_DRSNX || \
+- SYSTEM == SYSTEM_DYNIX || SYSTEM == SYSTEM_LINUX || \
++ SYSTEM == SYSTEM_DYNIX || \
+ SYSTEM == SYSTEM_SOLARIS || SYSTEM == SYSTEM_UNIXWARE
+ #define MP_INIT_SUPPORT 1
+ #elif SYSTEM == SYSTEM_FREEBSD || SYSTEM == SYSTEM_NETBSD || \
diff --git a/dev-libs/mpatrol/metadata.xml b/dev-libs/mpatrol/metadata.xml
new file mode 100644
index 0000000..fae7d74
--- /dev/null
+++ b/dev-libs/mpatrol/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild b/dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild
new file mode 100644
index 0000000..50a2b22
--- /dev/null
+++ b/dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild,v 1.5 2009/09/23 17:25:21 patrick Exp $
+
+IUSE="X"
+
+DESCRIPTION="A link library for controlling and tracing dynamic memory allocation. Attempts to diagnose run-time errors that are caused by misuse of dynamically allocated memory. Simple integration via a single header."
+SRC_URI="http://www.cbmamiga.demon.co.uk/mpatrol/files/${PN}_${PV}.tar.gz"
+HOMEPAGE="http://www.cbmamiga.demon.co.uk/mpatrol/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc"
+S="${WORKDIR}/${PN}"
+
+# To use X, mpatrol requires Motif
+DEPEND="!dev-lang/mercury
+ X? ( x11-libs/openmotif )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/src
+ sed -i \
+ -e 's:#define MP_SYMBOL_LIBS , MP_LIBNAME(bfd), MP_LIBNAME(iberty):#define MP_SYMBOL_LIBS , MP_LIBNAME(bfd):' config.h \
+ || die "sed config.h failed"
+
+ cd ${S}/build/unix
+ sed -i \
+ -e 's:^OFLAGS.= -O3:OFLAGS = ${OPT_FLAGS}:' Makefile \
+ || die "sed Makefile for CFLAGS failed"
+
+ sed -i \
+ -e 's:$(LD) $(LDFLAGS) -o $@ $(SHARED_MPTOBJS):$(LD) $(LDFLAGS) -liberty -o $@ $(SHARED_MPTOBJS):' Makefile \
+ || die "sed Makefile for fixing -libiberty failed"
+
+ use X && sed -i \
+ -e 's:^GUISUP.= false:GUISUP = true:' Makefile \
+ || die "sed Makefile for GUISUP failed"
+}
+
+src_compile() {
+ cd ${S}/build/unix
+ OPT_FLAGS="$CFLAGS" emake all || die "emake failed"
+}
+
+# **
+# ** The install is straightforward, but a bit on the odd side. The author
+# ** gives a list of things that need to be done, rather than attempt to
+# ** make an install target. --nj
+# **
+src_install () {
+ cd ${S}/build/unix
+ dobin mleak mpatrol mprof mptrace
+ dolib.so lib*.so.*
+ dolib.a lib*.a
+
+ # Each lib needs a symlink from the .so level
+ #for L in lib*.so.*; do
+ # dosym $L /usr/lib/`echo $L | sed 's:^\([^\.]*\.so\).*:\1:'`
+ #done
+
+ insinto /usr
+ cd ${S}/bin
+ dobin *
+
+ insinto /usr/include/
+ cd ${S}/src
+ doins mpatrol.h mpalloc.h mpdebug.h
+
+ insinto /usr/include/mpatrol
+ doins ${S}/tools/*.h
+
+ doman ${S}/man/man?/*
+
+ cd ${S}
+ dodoc AUTHORS ChangeLog NEWS README THANKS VERSION pkg/lsm/*lsm
+
+ cd ${S}/doc
+ dodoc *.dvi *.ps *.pdf *.txt
+ doinfo mpatrol.info
+ dohtml mpatrol.html
+
+ docinto images
+ dodoc images/*.{eps,pdf}
+
+ insinto /usr/share/doc/${F}/html/images
+ doins images/*.jpg
+}
+
+pkg_postinst() {
+ elog " Please review the documentation in /usr/share/doc/$PF"
+}
diff --git a/dev-libs/mpatrol/mpatrol-1.4.8-r2.ebuild b/dev-libs/mpatrol/mpatrol-1.4.8-r2.ebuild
new file mode 100644
index 0000000..7477094
--- /dev/null
+++ b/dev-libs/mpatrol/mpatrol-1.4.8-r2.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpatrol/mpatrol-1.4.8-r2.ebuild,v 1.6 2009/09/23 17:25:21 patrick Exp $
+
+inherit eutils flag-o-matic
+
+IUSE="X"
+
+DESCRIPTION="A link library for controlling and tracing dynamic memory allocation. Attempts to diagnose run-time errors that are caused by misuse of dynamically allocated memory. Simple integration via a single header."
+SRC_URI="http://www.cbmamiga.demon.co.uk/mpatrol/files/${PN}_${PV}.tar.gz"
+HOMEPAGE="http://www.cbmamiga.demon.co.uk/mpatrol/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc"
+S="${WORKDIR}/${PN}"
+
+# To use X, mpatrol requires Motif
+DEPEND="!dev-lang/mercury
+ X? ( x11-libs/openmotif )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch "${FILESDIR}/${P}-soname.patch"
+
+ #bug 272505
+ epatch "${FILESDIR}/${P}-gcc44-glibc210.patch"
+
+ cd ${S}/src
+ # [Bug 176592] textrel fix for dev-libs/mpatrol
+ epatch "${FILESDIR}/${PN}-textrel-fix.patch"
+
+ sed -i \
+ -e 's:#define MP_SYMBOL_LIBS , MP_LIBNAME(bfd), MP_LIBNAME(iberty):#define MP_SYMBOL_LIBS , MP_LIBNAME(bfd):' config.h \
+ || die "sed config.h failed"
+
+ cd ${S}/build/unix
+ sed -i \
+ -e 's:^OFLAGS.= -O3:OFLAGS = ${OPT_FLAGS}:' Makefile \
+ || die "sed Makefile for CFLAGS failed"
+
+ sed -i \
+ -e 's:$(LD) $(LDFLAGS) -o $@ $(SHARED_MPTOBJS):$(LD) $(LDFLAGS) -liberty -o $@ $(SHARED_MPTOBJS):' Makefile \
+ || die "sed Makefile for fixing -libiberty failed"
+
+ if use X; then
+ sed -i \
+ -e 's:^GUISUP.= false:GUISUP = true:' Makefile \
+ || die "sed Makefile for GUISUP failed"
+ fi
+
+ sed -i \
+ -e '/^LDFLAGS/a LDOPTS =' \
+ -e '/^LDFLAGS/{s/-shared/-shared $(LDOPTS)/}' \
+ Makefile || die "sed LDFLAGS fix failed"
+}
+
+src_compile() {
+ cd ${S}/build/unix
+ STRIPPROG=true OPT_FLAGS="$CFLAGS -Wa,--noexecstack" emake all || die "emake failed"
+}
+
+# **
+# ** The install is straightforward, but a bit on the odd side. The author
+# ** gives a list of things that need to be done, rather than attempt to
+# ** make an install target. --nj
+# **
+src_install () {
+ cd ${S}/build/unix
+ dobin mleak mpatrol mprof mptrace
+ dolib.so lib*.so.*
+ dolib.a lib*.a
+
+ # Each lib needs a symlink from the .so level
+ #for L in lib*.so.*; do
+ # dosym $L /usr/lib/`echo $L | sed 's:^\([^\.]*\.so\).*:\1:'`
+ #done
+
+ insinto /usr
+ cd ${S}/bin
+ dobin *
+
+ insinto /usr/include/
+ cd ${S}/src
+ doins mpatrol.h mpalloc.h mpdebug.h
+
+ insinto /usr/include/mpatrol
+ doins ${S}/tools/*.h
+
+ doman ${S}/man/man?/*
+
+ cd ${S}
+ dodoc AUTHORS ChangeLog NEWS README THANKS VERSION pkg/lsm/*lsm
+
+ cd ${S}/doc
+ dodoc *.dvi *.ps *.pdf *.txt
+ doinfo mpatrol.info
+ dohtml mpatrol.html
+
+ docinto images
+ dodoc images/*.{eps,pdf}
+
+ insinto /usr/share/doc/${PF}/html/images
+ doins images/*.jpg
+}
+
+pkg_postinst() {
+ elog " Please review the documentation in /usr/share/doc/$PF"
+}
diff --git a/dev-libs/mpatrol/mpatrol-1.4.8.ebuild b/dev-libs/mpatrol/mpatrol-1.4.8.ebuild
new file mode 100644
index 0000000..8dca6ac
--- /dev/null
+++ b/dev-libs/mpatrol/mpatrol-1.4.8.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpatrol/mpatrol-1.4.8.ebuild,v 1.16 2008/11/21 22:44:12 keri Exp $
+
+IUSE="X"
+
+S=${WORKDIR}/${PN}
+DESCRIPTION="A link library for controlling and tracing dynamic memory allocation. Attempts to diagnose run-time errors that are caused by misuse of dynamically allocated memory. Simple integration via a single header."
+SRC_URI="http://www.cbmamiga.demon.co.uk/mpatrol/files/${PN}_${PV}.tar.gz"
+HOMEPAGE="http://www.cbmamiga.demon.co.uk/mpatrol/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 sparc"
+
+# To use X, mpatrol requires Motif
+DEPEND="!dev-lang/mercury
+ X? ( x11-libs/openmotif )"
+
+src_compile() {
+ cd $S/build/unix
+ mv Makefile Makefile.orig
+ sed 's:^OFLAGS.= -O3:OFLAGS = ${OPT_FLAGS}:' < Makefile.orig > Makefile
+ rm Makefile.orig
+
+ if use X; then
+ mv Makefile Makefile.orig
+ sed 's:^GUISUP.= false:GUISUP = true:' < Makefile.orig > Makefile
+ rm Makefile.orig
+
+ env OPT_FLAGS="$CFLAGS" emake all || die "Failed to complete make (with X)"
+ echo "Completed with X"
+ else
+ env OPT_FLAGS="$CFLAGS" emake all || die "Failed to complete make (without X)"
+ echo "Completed without X"
+ fi
+}
+
+# **
+# ** The install is straightforward, but a bit on the odd side. The author
+# ** gives a list of things that need to be done, rather than attempt to
+# ** make an install target. --nj
+# **
+src_install () {
+ cd $S/build/unix
+ dobin mleak mpatrol mprof mptrace
+ dolib.so lib*.so.*
+ dolib.a lib*.a
+
+ # Each lib needs a symlink from the .so level
+ for L in lib*.so.*; do
+ dosym $L /usr/lib/`echo $L | sed 's:^\([^\.]*\.so\).*:\1:'`
+ done
+
+ insinto /
+ cd ../../bin
+ dobin *
+
+ cd ../src
+ insinto /usr/include/
+ doins mpatrol.h mpalloc.h mpdebug.h
+
+ cd ../tools
+ insinto /usr/include/mpatrol
+ doins *.h
+
+ cd ../man
+ doman man?/*
+
+ cd ../doc
+ dodoc mpatrol.html mpatrol.dvi mpatrol.txt refcard.dvi refcard.tex source.tex
+ doinfo mpatrol.info
+ insinto /usr/share/doc/$PF/images
+ doins images/*.jpg images/*.eps
+
+ cd ../
+ dodoc AUTHORS COPYING ChangeLog NEWS README THANKS VERSION pkg/lsm/*lsm
+}
+
+pkg_postinst() {
+ echo "***"
+ echo "*** Please review the documentation in /usr/share/doc/$PF"
+ echo "***"
+ echo
+}