wok-next annotate harfbuzz/receipt @ rev 19802

Remove harfbuzz-icu package. Rework harfbuzz receipt: introduce libharfbuzz, libharfbuzz-icu, harfbuzz-icu-dev. Need to review all the packages that depends on harfbuzz and build-depends on harfbuzz-dev.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 26 13:51:02 2017 +0300 (2017-06-26)
parents 4ca71b0ef823
children 60bd4df08f57
rev   line source
al@19752 1 # SliTaz package receipt v2.
pankso@16149 2
pankso@16149 3 PACKAGE="harfbuzz"
al@19802 4 VERSION="1.4.2"
pankso@16149 5 CATEGORY="system-tools"
pankso@16149 6 SHORT_DESC="OpenType text shaping engine"
pankso@16149 7 MAINTAINER="pankso@slitaz.org"
pankso@16149 8 LICENSE="GPL2"
al@19306 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/HarfBuzz/"
al@19647 10 HOST_ARCH="i486 arm"
al@19647 11
pankso@16149 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19306 13 WGET_URL="https://www.freedesktop.org/software/harfbuzz/release/$TARBALL"
pankso@16149 14
al@19802 15 BUILD_DEPENDS="glib-dev cairo-dev freetype-dev fontconfig-dev icu-dev"
al@19802 16 SPLIT="libharfbuzz libharfbuzz-icu harfbuzz-icu-dev harfbuzz-dev"
pankso@16149 17
pankso@16149 18 # Rules to configure and make the package.
pankso@16149 19 compile_rules()
pankso@16149 20 {
pankso@16149 21 ./configure \
pankso@16149 22 --with-glib \
pankso@16149 23 --with-freetype \
pankso@16149 24 --with-gobject \
al@19306 25 $CONFIGURE_ARGS &&
pankso@16149 26 make && make install
pankso@16149 27 }
pankso@16149 28
pankso@16149 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16149 30 genpkg_rules()
pankso@16149 31 {
al@19802 32 # Note, we have two development packages:
al@19802 33 # * harfbuzz-dev - without ICU integration
al@19802 34 # * harfbuzz-icu-dev - with ICU integration
al@19802 35 # Use one of these packages at a time in your receipt.
al@19802 36
al@19752 37 case $PACKAGE in
al@19752 38 harfbuzz)
al@19802 39 copy bin/
al@19802 40 CAT="system-tools|applications"
al@19802 41 DEPENDS="libharfbuzz cairo"
al@19752 42 ;;
al@19802 43 libharfbuzz)
al@19802 44 copy libharfbuzz.so* libharfbuzz-gobject.so*
al@19802 45 CAT="libs|shared library"
al@19802 46 DEPENDS="freetype glib"
al@19802 47 ;;
al@19802 48 libharfbuzz-icu)
al@19802 49 copy libharfbuzz-icu.so*
al@19802 50 CAT="libs|ICU integration"
al@19802 51 DEPENDS="libicu libharfbuzz"
al@19802 52 ;;
al@19802 53 harfbuzz-icu-dev)
al@19802 54 copy *-icu.h *-icu.la *-icu.pc
al@19802 55 CAT="development|ICU integration development files"
al@19802 56 DEPENDS="libharfbuzz-icu harfbuzz-dev icu-dev"
al@19752 57 ;;
al@19752 58 harfbuzz-dev)
al@19752 59 copy @dev
al@19802 60 remove_already_packed
al@19752 61 DEPENDS="harfbuzz bzip2-dev freetype-dev glib-dev libffi-dev \
al@19802 62 libpng16-dev pcre-dev"
al@19752 63 ;;
al@19752 64 esac
pankso@16149 65 }