1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup kde4 1.1 |
---|
5 | |
---|
6 | name calligra-translations |
---|
7 | version 2.9.0 |
---|
8 | |
---|
9 | categories kde kde4 office |
---|
10 | maintainers gmail.com:rjvbertin |
---|
11 | license GPL-2+ |
---|
12 | description Metaport providing the Calligra language files |
---|
13 | long_description \ |
---|
14 | ${description} |
---|
15 | platforms darwin |
---|
16 | homepage http://www.calligra.org/ |
---|
17 | master_sites kde:stable/calligra-latest/calligra-l10n |
---|
18 | use_xz yes |
---|
19 | |
---|
20 | supported_archs noarch |
---|
21 | dist_subdir calligra |
---|
22 | # installing this without calligra doesn't make sense... |
---|
23 | depends_run path:${prefix}/include/calligra:calligra |
---|
24 | depends_lib-delete ${qt4_dependency} port:phonon |
---|
25 | depends_build-delete port:automoc port:pkgconfig |
---|
26 | depends_build-append port:gettext |
---|
27 | |
---|
28 | set languages {bs ca ca_valencia cs da de el en_GB es et fi fr gl hu it ja kk nb nl pl pt pt_BR ru sk sv tr uk zh_CN zh_TW} |
---|
29 | foreach lang ${languages} { |
---|
30 | lappend mp.names "calligra-l10n-${lang}" |
---|
31 | } |
---|
32 | |
---|
33 | set rmd160s { |
---|
34 | {764bb5507c7eaae629aa8a901ff89237ae1e93c0 bs} |
---|
35 | {2889a7a0ef1a8dfc541dd9247a4b58be29c75493 ca} |
---|
36 | {3eba204481c02d6e88c8f28991b190747b6d7c8f ca_valencia} |
---|
37 | {7954f166cecf794d70552741fc642905b95d6496 cs} |
---|
38 | {846e7b0d3e3add6f016d360bdd607dc70e231b44 da} |
---|
39 | {363361ae79e431f82a019f356d245d47e9b437ec de} |
---|
40 | {2c57f3032722310500ee4289843b06a0877beafd el} |
---|
41 | {80bf4578e8f9bcd2b05ad7220547d366f135f891 en_gb} |
---|
42 | {b5a0e56de52f22c2f1dfbf35ad6c7376a4cbefa0 es} |
---|
43 | {0e90d087e84bc2a9cd6c6a5504770bcc799b4650 et} |
---|
44 | {08fc639bd7dd538ebf78b1d5bdd1698f0c61aa4c fi} |
---|
45 | {37eacf10bbe0a1b0533f374629ae0bd36160e5b7 fr} |
---|
46 | {7e7e79c72d6bca93de3131a55c8b70425dc943d8 gl} |
---|
47 | {849c78ee5244c12fb6c8e07d5a15d775818bfe65 hu} |
---|
48 | {16247c2c505bc5566c807a78cfc0329ca002b8ba it} |
---|
49 | {802c76b23309fbcd574cafbac1a6f5291712158d ja} |
---|
50 | {1a0c9988c2383efc352c9e3b36e38f784341af65 kk} |
---|
51 | {c0fa627ed34e840874f5520b4293414cb64ee78a nb} |
---|
52 | {8a9b303eee03a29a378227f363848c91216839e0 nl} |
---|
53 | {ffcba994826204b4a2ae8012333dd352c316f835 pl} |
---|
54 | {b6d18d025a567deedb471d576a3453d2fd0bc6f1 pt} |
---|
55 | {28c618b6d76c3dce74c3fc51d304226da441a6dd pt_BR} |
---|
56 | {e24b04ad3317c2d943ec3bce317e912521940da1 ru} |
---|
57 | {2794540dbd8d56e25f871f56c46e1b3ee6d30d9f sk} |
---|
58 | {56b9d5c4d666e0f6583babc02b713c6849275f8e sv} |
---|
59 | {e46d2ebf4b5967c1ee10bb78f6051f5cbfff0bff tr} |
---|
60 | {68c2149a7290661c44e01bdf9a932a09aca8ea56 uk} |
---|
61 | {740f5116ea15ee3e57a6ea25b04f629c4e7dc4b5 zh_CN} |
---|
62 | {be15b6d1406f391754f335fb23695fa06a3de0ef zh_TW} |
---|
63 | } |
---|
64 | set sha256s { |
---|
65 | {8db6698f35f43eac7aeb45dd3d39a336543aaf9b417e1104f040ad0835839927 bs} |
---|
66 | {b72184b525976abff6a5fb643c691673ead01fb6f57396a63cc07b0556b1e097 ca} |
---|
67 | {761369616115169e8b25d6552eff4e88cf1d0475882e41d0634c66e1334881dd ca_valencia} |
---|
68 | {d63a140479977eff3c513ce4abdb979dedc711ee1addecaf6b76c33c4772e02f cs} |
---|
69 | {b71145e8723149efc0076cbf4725d7dec50b292e927055d2093b38e27f1ed3c3 da} |
---|
70 | {d75b754fe7e415119779238e3737ba558007a2f9a39f08d3cc21fb49dda38133 de} |
---|
71 | {06dfac27b7ccc5d9cef2e2058dc805140ac772fada4769bbf99cc90b2ebb2615 el} |
---|
72 | {9bcfb3d7231377204f82e51cb415ec9dd3f16f1eed564672a28ee419f2a1efd3 en_gb} |
---|
73 | {475cee9c12cd857ff83313c32d5f63215ba1ab3e6eb9b90fccbeb77b5310143c es} |
---|
74 | {8752c331d6d56c44ad10c7eb49d8e155d51adbe24ea2d52ceadc20737c135161 et} |
---|
75 | {597001223049cbdd22cd51238adda9bfc18f69249496d7f5308d877c5a467201 fi} |
---|
76 | {a277c05172a85ee1fbdf8ac23de9f2b103489a710a7779800c2d218c3504ad61 fr} |
---|
77 | {8f5bf2c7363c2ab46ca141e0abe4736485d1daad771aafe2e2049252f2224805 gl} |
---|
78 | {ab322fc9438e376b03ec74924007f2755c9c053629b2f1aa72a0d38db728d1d7 hu} |
---|
79 | {e69ea91453219578982d11a91b31c24c1519a580b3601deaf0598fb5f5da01ef it} |
---|
80 | {3cb9bee20ab66916b6603f1c87d3220883a5249fe3104648fee56b9ecc36101a ja} |
---|
81 | {1998e4b398ea6856e309c77f5353933215968c99e43a4ba95103ca715af8c9c0 kk} |
---|
82 | {0128680f0362f409bab29fe551ab3bb433a47ba8eb6994ba74f08345e2c5e48f nb} |
---|
83 | {bceefd8b1da33a8d7b752cf7ab7ccfcb0d829a6cb34af5bf2687ee675f89101f nl} |
---|
84 | {9737f3faa65f80c3636cc594257e9317c37f22104d1ec64c279abba109eab9b8 pl} |
---|
85 | {40dd685550785a50bf2ba6424f2c32fc8063f905764b4d4096d8c67c069c1db0 pt} |
---|
86 | {b38b53ef6613147a0faabb30e2eacb711eacdf69dd8cbd19a0307b6fb93440b0 pt_BR} |
---|
87 | {a7bbca19f811e081b3e1863c69c22259ed5b591f697507949fb29b3f00f40212 ru} |
---|
88 | {ee9b398505e5f445dfc6582f0c98b9bc35029c5ad774cec91c5421c16cd8bf5d sk} |
---|
89 | {02dbf47f811df5ec9e02ebe8d16b7fb1e7e62efcf8d1c988aa8ad5fd603981e3 sv} |
---|
90 | {75c989dad947d2146757c83daae1cafe48936279915149e4b07d0ef271b335bb tr} |
---|
91 | {6eba3a24f401434ddb57d921a66c063a9372d2b01b26e446a395e2432f14ec3c uk} |
---|
92 | {f35db633e57bbe526afa797e0f535419eb67b0b20aeb421f1d84e91e87509647 zh_CN} |
---|
93 | {afc84c1eac7885439df3453fba3d98152966aecb2b8217a889ae47652d9919a3 zh_TW} |
---|
94 | } |
---|
95 | |
---|
96 | |
---|
97 | if {${subport} eq ${name}} { |
---|
98 | foreach mp.name ${mp.names} { |
---|
99 | depends_build-append port:${mp.name} |
---|
100 | } |
---|
101 | # use just any of the language tarballs as ours: |
---|
102 | distname calligra-l10n-en_GB-${version} |
---|
103 | fetch {} |
---|
104 | checksum {} |
---|
105 | extract {} |
---|
106 | build {} |
---|
107 | destroot { |
---|
108 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/kde-installed-packages |
---|
109 | system "touch ${destroot}${prefix}/share/doc/kde-installed-packages/${distname}" |
---|
110 | } |
---|
111 | } |
---|
112 | |
---|
113 | foreach mp.name ${mp.names} { |
---|
114 | set idx [lsearch ${mp.names} ${mp.name}] |
---|
115 | set lang [lindex ${languages} $idx] |
---|
116 | |
---|
117 | subport ${mp.name} { |
---|
118 | if {${lang} eq "ca_valencia"} { |
---|
119 | set mp.name "calligra-l10n-ca@valencia" |
---|
120 | } |
---|
121 | description The \'${lang}\' language files for Calligra |
---|
122 | long_description ${description} |
---|
123 | distname ${mp.name}-${version} |
---|
124 | checksums rmd160 [lindex [lindex ${rmd160s} $idx] 0] \ |
---|
125 | sha256 [lindex [lindex ${sha256s} $idx] 0] |
---|
126 | if {![variant_isset docs]} { |
---|
127 | post-extract { |
---|
128 | reinplace -W ${worksrcpath} "s|macro_optional_add_subdirectory( docs )|# no documentation|g" CMakeLists.txt |
---|
129 | } |
---|
130 | } |
---|
131 | post-destroot { |
---|
132 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/kde-installed-packages |
---|
133 | system "touch ${destroot}${prefix}/share/doc/kde-installed-packages/${distname}" |
---|
134 | } |
---|
135 | livecheck.url http://kde.mirrors.hoobly.com/stable/calligra-latest/calligra-l10n |
---|
136 | livecheck.regex calligra-l10n-${lang}-(\\d+(\\.\\d+)+) |
---|
137 | } |
---|
138 | } |
---|
139 | |
---|
140 | |
---|