Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139519 - digikam multiple doc language
Summary: digikam multiple doc language
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 23:54 UTC by Roberto Castagnola
Modified: 2006-10-18 06:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Castagnola 2006-07-06 23:54:33 UTC
digikam ebuilds don't let me install multiple doc locale (e.g. "en it"), but only one.
Here is my patch for digikam-0.8.1-r1.ebuild:

--- /usr/portage/media-gfx/digikam/digikam-0.8.1-r1.ebuild      2006-06-26 22:35:58.000000000 +0200
+++ digikam-0.8.1-r1.ebuild     2006-07-06 16:04:03.000000000 +0200
@@ -42,15 +42,17 @@

 for lang in ${LANGS_DOC}; do
        IUSE="${IUSE} linguas_${lang}"
-       SRC_URI="linguas_${lang}? (
+       LOCAL_URI="linguas_${lang}? (
                mirror://gentoo/${P_DOC}-${lang}.tar.bz2
                mirror://gentoo/${P_DOC}-gentoo.tar.bz2
                )
-               !linguas_${lang}? ( ${SRC_URI} )"
+               ${LOCAL_URI}"
+       SRC_URI="!linguas_${lang}? ( ${SRC_URI} )"
 done

 SRC_URI="mirror://sourceforge/digikam/${MY_P}.tar.bz2
        doc? ( linguas_en? ( mirror://gentoo/${P_DOC}-gentoo.tar.bz2 )
+               ${LOCAL_URI}
                !linguas_en? ( ${SRC_URI} ) )"

 pkg_setup(){
@@ -68,7 +70,7 @@

        if use doc; then
                local MAKE_DOC=$(echo "${LINGUAS} ${LANGS_DOC}" | fmt -w 1 | sort | uniq -d | tr '\n' ' ')
-               einfo "Enabling documentation for: en ${LANG_DOCS}"
+               einfo "Enabling documentation for: en ${MAKE_DOC}"
        fi
 }
Comment 1 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-07-26 12:20:42 UTC
I have fixed that for digikam-0.8.2. Also updated docs to 0.8.2 and repacked them:
ebuild/ebuild.patch: http://gentoo-sunrise.org/svndump/peper/media-gfx/digikam/
repacked docs: http://gentoo-sunrise.org/svndump/peper/distfiles/

Cheers Flameeyes!
Comment 2 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-10-14 09:25:29 UTC
This is still not fixed, added a patch for newest version. See links above.
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 07:54:40 UTC
Picking up.
Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 10:16:32 UTC
There is a small error in the ebuild: it forces the english documentation to be installed, even if the user does not want it. Please use the linguas_el USE variable to check whether it has to be installed or not.
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 10:17:03 UTC
(In reply to comment #4)
linguas_el -> lingues_en
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-15 10:41:42 UTC
We'll allow 'en' to be installed anyway. Thank you for your contribution. Fixed in CVS.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-17 23:43:14 UTC
Well, the SRC_URI is not parseable now, you are missing a space there:

<snip>
doc? ( http://gentoo-sunrise.org/svndump/peper/distfiles/${P_DOC}-main.tar.bz2
            ${SRC_URI})" <--- here!
</snip>
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-18 01:54:52 UTC
I'll have a look at this later today.
Comment 9 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-10-18 06:30:30 UTC
Thanks for reporting this. Fill a new bug report for upcoming errors.