wok-current annotate fpc/receipt @ rev 18734

Remove redundant messages in {pre|post}_{install|remove}() in random packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 21 02:53:09 2015 +0200 (2015-12-21)
parents 9e01bc6321ea
children dfc51ce7954a
rev   line source
slaxemulator@9411 1 # SliTaz package receipt.
slaxemulator@9411 2
slaxemulator@9411 3 PACKAGE="fpc"
pascal@16231 4 VERSION="2.6.4"
slaxemulator@9411 5 CATEGORY="development"
pankso@16194 6 SHORT_DESC="The Free Pascal Compiler"
slaxemulator@9411 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15215 8 LICENSE="GPL2 LGPL2.1"
slaxemulator@9411 9 SOURCE="fpcbuild"
slaxemulator@9411 10 TARBALL="$SOURCE-$VERSION.tar.gz"
slaxemulator@9411 11 WEB_SITE="http://www.freepascal.org/"
slaxemulator@9411 12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/source/$TARBALL"
slaxemulator@9411 13 CONFIG_FILE="/etc/fpc.cfg"
pascal@13034 14 TAGS="compiler pascal"
slaxemulator@9411 15
pankso@16194 16 CROSS_BUGS="arm-slitaz-gnueabi-as: Command not found"
pankso@16194 17 #HOST_ARCH="i486 arm"
pankso@16194 18
pascal@15215 19 DEPENDS="ncurses"
pascal@15215 20 BUILD_DEPENDS="fpc-bootstrap"
pascal@15215 21
pankso@16194 22 # Handle cross compilation. ARM: fpc-bootstrap build host must be installed
pankso@16194 23 case "$ARCH" in
pankso@16194 24 arm*) BUILD_DEPENDS="" ;;
pankso@16194 25 esac
pankso@16194 26
slaxemulator@9411 27 # Rules to configure and make the package.
slaxemulator@9411 28 compile_rules()
slaxemulator@9411 29 {
pankso@16194 30 case "$ARCH" in
pankso@16194 31 i?86)
pankso@16194 32 make ${ARCH_ARGS} NOGDB=1 build
pankso@16194 33 make -j1 NOGDB=1 PREFIX=$DESTDIR/usr install ;;
pankso@16194 34 arm*)
pankso@16194 35 make crossinstall \
pankso@16194 36 NOGDB=1 \
pankso@16194 37 CPU_TARGET=arm \
pankso@16194 38 OS_TARGET=linux \
pankso@16194 39 OPT=-dFPC_ARMEL \
pankso@16194 40 CROSSBINDIR=/cross/$ARCH/tools/bin \
pankso@16194 41 BINUTILSPREFIX=arm-slitaz-gnueabi- \
pankso@16194 42 INSTALL_PREFIX=$DESTDIR/usr ;;
pankso@16194 43 esac &&
al@18734 44
slaxemulator@9411 45 # install package license
pankso@16194 46 install -m 755 -d $DESTDIR/usr/share/licenses/fpc &&
pankso@16194 47 install -m 644 $src/fpcsrc/rtl/COPYING.FPC \
pankso@16194 48 $DESTDIR/usr/share/licenses/fpc/
slaxemulator@9411 49 }
slaxemulator@9411 50
slaxemulator@9411 51 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9411 52 genpkg_rules()
slaxemulator@9411 53 {
slaxemulator@9411 54 mkdir -p $fs/usr $fs/etc
pascal@15215 55 cp -a $install/usr/bin $fs/usr
pascal@15215 56 cp -a $install/usr/lib $fs/usr
al@18734 57
slaxemulator@9411 58 # create symlink for compiler
slaxemulator@9411 59 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin
al@18734 60
pankso@16194 61 # config file
erjo@16709 62 #mkdir -p $fs/etc
erjo@16709 63 #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg
slaxemulator@9411 64 }
slaxemulator@9411 65
erjo@16709 66 post_install()
erjo@16709 67 {
pascal@18730 68 if [ ! -f "$1/etc/fpc.cfg" ]; then
pascal@18730 69 chroot "$1/" fpcmkcfg > /etc/fpc.cfg
erjo@16709 70 fi
al@18734 71
erjo@16709 72 # Fix units search path
pascal@18730 73 sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget!' \
pascal@18730 74 -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/*!' \
pascal@18730 75 -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/rtl!' "$1/etc/fpc.cfg"
erjo@16709 76 }