/[gentoo-x86]/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild
Gentoo

Contents of /x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 10 20:01:52 2014 UTC (3 years, 11 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild,v 1.1 2014/07/02 00:46:39 jer Exp $
4
5 EAPI=4
6 inherit eutils flag-o-matic toolchain-funcs
7
8 DESCRIPTION="Digital clock for the X window system"
9 HOMEPAGE="http://packages.qa.debian.org/d/dclock.html"
10 SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz
11 mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="xft"
17
18 RDEPEND="
19 xft? (
20 media-libs/freetype
21 x11-libs/libXft
22 )
23 x11-libs/libX11
24 x11-libs/libXext
25 x11-libs/libXt
26 "
27 DEPEND="
28 ${RDEPEND}
29 app-text/rman
30 x11-misc/imake
31 xft? ( virtual/pkgconfig )
32 "
33
34 S=${WORKDIR}/${P/_p*/}
35
36 src_prepare() {
37 EPATCH_FORCE=yes EPATCH_SUFFIX=diff epatch "${WORKDIR}"/debian/patches
38 epatch "${FILESDIR}"/${P}-include.patch
39 }
40
41 src_configure() {
42 if use xft; then
43 append-cppflags \
44 -DXFT_SUPPORT \
45 $( $(tc-getPKG_CONFIG) --cflags freetype2)
46 else
47 append-cppflags -UXFT_SUPPORT
48 sed -i -e '/EXTRA_LIBRARIES/s|^|#|g' Imakefile || die
49 fi
50
51 xmkmf || die
52 }
53
54 src_compile() {
55 emake \
56 CC="$(tc-getCC)" \
57 CFLAGS="${CFLAGS}" \
58 EXTRA_LDOPTIONS="${LDFLAGS}"
59 }
60
61 src_install() {
62 emake DESTDIR="${D}" install{,.man}
63
64 insinto /usr/share/sounds
65 doins sounds/*
66
67 insinto /usr/share/X11/app-defaults
68 newins Dclock.ad DClock
69
70 dodoc README TODO
71 }

  ViewVC Help
Powered by ViewVC 1.1.20