diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2006-03-30 21:39:42 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2006-03-30 21:39:42 +0000 |
commit | 41b8f60dfc9aea10fe1b56e7720e6e3674ddb705 (patch) | |
tree | 09d857e8f18a70450b717d10a6fbf058f1b270d5 /dev-libs/mpatrol | |
parent | Version bump and cleanup. Added description to metadata. (diff) | |
download | historical-41b8f60dfc9aea10fe1b56e7720e6e3674ddb705.tar.gz historical-41b8f60dfc9aea10fe1b56e7720e6e3674ddb705.tar.bz2 historical-41b8f60dfc9aea10fe1b56e7720e6e3674ddb705.zip |
Bug #49294, take a stab at fixing mpatrol, still needs some QA loving for TEXTREL/SONAME/execstacks.
Package-Manager: portage-2.1_pre6-r7
Diffstat (limited to 'dev-libs/mpatrol')
-rw-r--r-- | dev-libs/mpatrol/Manifest | 24 | ||||
-rw-r--r-- | dev-libs/mpatrol/files/digest-mpatrol-1.4.8-r1 | 3 | ||||
-rw-r--r-- | dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild | 92 |
3 files changed, 108 insertions, 11 deletions
diff --git a/dev-libs/mpatrol/Manifest b/dev-libs/mpatrol/Manifest index 6de0c69d8133..50ad5bfa8046 100644 --- a/dev-libs/mpatrol/Manifest +++ b/dev-libs/mpatrol/Manifest @@ -1,13 +1,15 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 aaaf5e0ab4206fa43a1ff905c6df8c5b ChangeLog 907 -MD5 72c796f767e52ce23cfeb61598ffd443 mpatrol-1.4.8.ebuild 2237 +RMD160 14424f820eef9a19b152d67d77df280a1e88de79 ChangeLog 907 +SHA256 726d330da6effc43407003c127dc5823e209091447f1f916286f1cb285669857 ChangeLog 907 MD5 8c21c5e53c31dc9f5eb4d4b12e2cbb09 files/digest-mpatrol-1.4.8 66 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.9.10 (GNU/Linux) - -iD8DBQFBW1BTI1lqEGTUzyQRAlAtAJ4wn1Xjhv+A1XmuIfMqaiiJ/1BQyQCgjc5x -+95BZXcxEyC0b6tAY8I4vt4= -=TxUP ------END PGP SIGNATURE----- +RMD160 5dbfeff5707fb216213dd83bf887a3d76e60eea6 files/digest-mpatrol-1.4.8 66 +SHA256 d49163ab0eb86ce324fb5c9b5488061ac49fa30722a57299a966cfd07249d38c files/digest-mpatrol-1.4.8 66 +MD5 23d74517bb043a4ff8df2e9b94ef7838 files/digest-mpatrol-1.4.8-r1 244 +RMD160 9ac4c791cb7e691454dd03255aada486d4fa3961 files/digest-mpatrol-1.4.8-r1 244 +SHA256 f6aa5edb069e20adc1089036b5cf0c0dcb3388b4becb6ab06a34fc27202c8208 files/digest-mpatrol-1.4.8-r1 244 +MD5 26ca185fbb6a59e4f342b7b3c18fae27 mpatrol-1.4.8-r1.ebuild 2486 +RMD160 4c73d37a92653e82f763277076b86fa0613721fb mpatrol-1.4.8-r1.ebuild 2486 +SHA256 42d5bb610faf892288bdc00657713a3f6de2f9d89ef4b5cd029545b347587ffd mpatrol-1.4.8-r1.ebuild 2486 +MD5 72c796f767e52ce23cfeb61598ffd443 mpatrol-1.4.8.ebuild 2237 +RMD160 40bf9b2a781713a17c2079501392906d63fd5124 mpatrol-1.4.8.ebuild 2237 +SHA256 3de5cbf16b62a4e6c057ec3e974c1586bc086f60a4605769852bf7bbdb571e6a mpatrol-1.4.8.ebuild 2237 diff --git a/dev-libs/mpatrol/files/digest-mpatrol-1.4.8-r1 b/dev-libs/mpatrol/files/digest-mpatrol-1.4.8-r1 new file mode 100644 index 000000000000..d37b71db537c --- /dev/null +++ b/dev-libs/mpatrol/files/digest-mpatrol-1.4.8-r1 @@ -0,0 +1,3 @@ +MD5 ada423c49bc5bfa7c3e7a80a711c2a1a mpatrol_1.4.8.tar.gz 4413896 +RMD160 5caa6a31f1a53578f28ff597e62c010d68320bc0 mpatrol_1.4.8.tar.gz 4413896 +SHA256 2a58512cb355bf46b08e85683a2ad872bdd4cad5f7a40c87117c7f5badd9f232 mpatrol_1.4.8.tar.gz 4413896 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 000000000000..8d045997333d --- /dev/null +++ b/dev-libs/mpatrol/mpatrol-1.4.8-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# 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.1 2006/03/30 21:39:42 robbat2 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="X? ( x11-libs/openmotif ) + virtual/libc" + +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() { + einfo " Please review the documentation in /usr/share/doc/$PF" +} |