wok-next rev 20059

fcitx: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 23 23:17:00 2017 +0200 (2017-10-23)
parents 43650d7c14eb
children 3496108c4bad
files fcitx-dev/receipt fcitx-skin-classic/receipt fcitx-skin-dark/receipt fcitx-skin-default/receipt fcitx-tools/receipt fcitx/receipt libfcitx/receipt
line diff
     1.1 --- a/fcitx-dev/receipt	Mon Oct 23 22:53:19 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,22 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="fcitx-dev"
     1.7 -VERSION="4.1.2"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="The fcitx-dev package includes the header files for the FCITX package."
    1.10 -MAINTAINER="devel@slitaz.org"
    1.11 -LICENSE="GPL2"
    1.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    1.13 -WANTED="fcitx"
    1.14 -
    1.15 -DEPENDS="libfcitx xorg-libX11-dev pkg-config"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -    mkdir -p $fs/usr/lib/pkgconfig/ $fs/usr/share/
    1.21 -    cp -a $install/usr/lib/libfcitx*.so $fs/usr/lib/
    1.22 -    cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/
    1.23 -    cp -a $install/usr/share/cmake/ $fs/usr/share/
    1.24 -    cp -a $install/usr/include/ $fs/usr/
    1.25 -}
     2.1 --- a/fcitx-skin-classic/receipt	Mon Oct 23 22:53:19 2017 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,17 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="fcitx-skin-classic"
     2.7 -VERSION="4.1.2"
     2.8 -CATEGORY="x-window"
     2.9 -SHORT_DESC="The classic skin of fcitx."
    2.10 -MAINTAINER="devel@slitaz.org"
    2.11 -LICENSE="GPL2"
    2.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    2.13 -WANTED="fcitx"
    2.14 -
    2.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 -genpkg_rules()
    2.17 -{
    2.18 -    mkdir -p $fs/usr/share/fcitx/skin/
    2.19 -    cp -a $install/usr/share/fcitx/skin/classic/ $fs/usr/share/fcitx/skin/
    2.20 -}
     3.1 --- a/fcitx-skin-dark/receipt	Mon Oct 23 22:53:19 2017 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,17 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="fcitx-skin-dark"
     3.7 -VERSION="4.1.2"
     3.8 -CATEGORY="x-window"
     3.9 -SHORT_DESC="The dark skin of fcitx."
    3.10 -MAINTAINER="devel@slitaz.org"
    3.11 -LICENSE="GPL2"
    3.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    3.13 -WANTED="fcitx"
    3.14 -
    3.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.16 -genpkg_rules()
    3.17 -{
    3.18 -    mkdir -p $fs/usr/share/fcitx/skin/
    3.19 -    cp -a $install/usr/share/fcitx/skin/dark/ $fs/usr/share/fcitx/dark/
    3.20 -}
     4.1 --- a/fcitx-skin-default/receipt	Mon Oct 23 22:53:19 2017 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,17 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="fcitx-skin-default"
     4.7 -VERSION="4.1.2"
     4.8 -CATEGORY="x-window"
     4.9 -SHORT_DESC="The default skin of fcitx."
    4.10 -MAINTAINER="devel@slitaz.org"
    4.11 -LICENSE="GPL2"
    4.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    4.13 -WANTED="fcitx"
    4.14 -
    4.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.16 -genpkg_rules()
    4.17 -{
    4.18 -    mkdir -p $fs/usr/share/fcitx/skin/
    4.19 -    cp -a $install/usr/share/fcitx/skin/default $fs/usr/share/fcitx/skin/
    4.20 -}
     5.1 --- a/fcitx-tools/receipt	Mon Oct 23 22:53:19 2017 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,25 +0,0 @@
     5.4 -# SliTaz package receipt.
     5.5 -
     5.6 -PACKAGE="fcitx-tools"
     5.7 -VERSION="4.1.2"
     5.8 -CATEGORY="x-window"
     5.9 -SHORT_DESC="The fcitx-tools package includes some tools of fcitx."
    5.10 -MAINTAINER="devel@slitaz.org"
    5.11 -LICENSE="GPL2"
    5.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    5.13 -WANTED="fcitx"
    5.14 -
    5.15 -DEPENDS="fcitx"
    5.16 -
    5.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.18 -genpkg_rules()
    5.19 -{
    5.20 -    mkdir -p $fs/usr/bin/
    5.21 -    cp -a $install/usr/bin/createPYMB $fs/usr/bin/
    5.22 -    cp -a $install/usr/bin/readPYBase $fs/usr/bin/
    5.23 -    cp -a $install/usr/bin/readPYMB $fs/usr/bin/
    5.24 -    cp -a $install/usr/bin/mb2org $fs/usr/bin/
    5.25 -    cp -a $install/usr/bin/mb2txt $fs/usr/bin/
    5.26 -    cp -a $install/usr/bin/scel2org $fs/usr/bin/
    5.27 -    cp -a $install/usr/bin/txt2mb $fs/usr/bin/
    5.28 -}
     6.1 --- a/fcitx/receipt	Mon Oct 23 22:53:19 2017 +0200
     6.2 +++ b/fcitx/receipt	Mon Oct 23 23:17:00 2017 +0200
     6.3 @@ -1,4 +1,4 @@
     6.4 -# SliTaz package receipt.
     6.5 +# SliTaz package receipt v2.
     6.6  
     6.7  PACKAGE="fcitx"
     6.8  VERSION="4.1.2"
     6.9 @@ -10,33 +10,86 @@
    6.10  WEB_SITE="http://code.google.com/p/fcitx/"
    6.11  WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
    6.12  
    6.13 -DEPENDS="libfcitx fcitx-skin-default gtk+"
    6.14 -BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc"
    6.15 +BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev"
    6.16 +SPLIT="fcitx-dev fcitx-skin-classic fcitx-skin-dark fcitx-skin-default \
    6.17 +fcitx-tools libfcitx"
    6.18  
    6.19  # Rules to configure and make the package.
    6.20  compile_rules()
    6.21  {
    6.22 -    mkdir -p $src/build
    6.23 -    cd $src/build
    6.24 -    cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1
    6.25 -    cd $src
    6.26 -    make -C build || return 1
    6.27 -    make install/fast -C build DESTDIR=$DESTDIR
    6.28 +	mkdir -p $src/build
    6.29 +	cd $src/build
    6.30 +	cmake $src \
    6.31 +		-DCMAKE_INSTALL_PREFIX=/usr \
    6.32 +		-DENABLE_QT_IM_MODULE=OFF \
    6.33 +		-DENABLE_GTK2_IM_MODULE=OFF \
    6.34 +		-DENABLE_GTK3_IM_MODULE=OFF \
    6.35 +		-DENABLE_OPENCC=ON || return 1
    6.36 +	cd $src
    6.37 +	make -C build || return 1
    6.38 +	make install/fast -C build DESTDIR=$DESTDIR
    6.39  }
    6.40  
    6.41  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.42  genpkg_rules()
    6.43  {
    6.44 -    mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
    6.45 -    cp -a $install/usr/bin/fcitx $fs/usr/bin/
    6.46 -    cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
    6.47 -    cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
    6.48 -    cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
    6.49 -    cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
    6.50 -    cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
    6.51 -    cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
    6.52 -    cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
    6.53 -    cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
    6.54 -    cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
    6.55 -    cp -a $install/usr/share/icons/ $fs/usr/share/
    6.56 +	case $PACKAGE in
    6.57 +	fcitx)
    6.58 +		DEPENDS="libfcitx fcitx-skin-default gtk+"
    6.59 +		mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
    6.60 +		cp -a $install/usr/bin/fcitx $fs/usr/bin/
    6.61 +		cp -a $install/usr/bin/fcitx-configtool $fs/usr/bin/
    6.62 +		cp -a $install/usr/bin/fcitx-remote $fs/usr/bin/
    6.63 +		cp -a $install/usr/bin/fcitx4-config $fs/usr/bin/
    6.64 +		cp -a $install/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
    6.65 +		cp -a $install/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
    6.66 +		cp -a $install/usr/share/fcitx/data/ $fs/usr/share/fcitx/
    6.67 +		cp -a $install/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
    6.68 +		cp -a $install/usr/share/fcitx/table/ $fs/usr/share/fcitx/
    6.69 +		cp -a $install/usr/share/applications/*.desktop $fs/usr/share/applications/
    6.70 +		cp -a $install/usr/share/icons/ $fs/usr/share/
    6.71 +		;;
    6.72 +	fcitx-dev)
    6.73 +		CAT="development|The fcitx-dev package includes the header files for the FCITX package."
    6.74 +		DEPENDS="libfcitx xorg-libX11-dev pkg-config"
    6.75 +		mkdir -p $fs/usr/lib/pkgconfig/ $fs/usr/share/
    6.76 +		cp -a $install/usr/lib/libfcitx*.so $fs/usr/lib/
    6.77 +		cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/
    6.78 +		cp -a $install/usr/share/cmake/ $fs/usr/share/
    6.79 +		cp -a $install/usr/include/ $fs/usr/
    6.80 +		;;
    6.81 +	fcitx-skin-classic)
    6.82 +		CAT="x-window|The classic skin of fcitx."
    6.83 +		mkdir -p $fs/usr/share/fcitx/skin/
    6.84 +		cp -a $install/usr/share/fcitx/skin/classic/ $fs/usr/share/fcitx/skin/
    6.85 +		;;
    6.86 +	fcitx-skin-dark)
    6.87 +		CAT="x-window|The dark skin of fcitx."
    6.88 +		mkdir -p $fs/usr/share/fcitx/skin/
    6.89 +		cp -a $install/usr/share/fcitx/skin/dark/ $fs/usr/share/fcitx/dark/
    6.90 +		;;
    6.91 +	fcitx-skin-default)
    6.92 +		CAT="x-window|The default skin of fcitx."
    6.93 +		mkdir -p $fs/usr/share/fcitx/skin/
    6.94 +		cp -a $install/usr/share/fcitx/skin/default $fs/usr/share/fcitx/skin/
    6.95 +		;;
    6.96 +	fcitx-tools)
    6.97 +		CAT="x-window|The fcitx-tools package includes some tools of fcitx."
    6.98 +		DEPENDS="fcitx"
    6.99 +		mkdir -p $fs/usr/bin/
   6.100 +		cp -a $install/usr/bin/createPYMB $fs/usr/bin/
   6.101 +		cp -a $install/usr/bin/readPYBase $fs/usr/bin/
   6.102 +		cp -a $install/usr/bin/readPYMB $fs/usr/bin/
   6.103 +		cp -a $install/usr/bin/mb2org $fs/usr/bin/
   6.104 +		cp -a $install/usr/bin/mb2txt $fs/usr/bin/
   6.105 +		cp -a $install/usr/bin/scel2org $fs/usr/bin/
   6.106 +		cp -a $install/usr/bin/txt2mb $fs/usr/bin/
   6.107 +		;;
   6.108 +	libfcitx)
   6.109 +		CAT="x-window|The libfcitx package provides shared libraries for FCITX."
   6.110 +		mkdir -p $fs/usr/lib/fcitx/
   6.111 +		cp -a $install/usr/lib/fcitx/*.so $fs/usr/lib/fcitx/
   6.112 +		cp -a $install/usr/lib/libfcitx*.so.* $fs/usr/lib/
   6.113 +		;;
   6.114 +	esac
   6.115  }
     7.1 --- a/libfcitx/receipt	Mon Oct 23 22:53:19 2017 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,18 +0,0 @@
     7.4 -# SliTaz package receipt.
     7.5 -
     7.6 -PACKAGE="libfcitx"
     7.7 -VERSION="4.1.2"
     7.8 -CATEGORY="x-window"
     7.9 -SHORT_DESC="The libfcitx package provides shared libraries for FCITX."
    7.10 -MAINTAINER="devel@slitaz.org"
    7.11 -LICENSE="GPL2"
    7.12 -WEB_SITE="http://code.google.com/p/fcitx/"
    7.13 -WANTED="fcitx"
    7.14 -
    7.15 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.16 -genpkg_rules()
    7.17 -{
    7.18 -    mkdir -p $fs/usr/lib/fcitx/
    7.19 -    cp -a $install/usr/lib/fcitx/*.so $fs/usr/lib/fcitx/
    7.20 -    cp -a $install/usr/lib/libfcitx*.so.* $fs/usr/lib/
    7.21 -}