From 77cbc1243b6195754e5d4d1d8eeca79fe4a9346d Mon Sep 17 00:00:00 2001 From: Peter Volkov Date: Sun, 6 Jan 2008 00:49:10 +0000 Subject: Version bump. Fixes bug 202110, thank by Tim Harder and Denilson . Added myself into metadata, as in other case there is nobody to see bugs. (Portage version: 2.1.3.19) --- app-doc/gimp-help/ChangeLog | 14 ++++- app-doc/gimp-help/files/digest-gimp-help-2.4.0 | 3 ++ .../gimp-help-2.4.0-quickreference-linguas.patch | 40 ++++++++++++++ .../gimp-help-2.4.0-skip-linguas-images.patch | 44 ++++++++++++++++ app-doc/gimp-help/gimp-help-2.4.0.ebuild | 61 ++++++++++++++++++++++ app-doc/gimp-help/metadata.xml | 4 ++ 6 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 app-doc/gimp-help/files/digest-gimp-help-2.4.0 create mode 100644 app-doc/gimp-help/files/gimp-help-2.4.0-quickreference-linguas.patch create mode 100644 app-doc/gimp-help/files/gimp-help-2.4.0-skip-linguas-images.patch create mode 100644 app-doc/gimp-help/gimp-help-2.4.0.ebuild (limited to 'app-doc') diff --git a/app-doc/gimp-help/ChangeLog b/app-doc/gimp-help/ChangeLog index 0fe14404085d..67bd15dcbfff 100644 --- a/app-doc/gimp-help/ChangeLog +++ b/app-doc/gimp-help/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for app-doc/gimp-help -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/gimp-help/ChangeLog,v 1.40 2007/09/29 11:32:39 ulm Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-doc/gimp-help/ChangeLog,v 1.41 2008/01/06 00:49:09 pva Exp $ + +*gimp-help-2.4.0 (06 Jan 2008) + + 06 Jan 2008; + +files/gimp-help-2.4.0-quickreference-linguas.patch, + +files/gimp-help-2.4.0-skip-linguas-images.patch, metadata.xml, + +gimp-help-2.4.0.ebuild: + Version bump. Fixes bug 202110, thank by Tim Harder + and Denilson . Added myself into metadata, as in + other case there is nobody to see bugs. 29 Sep 2007; Ulrich Mueller +files/gimp-help-0.13-image-files.patch, gimp-help-0.13.ebuild: diff --git a/app-doc/gimp-help/files/digest-gimp-help-2.4.0 b/app-doc/gimp-help/files/digest-gimp-help-2.4.0 new file mode 100644 index 000000000000..bd516c57c968 --- /dev/null +++ b/app-doc/gimp-help/files/digest-gimp-help-2.4.0 @@ -0,0 +1,3 @@ +MD5 fb4402aabce1d7f4eccc1a8739cc7e56 gimp-help-2.4.0.tar.bz2 81555148 +RMD160 a84d87aa77207b9b1cc6653fd8b6fe5b8eeeead5 gimp-help-2.4.0.tar.bz2 81555148 +SHA256 5cdf56bf048665a84b2379c25971d9b23d2e150f469e2e457947774cb3ab1c02 gimp-help-2.4.0.tar.bz2 81555148 diff --git a/app-doc/gimp-help/files/gimp-help-2.4.0-quickreference-linguas.patch b/app-doc/gimp-help/files/gimp-help-2.4.0-quickreference-linguas.patch new file mode 100644 index 000000000000..6b812cc55ccb --- /dev/null +++ b/app-doc/gimp-help/files/gimp-help-2.4.0-quickreference-linguas.patch @@ -0,0 +1,40 @@ +diff -Naur gimp-help-2.4.0.orig/configure.ac gimp-help-2.4.0/configure.ac +--- gimp-help-2.4.0.orig/configure.ac 2007-11-18 22:48:21.000000000 +0300 ++++ gimp-help-2.4.0/configure.ac 2008-01-06 01:44:03.000000000 +0300 +@@ -29,12 +29,24 @@ + # haven't been worked on for a while: + # ALL_LINGUAS="cs de en es fr hr it ko nl no ru sv zh_CN" + ++QUICKREFERENCE_ALL_LINGUAS="de en fr it ru sv" ++ + if test "x$ALL_LINGUAS" = "x"; then + ALL_LINGUAS="de en es fr it ko nl no ru sv" ++else ++ QUICKREFERENCE_LINGUAS="" ++ for asked_lang in $ALL_LINGUAS ; do ++ for lang in $QUICKREFERENCE_ALL_LINGUAS ; do ++ if test "$lang" = "$asked_lang"; then ++ QUICKREFERENCE_LINGUAS="$QUICKREFERENCE_LINGUAS $asked_lang" ++ fi ++ done ++ done ++ QUICKREFERENCE_ALL_LINGUAS=$QUICKREFERENCE_LINGUAS + fi + + AC_SUBST(ALL_LINGUAS) +- ++AC_SUBST(QUICKREFERENCE_ALL_LINGUAS) + + # The build of the HTML files is optional. + +diff -Naur gimp-help-2.4.0.orig/quickreference/Makefile.am gimp-help-2.4.0/quickreference/Makefile.am +--- gimp-help-2.4.0.orig/quickreference/Makefile.am 2007-11-18 21:33:23.000000000 +0300 ++++ gimp-help-2.4.0/quickreference/Makefile.am 2008-01-06 01:45:08.000000000 +0300 +@@ -1,7 +1,5 @@ + ## Process this file with automake to produce Makefile.in + +-QUICKREFERENCE_ALL_LINGUAS = de en fr it ru sv +- + PO_FILES = \ + po/gimp-keys.pot\ + po/de.po \ diff --git a/app-doc/gimp-help/files/gimp-help-2.4.0-skip-linguas-images.patch b/app-doc/gimp-help/files/gimp-help-2.4.0-skip-linguas-images.patch new file mode 100644 index 000000000000..f10179b5ef8f --- /dev/null +++ b/app-doc/gimp-help/files/gimp-help-2.4.0-skip-linguas-images.patch @@ -0,0 +1,44 @@ +diff -Naur gimp-help-2.4.0.orig/configure.ac gimp-help-2.4.0/configure.ac +--- gimp-help-2.4.0.orig/configure.ac 2008-01-06 02:25:10.000000000 +0300 ++++ gimp-help-2.4.0/configure.ac 2008-01-06 02:26:45.000000000 +0300 +@@ -48,6 +48,29 @@ + AC_SUBST(ALL_LINGUAS) + AC_SUBST(QUICKREFERENCE_ALL_LINGUAS) + ++# Lists all existing language codes existed in the package. ++# This helps to filter images for languages user did not asked to install. ++ALL_EXISTING_LINGUAS="cs de en es fr hr it ko nl no ru sv zh_CN" ++ ++SKIP_IMAGES_LINGUAS="" ++for lang in $ALL_EXISTING_LINGUAS ; do ++ filter="true" ++ for asked_lang in $ALL_LINGUAS ; do ++ if test "$lang" = "$asked_lang"; then ++ filter="false" ++ fi ++ done ++ if test "$filter" = "true" ; then ++ if test "x$SKIP_IMAGES_LINGUAS" = "x" ; then ++ SKIP_IMAGES_LINGUAS="$lang" ++ else ++ SKIP_IMAGES_LINGUAS="$SKIP_IMAGES_LINGUAS\|$lang" ++ fi ++ fi ++done ++ ++AC_SUBST(SKIP_IMAGES_LINGUAS) ++ + # The build of the HTML files is optional. + + AC_ARG_ENABLE(build, +diff -Naur gimp-help-2.4.0.orig/Makefile.am gimp-help-2.4.0/Makefile.am +--- gimp-help-2.4.0.orig/Makefile.am 2007-11-18 22:46:28.000000000 +0300 ++++ gimp-help-2.4.0/Makefile.am 2008-01-06 02:27:13.000000000 +0300 +@@ -246,6 +246,7 @@ + @echo "** Installing images: (G=gif, J=jpg, M=mng, P=png, X=xcf)" + + @cd $(top_srcdir) && find images $(image_find_predicates) | \ ++ sed "\:.*/\($(SKIP_IMAGES_LINGUAS)\)/.*:d" | \ + while read file; do \ + case "$$file" in \ + *.png) echo -n P ;; \ diff --git a/app-doc/gimp-help/gimp-help-2.4.0.ebuild b/app-doc/gimp-help/gimp-help-2.4.0.ebuild new file mode 100644 index 000000000000..2bee2d56f9f6 --- /dev/null +++ b/app-doc/gimp-help/gimp-help-2.4.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-doc/gimp-help/gimp-help-2.4.0.ebuild,v 1.1 2008/01/06 00:49:09 pva Exp $ + +inherit eutils autotools + +DESCRIPTION="GNU Image Manipulation Program help files" +HOMEPAGE="http://docs.gimp.org/" +SRC_URI="mirror://gimp/help/${P}.tar.bz2" + +LICENSE="FDL-1.2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" + +IUSE="" + +# Only *not* outdated translations (see, configure.ac) are listed. +# On update do not forgive to check quickreference/Makefile.am for +# QUICKREFERENCE_ALL_LINGUAS. LANGS should include that langs too. +LANGS="de en es fr it ko nl no ru sv" + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +DEPEND="=app-text/docbook-xml-dtd-4.3* + dev-libs/libxml2 + dev-libs/libxslt" +RDEPEND="=media-gfx/gimp-2.4*" + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}"/${P}-skip-linguas-images.patch + epatch "${FILESDIR}"/${P}-quickreference-linguas.patch + eautoreconf +} + +src_compile() { + local ALL_LINGUAS="" + + for X in ${LANGS} ; do + use linguas_${X} && ALL_LINGUAS="${ALL_LINGUAS} ${X}" + done + + ALL_LINGUAS=${ALL_LINGUAS} \ + econf \ + --without-gimp \ + --disable-network \ + || die "econf failed" + + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog HACKING NEWS README TERMINOLOGY +} diff --git a/app-doc/gimp-help/metadata.xml b/app-doc/gimp-help/metadata.xml index 20ce219711a2..38bf1c1ef2d1 100644 --- a/app-doc/gimp-help/metadata.xml +++ b/app-doc/gimp-help/metadata.xml @@ -2,4 +2,8 @@ no-herd + + pva@gentoo.org + Peter Volkov + -- cgit v1.2.3-65-gdbad