diff options
Diffstat (limited to 'dev-util/ddd')
-rw-r--r-- | dev-util/ddd/Manifest | 8 | ||||
-rw-r--r-- | dev-util/ddd/ddd-3.3.12-r3.ebuild | 90 | ||||
-rw-r--r-- | dev-util/ddd/ddd-3.3.12-r4.ebuild | 94 | ||||
-rw-r--r-- | dev-util/ddd/files/ddd-3.3.12-gcc44.patch | 10 | ||||
-rw-r--r-- | dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch | 11 | ||||
-rw-r--r-- | dev-util/ddd/files/ddd-3.3.12-man.patch | 16 | ||||
-rw-r--r-- | dev-util/ddd/files/ddd-3.3.12-tinfo.patch | 11 | ||||
-rw-r--r-- | dev-util/ddd/metadata.xml | 15 |
8 files changed, 255 insertions, 0 deletions
diff --git a/dev-util/ddd/Manifest b/dev-util/ddd/Manifest new file mode 100644 index 000000000000..e16a01527a61 --- /dev/null +++ b/dev-util/ddd/Manifest @@ -0,0 +1,8 @@ +AUX ddd-3.3.12-gcc44.patch 209 BLAKE2B ce05a8f213e505680297aa3de998efada5c4db48ea18fa3a5474b8aeb266fa85c582723ac3a9b52a7ece0ec7636782a1dc69d69ed073becb8dc834839e907715 SHA512 9373fee21d92b5661c659bcad0f9ce4bca25c86eba40d5d6e498f454cd56af225f290431bd79bfd98a6da5e49180ccb8fd37c144fb99e8b75c886c066e48b129 +AUX ddd-3.3.12-gdb-disassembler-bug.patch 266 BLAKE2B a5658a1513adc116a81de7ec7bfb3eca4002043629a7b939970b8d902e1534d31df0ab8252a7dd2e5f998bc0df4d632bb5cb04662e81391b0e26e6a09809e35b SHA512 15ca238a9ac88c0736c861b962558f09be53f1bc85a5d46d6efb8d6c7ff6fc089b9f730dc0b691d65bbc40010cbd4d2cc4947f369d12271c214770114d533b14 +AUX ddd-3.3.12-man.patch 571 BLAKE2B 88f499833e47ae279beac8dbc4aadcfaa80e8c19f388b6dac3d724b284820472ca83ce81811df838e26d66d3bf1a558c9de8f51f22037b70cff3207f82104b40 SHA512 830115e517f754702892549d780003033e29fc0668824540cc63c3270e8445549896505a6584ccee104d94ffcf152bff679d946922f9d6fffc75d77abdbb8a59 +AUX ddd-3.3.12-tinfo.patch 330 BLAKE2B f0e29f408f1e5e7fa40e386ab2a1f6786a9a14dc6722aef3fc8132558b624c233102b4290c0ba0e5d55b27aa4b25e6bcdd6fcd1b4ae237540621f3961e92bffc SHA512 a3cd3d59bdcce6c106d4488ec9a6c32d8baea49963f61e8e493a01131fd604664dca2e9e548852ff4c538c7123f5c1572bc54d6143340167fcdfa754002eb224 +DIST ddd-3.3.12.tar.gz 5687115 BLAKE2B 52c448eda46bfdc4f5720abda569a0c70f3680c3fdd543f6101c9af8c4c448496414c1c2a7be91590d9f14d0c8c2bb053a234d179bf900ca52df0ea8c2642131 SHA512 1249e4f5f25335f8f2c3616470f7a8f36262c00b8ac12b79f2b2806228de2831ebeb780fe09490e5e8b5b1ca108fe936ae70856f6a6ec02876fc75c7b4a7dbf3 +EBUILD ddd-3.3.12-r3.ebuild 2112 BLAKE2B 499dd54516ba63d41f665b293f020712f5c6a2c1b0dbceff83da6e716614a77b6cd9b0b470e67ab332830edc95edb6087c1175354bb2d00f2c9e53b048caf027 SHA512 0660e012bfc359ecb50d79bd1e24e5b60f8aedeeb737534b7d5133fce140bbca9138f283d1f36ae9b6fcd3a87f55613d33f749d6f148687e42d4e59957d33950 +EBUILD ddd-3.3.12-r4.ebuild 2256 BLAKE2B 6fdae531b7aee21be37ca2c90c9e4042cbbb7388d42bedb5f198da4b7c4b2ec8793763eb4e24d50ea620dcf3e96be099cd50a550e0e49891bcae9f9c3eca1779 SHA512 a6614f1ad38fd3c479476f870b9c7ca09602d2592e5e2f9bff2005b441b0d88747ec5cad84268c0ef6670dc3ca5c1072f88d307a45dc3c807ddce629bf89981d +MISC metadata.xml 658 BLAKE2B f2b35a9e08da89197aa56157e5d3c9adbc991d888cf798849bf7edf33fe6d9fd7dab16e0ea3068d20a836f85d133a570f3bbbcb9e57399c095292fa3390f59bb SHA512 8b304bbca5e836ff3032079f5dd2afea432b8f48e2c57575644adbefba0ddc4f64e3682f35f53c2804c27e950785ae8040f8704c05162acf302c6fb61b70c51d diff --git a/dev-util/ddd/ddd-3.3.12-r3.ebuild b/dev-util/ddd/ddd-3.3.12-r3.ebuild new file mode 100644 index 000000000000..25d5352a90b8 --- /dev/null +++ b/dev-util/ddd/ddd-3.3.12-r3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit autotools-utils eutils + +DESCRIPTION="Graphical front-end for command-line debuggers" +HOMEPAGE="https://www.gnu.org/software/ddd" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3 FDL-1.1" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="+gnuplot readline" + +COMMON_DEPEND=" + sys-devel/gdb + sys-libs/ncurses + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + >=x11-libs/motif-2.3:0 + ppc? ( dev-libs/elfutils ) + ppc64? ( dev-libs/elfutils ) + readline? ( sys-libs/readline ) +" +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto +" +RDEPEND="${COMMON_DEPEND} + x11-apps/xfontsel + gnuplot? ( sci-visualization/gnuplot ) +" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${P}-gcc44.patch" + "${FILESDIR}/${P}-gdb-disassembler-bug.patch" + "${FILESDIR}/${PN}-3.3.12-man.patch" +) + +DOCS=( + AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO + doc/ddd{-paper.ps,.pdf,-themes.pdf} +) + +AUTOTOOLS_AUTORECONF=1 + +src_configure() { + local myeconfargs=( + --disable-static + --with-termlib=ncurses + $(use_with readline) + ) + autotools-utils_src_configure +} + +src_install() { + # Remove app defaults + rm -f "${S}"/ddd/Ddd + + # Install ddd distribution + autotools-utils_src_install + + # Install application icon + doicon "${S}"/icons/ddd.xpm +} + +pkg_postinst() { + if ! use gnuplot; then + echo + elog "To enable data visualization in DDD, install sci-visualization/gnuplot," + elog "or re-emerge DDD with gnuplot USE flag (recommended)." + elog "For flat file package.use layout:" + elog " echo '${CATEGORY}/${PN} gnuplot' >> /etc/portage/package.use && emerge -va gnuplot" + elog "For directory package.use layout:" + elog " echo '${CATEGORY}/${PN} gnuplot' > /etc/portage/package.use/ddd && emerge -va gnuplot" + fi + echo + elog "To be able to debug java, bash, perl or python scripts within DDD, install respectively:" + elog " virtual/jdk" + elog " app-shells/bashdb" + elog " dev-lang/perl" + elog " dev-python/pydb" + echo +} diff --git a/dev-util/ddd/ddd-3.3.12-r4.ebuild b/dev-util/ddd/ddd-3.3.12-r4.ebuild new file mode 100644 index 000000000000..4110ccf39cd6 --- /dev/null +++ b/dev-util/ddd/ddd-3.3.12-r4.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools eutils + +DESCRIPTION="Graphical front-end for command-line debuggers" +HOMEPAGE="https://www.gnu.org/software/ddd" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3 FDL-1.1" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux" +SLOT="0" +IUSE="readline" + +COMMON_DEPEND=" + sys-devel/gdb + sys-libs/ncurses:* + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + >=x11-libs/motif-2.3:0 + ppc? ( dev-libs/elfutils ) + ppc64? ( dev-libs/elfutils ) + readline? ( sys-libs/readline:* ) +" +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto +" +RDEPEND="${COMMON_DEPEND} + x11-apps/xfontsel +" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${P}-gcc44.patch" + "${FILESDIR}/${P}-gdb-disassembler-bug.patch" + "${FILESDIR}/${PN}-3.3.12-man.patch" + "${FILESDIR}/${PN}-3.3.12-tinfo.patch" +) + +DOCS=( + AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO + doc/ddd{-paper.ps,.pdf,-themes.pdf} +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + $(use_with readline) +} + +src_install() { + # Remove app defaults + rm -f "${S}"/ddd/Ddd + + # Install ddd distribution + default + + # Install application icon + doicon "${S}"/icons/ddd.xpm +} + +pkg_postinst() { + if ! has_version sci-visualization/gnuplot; then + echo + elog "To enable data visualization in DDD, install sci-visualization/gnuplot." + elog "For flat file package.use layout:" + elog " echo '${CATEGORY}/${PN} gnuplot' >> /etc/portage/package.use && emerge -va gnuplot" + elog "For directory package.use layout:" + elog " echo '${CATEGORY}/${PN} gnuplot' > /etc/portage/package.use/ddd && emerge -va gnuplot" + elog + fi + echo + elog "Important notice: if you encounter DDD crashes during visualization, you might" + elog "have hit bug #459324. Try switching to plotting in external window:" + elog "Select Edit|Preferences|Helpers and switch 'plot window' to 'external'" + elog + elog "To be able to debug java, bash, perl or python scripts within DDD, install respectively:" + elog " virtual/jdk" + elog " app-shells/bashdb" + elog " dev-lang/perl" + elog " dev-python/pydb" + echo +} diff --git a/dev-util/ddd/files/ddd-3.3.12-gcc44.patch b/dev-util/ddd/files/ddd-3.3.12-gcc44.patch new file mode 100644 index 000000000000..2464b2b4a9c4 --- /dev/null +++ b/dev-util/ddd/files/ddd-3.3.12-gcc44.patch @@ -0,0 +1,10 @@ +--- ddd-3.3.12-orig/ddd/strclass.C ++++ ddd-3.3.12/ddd/strclass.C +@@ -39,6 +39,7 @@ + #include <limits.h> + #include <new> + #include <stdlib.h> ++#include <stdio.h> + + void string::error(const char* msg) const + { diff --git a/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch b/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch new file mode 100644 index 000000000000..738cda5946f9 --- /dev/null +++ b/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch @@ -0,0 +1,11 @@ +--- a/ddd/GDBAgent.C 2004-09-01 20:07:38.000000000 +0200 ++++ b/ddd/GDBAgent.C 2010-06-15 14:16:34.000000000 +0200 +@@ -3078,7 +3078,7 @@ + { + string end_( end ); + normalize_address(end_); +- cmd += ' '; ++ cmd += ','; + cmd += end_; + } + return cmd; diff --git a/dev-util/ddd/files/ddd-3.3.12-man.patch b/dev-util/ddd/files/ddd-3.3.12-man.patch new file mode 100644 index 000000000000..06f9deb806f0 --- /dev/null +++ b/dev-util/ddd/files/ddd-3.3.12-man.patch @@ -0,0 +1,16 @@ +diff -ruN ddd-3.3.12/ddd/Makefile.am ddd-my/ddd/Makefile.am +--- ddd-3.3.12/ddd/Makefile.am 2009-02-11 18:25:07.000000000 +0100 ++++ ddd-my/ddd/Makefile.am 2012-11-06 01:48:46.363493473 +0100 +@@ -1371,10 +1371,8 @@ + man_MANS = ddd.1 + + # `ddd.man' has 8-bit format, `ddd.1' has 7-bit format +-ddd.1: ddd.man $(srcdir)/unumlaut.sed +- -$(SED) -f $(srcdir)/unumlaut.sed ddd.man | $(DELETE_CR) > $@~ \ +- && $(MV) $@~ $@ +- ++ddd.1: ddd.man ++ iconv -f ISO8859-15 -t UTF-8 ddd.man > ddd.1 + + + # ----------------------------------------------------------------------------- diff --git a/dev-util/ddd/files/ddd-3.3.12-tinfo.patch b/dev-util/ddd/files/ddd-3.3.12-tinfo.patch new file mode 100644 index 000000000000..ab7df14ae9d9 --- /dev/null +++ b/dev-util/ddd/files/ddd-3.3.12-tinfo.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -360,7 +360,7 @@ + dnl + _termlib="${ddd_termlib}" + if test "x${ddd_termlib}" = x; then +- _termlib="mytinfo ncurses curses termcap terminfo termlib" ++ _termlib="mytinfo ncurses tinfo curses termcap terminfo termlib" + fi + _termlib_path= + if test x"${ddd_termlib_libraries_path}" != x; then diff --git a/dev-util/ddd/metadata.xml b/dev-util/ddd/metadata.xml new file mode 100644 index 000000000000..97858007ab0b --- /dev/null +++ b/dev-util/ddd/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <longdescription lang="en"> + GNU DDD is a graphical front-end for command-line debuggers such as + GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, + or the Python debugger. Besides ``usual'' front-end features such as + viewing source texts, DDD has become famous through its interactive + graphical data display, where data structures are displayed as graphs. + </longdescription> +</pkgmetadata> |