summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-04-08 13:27:29 +0000
committerPeter Volkov <pva@gentoo.org>2008-04-08 13:27:29 +0000
commitbddccf6474dedd712e4ac481cf76515c71cb7fa3 (patch)
treec421c4eec0046678388a3392c2bc7e4084d9def0 /app-text
parentI was too fast, now unpack should succeed... (diff)
downloadpva-bddccf6474dedd712e4ac481cf76515c71cb7fa3.tar.gz
pva-bddccf6474dedd712e4ac481cf76515c71cb7fa3.tar.bz2
pva-bddccf6474dedd712e4ac481cf76515c71cb7fa3.zip
Add docbook-to-man. It was required for flow-tools-0.68, but current version uses docbook2man...
svn path=/; revision=138
Diffstat (limited to 'app-text')
-rw-r--r--app-text/docbook-to-man/ChangeLog9
-rw-r--r--app-text/docbook-to-man/Manifest5
-rw-r--r--app-text/docbook-to-man/docbook-to-man-2.0.0_p27.ebuild53
-rw-r--r--app-text/docbook-to-man/metadata.xml8
4 files changed, 75 insertions, 0 deletions
diff --git a/app-text/docbook-to-man/ChangeLog b/app-text/docbook-to-man/ChangeLog
new file mode 100644
index 0000000..a356d09
--- /dev/null
+++ b/app-text/docbook-to-man/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*docbook-to-man-2.0.0_p27 (01 Mar 2008)
+
+ 02 Apr 2008; Peter Volkov <pva@gentoo.org> +docbook-to-man-2.0.0_p27.ebuild:
+ Initial import.
+
diff --git a/app-text/docbook-to-man/Manifest b/app-text/docbook-to-man/Manifest
new file mode 100644
index 0000000..0da3abf
--- /dev/null
+++ b/app-text/docbook-to-man/Manifest
@@ -0,0 +1,5 @@
+DIST docbook-to-man_2.0.0-27.diff.gz 19111 RMD160 2bca98386c3f645ff6d0ce1c8a3850bd6dbafeaa SHA1 bd03a54975d5f1f294cfe0364c467bbdb9cc9f4b SHA256 808daf96050a48946be263411ff91e6e2732ce51882e04b1f0208e140d9664d1
+DIST docbook-to-man_2.0.0.orig.tar.gz 141086 RMD160 99ea62d887825a03f6603bf344fccd55f2a6165e SHA1 2c38d53e80d3304bea2f51cb7e9ea4102c9a515f SHA256 09b994671abc997c1a9ba4f162bc40795a7052276f559cc46e4ed2d864c27568
+EBUILD docbook-to-man-2.0.0_p27.ebuild 1830 RMD160 dc3833262cd6ea00b877a6104965d9637597f0c8 SHA1 2c8d80c8a08b1050ad9c2b309481c21fd0e615b9 SHA256 95430a3a8c9cdbe1776902d10946659bbb25a8919e9a2d1b2220491a761173d6
+MISC ChangeLog 265 RMD160 770025d810f84c030e53510e487338e8f0157503 SHA1 1e337e0d00b5cae28a6d229bf1f09388a4fd0a1e SHA256 76c049dbe20b12dc11908c313480cbb6eda9a00f2edfcfbea04b13cdae8a53d0
+MISC metadata.xml 219 RMD160 ba14592eb1ec5f3754c794c3354ae6d4e4db1df7 SHA1 21736ab271e064bb64e9b13de2d8157f01b1ce83 SHA256 b317a4acf9c356c321b0675dcbd3e28bcf48244a3e52bcea2185bda5360c3a8a
diff --git a/app-text/docbook-to-man/docbook-to-man-2.0.0_p27.ebuild b/app-text/docbook-to-man/docbook-to-man-2.0.0_p27.ebuild
new file mode 100644
index 0000000..a82d2ca
--- /dev/null
+++ b/app-text/docbook-to-man/docbook-to-man-2.0.0_p27.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="converter that transforms UNIX-style manpages from the DocBook SGML format into n/troff man macros"
+HOMEPAGE="http://packages.debian.org/source/sid/docbook-to-man http://www.oasis-open.org/docbook/tools/dtm/"
+# Use debian location instead of http://www.oasis-open.org/docbook/tools/dtm/ as
+# it provides version component.
+SRC_URI="http://ftp.de.debian.org/debian/pool/main/d/${PN}/${PN}_${PV%_p*}.orig.tar.gz
+ http://ftp.de.debian.org/debian/pool/main/d/${PN}/${PN}_${PV%_p*}-${PV#*_p}.diff.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="app-text/opensp
+ =app-text/docbook-sgml-dtd-4.1*
+ =app-text/docbook-sgml-dtd-3.1*"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P%_p*}.orig
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ EPATCH_OPTS="-p1" epatch "${WORKDIR}"/${PN}_${PV%_p*}-${PV#*_p}.diff
+ for dpatch in debian/patches/??-*.dpatch; do
+ epatch "${S}"/${dpatch}
+ done
+ find -name Makefile -exec \
+ sed -i -e "s:\(CC[[:space:]]*=\).*:\1 $(tc-getCC):" \
+ -e "s:\(CFLAGS[[:space:]]*=.*\):\1 ${CFLAGS}:" \
+ -e "s:\(LDFLAGS[[:space:]]*=.*\):\1 ${LDFLAGS}:" \{\} \;
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/sgml
+ # TODO: FIXME:
+ # Hacks to set paths inside docbook-to-man or it doesn't work...
+ sed -i -e 's:dtd/4.1:sgml-dtd-4.1:' \
+ -e 's:\(^CATALOG=\).*:\1/etc/sgml/sgml-docbook-4.1.cat:' \
+ -e 's:-croff.cmap:-c/usr/share/sgml/transpec/roff.cmap:' \
+ -e 's:-sroff.sdata:-s/usr/share/sgml/transpec/roff.sdata:' \
+ -e 's:-tdocbook-to-man.ts:-t/usr/share/sgml/transpec/docbook-to-man.ts:' \
+ cmd/docbook-to-man
+ emake install ROOT="${D}"/usr
+
+ doman Doc/{docbook-to-man.1,instant.1,transpec.1} Instant/tptregexp/regexp.3
+ dodoc README{,.ANS}
+}
diff --git a/app-text/docbook-to-man/metadata.xml b/app-text/docbook-to-man/metadata.xml
new file mode 100644
index 0000000..31703fd
--- /dev/null
+++ b/app-text/docbook-to-man/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>pva@gentoo.org</email>
+</maintainer>
+</pkgmetadata>