summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-03-21 12:54:43 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-03-21 12:54:43 +0000
commit47d33447613b66bd90027762ab5f08f909fa41b8 (patch)
treed5afd9264d8cd7a1973591625c16c8dc92d827bf /app-text
parentmigration revbump (diff)
downloadgentoo-2-47d33447613b66bd90027762ab5f08f909fa41b8.tar.gz
gentoo-2-47d33447613b66bd90027762ab5f08f909fa41b8.tar.bz2
gentoo-2-47d33447613b66bd90027762ab5f08f909fa41b8.zip
Fix incorrect prefix path, that is saved in scripts at install phase, wrt bug #442482. Thanks to Manfred Knick for discovering this issue
(Portage version: 2.2.0_alpha168/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/linuxdoc-tools/ChangeLog9
-rw-r--r--app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild72
2 files changed, 80 insertions, 1 deletions
diff --git a/app-text/linuxdoc-tools/ChangeLog b/app-text/linuxdoc-tools/ChangeLog
index d9ec0249a68e..ef08e083434d 100644
--- a/app-text/linuxdoc-tools/ChangeLog
+++ b/app-text/linuxdoc-tools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/linuxdoc-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/linuxdoc-tools/ChangeLog,v 1.20 2013/03/21 07:09:04 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/linuxdoc-tools/ChangeLog,v 1.21 2013/03/21 12:54:43 pinkbyte Exp $
+
+*linuxdoc-tools-0.9.68-r1 (21 Mar 2013)
+
+ 21 Mar 2013; Sergey Popov <pinkbyte@gentoo.org>
+ +linuxdoc-tools-0.9.68-r1.ebuild:
+ Fix incorrect prefix path, that is saved in scripts at install phase, wrt bug
+ #442482. Thanks to Manfred Knick for discovering this issue
21 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> linuxdoc-tools-0.9.68.ebuild:
Move sed for setting proper sgml catalog path to src_prepare, fix tex-related
diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild
new file mode 100644
index 000000000000..c0ec8f6c5b70
--- /dev/null
+++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild,v 1.1 2013/03/21 12:54:43 pinkbyte Exp $
+
+EAPI=5
+
+inherit eutils sgml-catalog toolchain-funcs
+
+DESCRIPTION="A toolset for processing LinuxDoc DTD SGML files"
+HOMEPAGE="http://packages.qa.debian.org/l/linuxdoc-tools.html"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="MIT SGMLUG"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd"
+
+DEPEND="app-text/openjade
+ app-text/opensp
+ app-text/sgml-common
+ dev-texlive/texlive-fontsrecommended
+ dev-lang/perl
+ sys-apps/gawk
+ sys-apps/groff
+ virtual/latex-base"
+
+RDEPEND="${DEPEND}"
+
+sgml-catalog_cat_include "/etc/sgml/linuxdoc.cat" \
+ "/usr/share/linuxdoc-tools/linuxdoc-tools.catalog"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-letter.patch" \
+ "${FILESDIR}/${PN}-0.9.21-malloc.patch" \
+ "${FILESDIR}/${P}-compiler.patch" \
+ "${FILESDIR}/${P}-lex.patch"
+
+ # Wrong path for the catalog.
+ sed -i -e \
+ 's,/iso-entities-8879.1986/iso-entities.cat,/sgml-iso-entities-8879.1986/catalog,' \
+ perl5lib/LinuxDocTools.pm || die 'sed failed'
+}
+
+src_configure() {
+ tc-export CC
+ econf --with-installed-iso-entities
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ # Else fails with sandbox violations
+ export VARTEXFONTS="${T}/fonts"
+
+ # Besides the path being wrong, in changing perl5libdir, it cannot find the
+ # catalog.
+ export SGML_CATALOG_FILES="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
+
+ eval `perl -V:installvendorarch`
+ emake \
+ DESTDIR="${D}" \
+ perl5libdir="${installvendorarch}" \
+ LINUXDOCDOC="/usr/share/doc/${PF}/guide" \
+ install
+
+ insinto /usr/share/texmf/tex/latex/misc
+ doins tex/*.sty
+
+ dodoc ChangeLog README
+}