/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.154 Revision 1.157
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.154 2015/06/03 22:36:30 mrueg Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.157 2015/07/01 11:28:23 mrueg Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
326 kderdepend+=" !kde-base/${PN}" 326 kderdepend+=" !kde-base/${PN}"
327fi 327fi
328 328
329# all packages needs oxygen icons for basic iconset 329# all packages needs oxygen icons for basic iconset
330if [[ ${PN} != oxygen-icons ]]; then 330if [[ ${PN} != oxygen-icons ]]; then
331 kderdepend+=" || ( kde-apps/oxygen-icons $(add_kdebase_dep oxygen-icons '' 4.14.3) )" 331 kderdepend+=" kde-apps/oxygen-icons"
332fi 332fi
333 333
334# add a dependency over kde-l10n 334# add a dependency over kde-l10n
335if [[ ${KDEBASE} != "kde-base" && -n ${KDE_LINGUAS} ]]; then 335if [[ ${KDEBASE} != "kde-base" && -n ${KDE_LINGUAS} ]]; then
336 for _lingua in ${KDE_LINGUAS}; do 336 for _lingua in ${KDE_LINGUAS}; do
337 # if our package has linguas, pull in kde-l10n with selected lingua enabled, 337 # if our package has linguas, pull in kde-l10n with selected lingua enabled,
338 # but only for selected ones. 338 # but only for selected ones.
339 # this can't be done on one line because if user doesn't use any localisation 339 # this can't be done on one line because if user doesn't use any localisation
340 # then he is probably not interested in kde-l10n at all. 340 # then he is probably not interested in kde-l10n at all.
341 kderdepend+=" 341 kderdepend+="
342 linguas_${_lingua}? ( || ( kde-apps/kde4-l10n[linguas_${_lingua}(+)] $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)") ) ) 342 linguas_${_lingua}? ( $(add_kdeapps_dep kde4-l10n "linguas_${_lingua}(+)") )
343 " 343 "
344 done 344 done
345 unset _lingua 345 unset _lingua
346fi 346fi
347 347
428 case ${PV} in 428 case ${PV} in
429 4.4.11.1) 429 4.4.11.1)
430 # KDEPIM 4.4, special case 430 # KDEPIM 4.4, special case
431 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree 431 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree
432 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;; 432 SRC_URI="mirror://kde/stable/kdepim-${PV}/src/${_kmname_pv}.tar.bz2" ;;
433 4.4.20*)
434 # KDEPIM 4.4 no-akonadi branch, special case
435 # TODO: Remove this part when KDEPIM 4.4 gets out of the tree
436 SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${_kmname_pv}.tar.xz" ;;
433 4.?.[6-9]? | 4.??.[6-9]?) 437 4.?.[6-9]? | 4.??.[6-9]?)
434 # Unstable KDE SC releases 438 # Unstable KDE SC releases
435 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 439 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
436 4.11.14) 440 4.11.14)
437 # Part of 4.14 actually, sigh. Not stable for next release! 441 # Part of 4.14 actually, sigh. Not stable for next release!
446 # Part of 15.04.1 actually, sigh. Not stable for next release! 450 # Part of 15.04.1 actually, sigh. Not stable for next release!
447 SRC_URI="mirror://kde/stable/applications/15.04.1/src/${_kmname_pv}.tar.xz" ;; 451 SRC_URI="mirror://kde/stable/applications/15.04.1/src/${_kmname_pv}.tar.xz" ;;
448 4.11.20) 452 4.11.20)
449 # Part of 15.04.2 actually, sigh. Not stable for next release! 453 # Part of 15.04.2 actually, sigh. Not stable for next release!
450 SRC_URI="mirror://kde/stable/applications/15.04.2/src/${_kmname_pv}.tar.xz" ;; 454 SRC_URI="mirror://kde/stable/applications/15.04.2/src/${_kmname_pv}.tar.xz" ;;
455 4.11.21)
456 # Part of 15.04.3 actually, sigh. Not stable for next release!
457 SRC_URI="mirror://kde/stable/applications/15.04.3/src/${_kmname_pv}.tar.xz" ;;
458 4.14.3)
459 # Last SC release
460 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
451 4.14.6) 461 4.14.6)
452 # Part of 14.12.3 actually, sigh. Not stable for next release! 462 # Part of 14.12.3 actually, sigh. Not stable for next release!
453 SRC_URI="mirror://kde/stable/applications/14.12.3/src/${_kmname_pv}.tar.xz" ;; 463 SRC_URI="mirror://kde/stable/applications/14.12.3/src/${_kmname_pv}.tar.xz" ;;
454 4.14.7) 464 4.14.7)
455 # Part of 15.04.0 actually, sigh. Not stable for next release! 465 # Part of 15.04.0 actually, sigh. Not stable for next release!
458 # Part of 15.04.1 actually, sigh. Not stable for next release! 468 # Part of 15.04.1 actually, sigh. Not stable for next release!
459 SRC_URI="mirror://kde/stable/applications/15.04.1/src/${_kmname_pv}.tar.xz" ;; 469 SRC_URI="mirror://kde/stable/applications/15.04.1/src/${_kmname_pv}.tar.xz" ;;
460 4.14.9) 470 4.14.9)
461 # Part of 15.04.2 actually, sigh. Not stable for next release! 471 # Part of 15.04.2 actually, sigh. Not stable for next release!
462 SRC_URI="mirror://kde/stable/applications/15.04.2/src/${_kmname_pv}.tar.xz" ;; 472 SRC_URI="mirror://kde/stable/applications/15.04.2/src/${_kmname_pv}.tar.xz" ;;
473 4.14.10)
474 # Part of 15.04.3 actually, sigh. Not stable for next release!
475 SRC_URI="mirror://kde/stable/applications/15.04.3/src/${_kmname_pv}.tar.xz" ;;
463 ??.?.[6-9]? | ??.??.[4-9]?) 476 ??.?.[6-9]? | ??.??.[4-9]?)
464 # Unstable KDE Applications releases 477 # Unstable KDE Applications releases
465 SRC_URI="mirror://kde/unstable/applications/${PV}/src/${_kmname}-${PV}.tar.xz" ;; 478 SRC_URI="mirror://kde/unstable/applications/${PV}/src/${_kmname}-${PV}.tar.xz" ;;
466 *) 479 *)
467 if [[ ${CATEGORY} == kde-apps ]]; then
468 # Stable KDE Applications releases 480 # Stable KDE Applications releases
469 SRC_URI="mirror://kde/stable/applications/${PV}/src/${_kmname}-${PV}.tar.xz" 481 SRC_URI="mirror://kde/stable/applications/${PV}/src/${_kmname}-${PV}.tar.xz"
470 else
471 # Stable KDE SC releases
472 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz"
473 fi
474 ;; 482 ;;
475 esac 483 esac
476 ;; 484 ;;
477 kdevelop|kdevelop-php*|kdevplatform) 485 kdevelop|kdevelop-php*|kdevplatform)
478 case ${KDEVELOP_VERSION} in 486 case ${KDEVELOP_VERSION} in
902 einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!" 910 einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!"
903 echo 911 echo
904 fi 912 fi
905 # for all 3rd party soft tell user that he SHOULD install kdebase-startkde or kdebase-runtime-meta 913 # for all 3rd party soft tell user that he SHOULD install kdebase-startkde or kdebase-runtime-meta
906 if [[ ${KDEBASE} != kde-base ]] && \ 914 if [[ ${KDEBASE} != kde-base ]] && \
907 ! has_version 'kde-base/kdebase-runtime-meta' && \ 915 ! has_version 'kde-apps/kdebase-runtime-meta' && \
908 ! has_version 'kde-base/kdebase-startkde'; then 916 ! has_version 'kde-base/kdebase-startkde'; then
909 if [[ ${KDE_REQUIRED} == always ]] || ( [[ ${KDE_REQUIRED} == optional ]] && use kde ); then 917 if [[ ${KDE_REQUIRED} == always ]] || ( [[ ${KDE_REQUIRED} == optional ]] && use kde ); then
910 echo 918 echo
911 ewarn "WARNING! Your system configuration contains neither \"kde-base/kdebase-runtime-meta\"" 919 ewarn "WARNING! Your system configuration contains neither \"kde-base/kdebase-runtime-meta\""
912 ewarn "nor \"kde-base/kdebase-startkde\". You need one of above." 920 ewarn "nor \"kde-base/kdebase-startkde\". You need one of above."

Legend:
Removed from v.1.154  
changed lines
  Added in v.1.157

  ViewVC Help
Powered by ViewVC 1.1.20