/[gentoo-x86]/kde-base/kdepim-l10n/kdepim-l10n-4.8.5.ebuild
Gentoo

Contents of /kde-base/kdepim-l10n/kdepim-l10n-4.8.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 8 11:53:08 2012 UTC (5 months, 1 week ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Drop KDE 4.8

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 7887F787)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.8.5.ebuild,v 1.6 2012/10/13 21:57:49 johu Exp $
4
5 EAPI=4
6
7 KDE_HANDBOOK=optional
8 inherit kde4-base
9
10 DESCRIPTION="KDE PIM internationalization package"
11
12 DEPEND="
13 sys-devel/gettext
14 "
15 RDEPEND=""
16
17 KEYWORDS="amd64 ~arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
18 IUSE=""
19
20 MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fa fi fr ga gl he
21 hr hu ia id is it ja kk km ko lt lv nb nds nl nn pa pl pt pt_BR ro ru si sk sl
22 sr sv tg th tr ug uk vi wa zh_CN zh_TW"
23
24 URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
25 SRC_URI=""
26
27 for MY_LANG in ${MY_LANGS} ; do
28 IUSE="${IUSE} linguas_${MY_LANG}"
29 SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${MY_LANG}-${PV}.tar.xz )"
30 done
31
32 S="${WORKDIR}"
33
34 src_unpack() {
35 local LNG DIR
36 if [[ -z ${A} ]]; then
37 elog
38 elog "You either have the LINGUAS variable unset, or it only"
39 elog "contains languages not supported by ${P}."
40 elog "You won't have any additional language support."
41 elog
42 elog "${P} supports these language codes:"
43 elog "${MY_LANGS}"
44 elog
45 fi
46
47 # For EAPI >= 3, or if not using .tar.xz archives:
48 [[ -n ${A} ]] && unpack ${A}
49 cd "${S}"
50
51 # add all linguas to cmake
52 if [[ -n ${A} ]]; then
53 for LNG in ${LINGUAS}; do
54
55 # Upstream failed to package danisch locale properly
56 if [[ -f "${FILESDIR}/kde-l10n-${LNG}-${PV}.patch" ]]; then
57 epatch "${FILESDIR}/kde-l10n-${LNG}-${PV}.patch"
58 fi
59
60 DIR="kde-l10n-${LNG}-${PV}"
61 if [[ -d "${DIR}" ]] ; then
62 echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
63 fi
64
65 # remove everything except kdepim and kdepim-runtime
66 for SUBDIR in data docs messages scripts ; do
67 if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then
68 einfo " ${SUBDIR} subdirectory"
69 echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt"
70 [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
71 [[ -d "${S}/${DIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
72 fi
73 done
74
75 # in some cases we may have sub-lingua subdirs, e.g. sr :(
76 for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do
77 XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::')
78 if [[ -d "${XSUBDIR}" ]] ; then
79 einfo " ${XLNG} variant"
80 # remove everything except kdepim and kdepim-runtime
81 for SUBDIR in data docs messages scripts ; do
82 if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then
83 einfo " ${SUBDIR} subdirectory"
84 echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt"
85 [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
86 [[ -d "${XSUBDIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
87 fi
88 done
89 fi
90 done
91 done
92 fi
93 }
94
95 src_prepare() {
96 [[ -n ${A} ]] && kde4-base_src_prepare
97 }
98
99 src_configure() {
100 mycmakeargs=(
101 $(cmake-utils_use_build handbook docs)
102 )
103 [[ -n ${A} ]] && kde4-base_src_configure
104 }
105
106 src_compile() {
107 [[ -n ${A} ]] && kde4-base_src_compile
108 }
109
110 src_test() {
111 [[ -n ${A} ]] && kde4-base_src_test
112 }
113
114 src_install() {
115 [[ -n ${A} ]] && kde4-base_src_install
116 }

  ViewVC Help
Powered by ViewVC 1.1.13