File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
contrib/libs/icu/.yandex_meta Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 6
6
from devtools .yamaker .project import NixProject
7
7
8
8
9
+ def _get_major_version (version : str ) -> str :
10
+ return version .split ('.' )[0 ]
11
+
12
+
9
13
def post_build (self ):
10
14
# copying icudt.dat file from original repository
11
- icu_dat_path = f"{ self .srcdir } /data/in/icudt77l.dat"
12
- rodata_path = f"{ self .dstdir } /icudt77_dat.rodata"
15
+ major_version = _get_major_version (self .version )
16
+ icu_dat_path = f"{ self .srcdir } /data/in/icudt{ major_version } l.dat"
17
+ rodata_path = f"{ self .dstdir } /icudt{ major_version } _dat.rodata"
13
18
shutil .copy (icu_dat_path , rodata_path )
14
19
15
20
16
21
def post_install (self ):
17
22
result_target = self .yamakes ["." ]
18
23
19
- result_target .SRCS .add ("icudt77_dat.rodata" )
24
+ major_version = _get_major_version (self .version )
25
+ result_target .SRCS .add (f"icudt{ major_version } _dat.rodata" )
20
26
21
27
result_target .CFLAGS = [
22
28
"-DU_COMMON_IMPLEMENTATION" ,
@@ -84,7 +90,7 @@ def post_install(self):
84
90
"g:cpp-contrib" ,
85
91
],
86
92
arcdir = "contrib/libs/icu" ,
87
- nixattr = "icu74 " ,
93
+ nixattr = "icu " ,
88
94
put_with = {
89
95
"icuio" : [
90
96
"icuuc" ,
You can’t perform that action at this time.
0 commit comments