diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2008-06-01 22:30:56 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2008-06-01 22:30:56 +0000 |
commit | 29c669c8b358dbf3042b1e413f687f5ec32ef2e0 (patch) | |
tree | c8636c96e02abee4672f207dd2fcc080ff1b0424 /app-text | |
parent | Add optional dep on pyopenssl for nntps support, by Michiel de Bruijne <m.deb... (diff) | |
download | gentoo-2-29c669c8b358dbf3042b1e413f687f5ec32ef2e0.tar.gz gentoo-2-29c669c8b358dbf3042b1e413f687f5ec32ef2e0.tar.bz2 gentoo-2-29c669c8b358dbf3042b1e413f687f5ec32ef2e0.zip |
make xml2po FHS compliant, bug #190798.
(Portage version: 2.1.5.2)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/gnome-doc-utils/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/gnome-doc-utils/files/gnome-doc-utils-0.12.2-fhs.patch | 42 | ||||
-rw-r--r-- | app-text/gnome-doc-utils/gnome-doc-utils-0.12.2-r1.ebuild | 55 |
3 files changed, 105 insertions, 1 deletions
diff --git a/app-text/gnome-doc-utils/ChangeLog b/app-text/gnome-doc-utils/ChangeLog index 34a9f8663508..2af76e574de8 100644 --- a/app-text/gnome-doc-utils/ChangeLog +++ b/app-text/gnome-doc-utils/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/gnome-doc-utils # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/ChangeLog,v 1.105 2008/05/29 15:54:17 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/ChangeLog,v 1.106 2008/06/01 22:30:56 eva Exp $ + +*gnome-doc-utils-0.12.2-r1 (01 Jun 2008) + + 01 Jun 2008; Gilles Dartiguelongue <eva@gentoo.org> + +files/gnome-doc-utils-0.12.2-fhs.patch, + +gnome-doc-utils-0.12.2-r1.ebuild: + make xml2po FHS compliant, bug #190798. 29 May 2008; Ali Polatel <hawking@gentoo.org> gnome-doc-utils-0.10.3.ebuild, gnome-doc-utils-0.12.0.ebuild, diff --git a/app-text/gnome-doc-utils/files/gnome-doc-utils-0.12.2-fhs.patch b/app-text/gnome-doc-utils/files/gnome-doc-utils-0.12.2-fhs.patch new file mode 100644 index 000000000000..7e977a8f82ef --- /dev/null +++ b/app-text/gnome-doc-utils/files/gnome-doc-utils-0.12.2-fhs.patch @@ -0,0 +1,42 @@ +diff -urNp gnome-doc-utils-0.12.2-orig/xml2po/Makefile.am gnome-doc-utils-0.12.2-new/xml2po/Makefile.am +--- gnome-doc-utils-0.12.2-orig/xml2po/Makefile.am 2008-04-14 22:24:58.000000000 +0530 ++++ gnome-doc-utils-0.12.2-new/xml2po/Makefile.am 2008-04-14 23:40:00.000000000 +0530 +@@ -3,8 +3,6 @@ SUBDIRS = modes examples + nodist_bin_SCRIPTS = xml2po + CLEANFILES = xml2po + +-commondir = $(datadir)/xml2po +- + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = xml2po.pc + +@@ -12,7 +10,7 @@ man_MANS = xml2po.1 + + xml2po: xml2po.py + sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \ +- -e "s+^submodes_path =.*+submodes_path = \"$(commondir)\"+" \ ++ -e "s+^submodes_path =.*+submodes_path = \"$(pythondir)/xml2po\"+" \ + -e "s+^#!.*python.*+#!$(PYTHON)+" \ + < $(srcdir)/xml2po.py > xml2po + chmod +x xml2po +diff -urNp gnome-doc-utils-0.12.2-orig/xml2po/modes/Makefile.am gnome-doc-utils-0.12.2-new/xml2po/modes/Makefile.am +--- gnome-doc-utils-0.12.2-orig/xml2po/modes/Makefile.am 2008-04-14 22:24:58.000000000 +0530 ++++ gnome-doc-utils-0.12.2-new/xml2po/modes/Makefile.am 2008-04-14 23:40:00.000000000 +0530 +@@ -1,4 +1,4 @@ +-commondir = $(datadir)/xml2po ++commondir = $(pythondir)/xml2po + common_DATA = docbook.py empty.py gs.py ubuntu.py xhtml.py + + EXTRA_DIST = $(common_DATA) +diff -urNp gnome-doc-utils-0.12.2-orig/xml2po/xml2po.pc.in gnome-doc-utils-0.12.2-new/xml2po/xml2po.pc.in +--- gnome-doc-utils-0.12.2-orig/xml2po/xml2po.pc.in 2008-04-14 22:24:58.000000000 +0530 ++++ gnome-doc-utils-0.12.2-new/xml2po/xml2po.pc.in 2008-04-14 23:40:00.000000000 +0530 +@@ -1,7 +1,7 @@ + prefix=@prefix@ + exec_prefix=${prefix} + datarootdir=@datarootdir@ +-modesdir=@datadir@/xml2po ++modesdir=@pythondir@/xml2po + + Name: xml2po + Description: Tool for translating XML documents diff --git a/app-text/gnome-doc-utils/gnome-doc-utils-0.12.2-r1.ebuild b/app-text/gnome-doc-utils/gnome-doc-utils-0.12.2-r1.ebuild new file mode 100644 index 000000000000..2691d1e66ae3 --- /dev/null +++ b/app-text/gnome-doc-utils/gnome-doc-utils-0.12.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/gnome-doc-utils-0.12.2-r1.ebuild,v 1.1 2008/06/01 22:30:56 eva Exp $ + +inherit autotools eutils python gnome2 + +DESCRIPTION="A collection of documentation utilities for the Gnome project" +HOMEPAGE="http://www.gnome.org/" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=dev-libs/libxml2-2.6.12 + >=dev-libs/libxslt-1.1.8 + >=dev-lang/python-2" +DEPEND="${RDEPEND} + sys-devel/gettext + >=dev-util/intltool-0.35 + >=dev-util/pkgconfig-0.9 + ~app-text/docbook-xml-dtd-4.4" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_unpack() { + gnome2_src_unpack + + # Make xml2po FHS compliant, bug # + epatch "${FILESDIR}/${P}-fhs.patch" + eautomake + + # Fix LINGUAS + intltoolize --force || die "intltoolize failed" +} + +pkg_setup() { + G2CONF="--disable-scrollkeeper" + + if ! built_with_use dev-libs/libxml2 python; then + eerror "Please re-emerge dev-libs/libxml2 with the python use flag set" + die "dev-libs/libxml2 needs python use flag" + fi +} + +pkg_postinst() { + python_version + python_mod_optimize /usr/lib/python${PYVER}/site-packages/xml2po + gnome2_pkg_postinst +} + +pkg_postrm() { + python_mod_cleanup /usr/lib/python*/site-packages/xml2po + gnome2_pkg_postrm +} |