1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit flag-o-matic toolchain-funcs
7 DESCRIPTION="Digital clock for the X window system"
8 HOMEPAGE="https://packages.qa.debian.org/d/dclock.html"
10 mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz
11 mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
16 KEYWORDS="amd64 ppc x86"
32 xft? ( virtual/pkgconfig )
35 S=${WORKDIR}/${P/_p*/}
38 "${WORKDIR}"/debian/patches
39 "${FILESDIR}"/${PN}-2.2.2_p4-include.patch
46 $( $(tc-getPKG_CONFIG) --cflags freetype2)
48 append-cppflags -UXFT_SUPPORT
49 sed -i -e '/EXTRA_LIBRARIES/s|^|#|g' Imakefile || die
59 CPPFLAGS="${CPPFLAGS}" \
60 EXTRA_LDOPTIONS="${LDFLAGS}"
65 emake DESTDIR="${D}" install.man
67 insinto /usr/share/sounds
70 insinto /usr/share/X11/app-defaults
71 newins Dclock.ad DClock