summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Boshell <leonardop@gentoo.org>2007-03-14 20:17:41 +0000
committerLeonardo Boshell <leonardop@gentoo.org>2007-03-14 20:17:41 +0000
commit6d7f877f4e6f5bf8a44b0d0f4a0641011806bacb (patch)
tree50e7ccb781afb5e76ed0ac44299e7c4d038bf0b4 /app-text/xml2doc
parentclean out non-modX ebuild (diff)
downloadgentoo-2-6d7f877f4e6f5bf8a44b0d0f4a0641011806bacb.tar.gz
gentoo-2-6d7f877f4e6f5bf8a44b0d0f4a0641011806bacb.tar.bz2
gentoo-2-6d7f877f4e6f5bf8a44b0d0f4a0641011806bacb.zip
Avoid pre-stripping binaries (bug #152266). Added patch to fix pointer-related bug.
(Portage version: 2.1.2.2)
Diffstat (limited to 'app-text/xml2doc')
-rw-r--r--app-text/xml2doc/ChangeLog9
-rw-r--r--app-text/xml2doc/files/digest-xml2doc-20030510-r13
-rw-r--r--app-text/xml2doc/files/xml2doc-pointer_fix.patch20
-rw-r--r--app-text/xml2doc/xml2doc-20030510-r1.ebuild57
4 files changed, 88 insertions, 1 deletions
diff --git a/app-text/xml2doc/ChangeLog b/app-text/xml2doc/ChangeLog
index 2860115b8497..0b32e1cdcae7 100644
--- a/app-text/xml2doc/ChangeLog
+++ b/app-text/xml2doc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/xml2doc
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/xml2doc/ChangeLog,v 1.16 2007/03/13 00:29:42 leonardop Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/xml2doc/ChangeLog,v 1.17 2007/03/14 20:17:41 leonardop Exp $
+
+*xml2doc-20030510-r1 (14 Mar 2007)
+
+ 14 Mar 2007; Leonardo Boshell <leonardop@gentoo.org>
+ +files/xml2doc-pointer_fix.patch, +xml2doc-20030510-r1.ebuild:
+ Avoid pre-stripping binaries (bug #152266). Added patch to fix a
+ pointer-related bug detected thanks to another QA notice.
13 Mar 2007; Leonardo Boshell <leonardop@gentoo.org> metadata.xml:
Replacing text-markup herd with the new sgml herd.
diff --git a/app-text/xml2doc/files/digest-xml2doc-20030510-r1 b/app-text/xml2doc/files/digest-xml2doc-20030510-r1
new file mode 100644
index 000000000000..526f6d873c33
--- /dev/null
+++ b/app-text/xml2doc/files/digest-xml2doc-20030510-r1
@@ -0,0 +1,3 @@
+MD5 5cadf5d0c3ff8d9b150f332861c33f7e xml2doc-20030510.tgz 53307
+RMD160 d2f7d13ace6dc0a68a3ca4aec993ca78b18930e6 xml2doc-20030510.tgz 53307
+SHA256 dd675754a856f5ca40dfd12e0264ea51228c3d795f853d2310677fd25ea7866e xml2doc-20030510.tgz 53307
diff --git a/app-text/xml2doc/files/xml2doc-pointer_fix.patch b/app-text/xml2doc/files/xml2doc-pointer_fix.patch
new file mode 100644
index 000000000000..b6adabe3c1a3
--- /dev/null
+++ b/app-text/xml2doc/files/xml2doc-pointer_fix.patch
@@ -0,0 +1,20 @@
+diff -NurdpB xml2doc/src/output_info.c xml2doc-patched/src/output_info.c
+--- xml2doc/src/output_info.c 2003-04-25 05:11:27.000000000 -0500
++++ xml2doc-patched/src/output_info.c 2007-03-14 15:07:59.000000000 -0500
+@@ -9,11 +9,11 @@ void output_info()
+ *subject = xmlGetProp(Doc[n].cur,"subject"),
+ *keywords = xmlGetProp(Doc[n].cur,"keywords"),
+ *trapped = xmlGetProp(Doc[n].cur,"trapped");
+- struct time_t *timet;
+- struct tm *clk;
+-
+- time((time_t *)&timet);
+- clk=localtime((const time_t *)&timet);
++ time_t timet;
++ struct tm *clk;
++
++ time(&timet);
++ clk=localtime(&timet);
+
+ switch(DocS.output)
+ {
diff --git a/app-text/xml2doc/xml2doc-20030510-r1.ebuild b/app-text/xml2doc/xml2doc-20030510-r1.ebuild
new file mode 100644
index 000000000000..d221c6c83783
--- /dev/null
+++ b/app-text/xml2doc/xml2doc-20030510-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xml2doc/xml2doc-20030510-r1.ebuild,v 1.1 2007/03/14 20:17:41 leonardop Exp $
+
+inherit eutils
+
+DESCRIPTION="Tool to convert simple XML to a variety of formats (pdf, html, txt, manpage)"
+
+HOMEPAGE="http://xml2doc.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+IUSE="pdf"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND=">=dev-libs/libxml2-2.5
+ pdf? ( >=media-libs/pdflib-4 )"
+
+S=${WORKDIR}/${PN}
+
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+
+ # Fix pointer-related bug detected by a QA notice.
+ epatch "${FILESDIR}/${PN}-pointer_fix.patch"
+
+ # Don't strip symbols from binary (bug #152266)
+ sed -i -e '/^\s*strip/d' src/Makefile.in
+}
+
+src_compile() {
+ local myconf="$(use_enable pdf)"
+
+ econf $myconf || die "./configure failed"
+ emake || die "Compilation failed"
+}
+
+src_install() {
+ # xml2doc's make install is unfortunately broken
+
+ # binary
+ dobin ${S}/src/xml2doc
+
+ # documentation
+ dodoc BUGS README TODO
+ docinto examples
+ dodoc ${S}/examples/*.{xml,png}
+
+ # manpage
+ cd ${S}/doc
+ ${S}/src/xml2doc -oM manpage.xml xml2doc.1
+ doman xml2doc.1
+}