wok-stable annotate epdfview-cups/receipt @ rev 11387

Compat: remove gtk+ from poppler DEPENDS to solve a build dependency loop
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 04:46:32 2011 +0100 (2011-12-10)
parents 129bb5b11a7e
children
rev   line source
pascal@1693 1 # SliTaz package receipt.
pascal@1693 2
pascal@1693 3 PACKAGE="epdfview-cups"
slaxemulator@11103 4 VERSION="0.1.8"
pascal@1693 5 CATEGORY="office"
pascal@1693 6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
pascal@1693 7 MAINTAINER="pankso@slitaz.org"
pascal@1693 8 SOURCE="epdfview"
pascal@1693 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1693 10 WEB_SITE="http://trac.emma-soft.com/epdfview/"
pascal@1693 11 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
pascal@1693 12 PROVIDE="epdfview:cups"
pascal@1693 13
slaxemulator@11103 14 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
slaxemulator@11103 15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
slaxemulator@11103 16
pascal@1693 17 # Rules to configure and make the package.
pascal@1693 18 compile_rules()
pascal@1693 19 {
pascal@1693 20 cd $src
pascal@1693 21 ./configure \
pascal@1693 22 --with-cups \
pascal@1693 23 $CONFIGURE_ARGS &&
slaxemulator@11103 24 make && make install
pascal@1693 25 }
pascal@1693 26
pascal@1693 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1693 28 genpkg_rules()
pascal@1693 29 {
pascal@1693 30 mkdir -p $fs/usr/share/pixmaps
slaxemulator@11103 31 cp -a $install/usr/bin $fs/usr
slaxemulator@11103 32 cp -a $install/usr/share/epdfview $fs/usr/share
pascal@1693 33 cd $fs/usr/share/pixmaps
slaxemulator@11103 34 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
pascal@1693 35 }
pascal@1693 36
pascal@1693 37 # Pre install commands for Tazpkg.
pascal@1693 38 pre_install()
pascal@1693 39 {
pascal@1693 40 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
pascal@1693 41 }