File tree 3 files changed +24
-29
lines changed
3 files changed +24
-29
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4.0)
2
2
3
- project (fcitx -rime VERSION 0.4 .0)
3
+ project (fcitx5 -rime VERSION 5.0 .0)
4
4
5
5
find_package (ECM REQUIRED 1.0.0)
6
6
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
@@ -28,3 +28,11 @@ include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cma
28
28
add_subdirectory (po)
29
29
add_subdirectory (src)
30
30
add_subdirectory (data)
31
+
32
+ fcitx5_translate_desktop_file(org.fcitx.fcitx5-rime.metainfo.xml.in
33
+ org.fcitx.fcitx5-rime.metainfo.xml XML)
34
+
35
+ install (FILES "${CMAKE_CURRENT_BINARY_DIR} /org.fcitx.fcitx5-rime.metainfo.xml" DESTINATION ${CMAKE_INSTALL_DATADIR} /metainfo)
36
+
37
+ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
38
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- DOMAIN=$( basename $PWD )
3
- POT_FILE=po/$DOMAIN .pot
4
- set -x
5
- XGETTEXT=
" xgettext --package-name=$DOMAIN --add-comments --sort-output [email protected] "
6
- source_files=$( find . -name \* .cpp -o -name \* .h)
7
- $XGETTEXT --keyword=_ --keyword=N_ --language=C++ -o ${POT_FILE} $source_files
8
- desktop_files=$( find . -name \* .conf.in -o -name \* .conf.in.in -o -name \* .desktop.in)
9
- $XGETTEXT --language=Desktop -k --keyword=Name --keyword=GenericName --keyword=Comment --keyword=Keywords $desktop_files -j -o ${POT_FILE}
10
-
11
- sed -i ' s|^"Content-Type: text/plain; charset=CHARSET\\n"|"Content-Type: text/plain; charset=utf-8\\n"|g' ${POT_FILE}
12
-
13
- # Due to transifex problem, delete the date.
14
- # sed -i '/^"PO-Revision-Date/d' ${POT_FILE}
15
- # sed -i '/^"PO-Revision-Date/d' ${POT_FILE}
16
- sed -i ' /^# FIRST AUTHOR/d' ${POT_FILE}
17
- sed -i ' /^#, fuzzy/d' ${POT_FILE}
18
- sed -i ' s|^"Language: \\n"|"Language: LANG\\n"|g' ${POT_FILE}
19
-
20
- echo > po/LINGUAS
21
-
22
- for pofile in $( ls po/* .po | sort) ; do
23
- pofilebase=$( basename $pofile )
24
- pofilebase=${pofilebase/ .po/ }
25
- msgmerge -U --backup=none $pofile ${POT_FILE}
26
- project_line=$( grep " Project-Id-Version" ${POT_FILE} | head -n 1 | tr --delete ' \n' | sed -e ' s/[\/&]/\\&/g' )
27
- sed -i " s|.*Project-Id-Version.*|$project_line |g" $pofile
28
- echo $pofilebase >> po/LINGUAS
29
- done
2
+ gen_pot cxx:appdata:ui:desktop fcitx5-rime po .
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <component type =" inputmethod" >
3
+ <id >org.fcitx.fcitx5-rime</id >
4
+ <extends >org.fcitx.Fcitx5.desktop</extends >
5
+ <metadata_license >CC0-1.0</metadata_license >
6
+ <project_license >LGPL-2.1+</project_license >
7
+ <name >Rime for Fcitx 5</name >
8
+ <summary >Rime input method</summary >
9
+ <url type =" homepage" >https://fcitx-im.org</url >
10
+ <releases >
11
+ <release version =" 5.0.0" date =" 2020-10-30" />
12
+ </releases >
13
+ </component >
14
+
You can’t perform that action at this time.
0 commit comments