diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-02-21 07:26:26 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-02-21 07:26:26 +0100 |
commit | 51729f1fe3a878b4584b908a69a584dd38efca53 (patch) | |
tree | eea63c872b865d542154f35314b6102f060e8cef /x11-misc/dclock/dclock-2.2.2_p9.ebuild | |
parent | dev-php/pear: Stable for HPPA (bug #609552). (diff) | |
download | gentoo-51729f1fe3a878b4584b908a69a584dd38efca53.tar.gz gentoo-51729f1fe3a878b4584b908a69a584dd38efca53.tar.bz2 gentoo-51729f1fe3a878b4584b908a69a584dd38efca53.zip |
x11-misc/dclock: Patch level bump.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'x11-misc/dclock/dclock-2.2.2_p9.ebuild')
-rw-r--r-- | x11-misc/dclock/dclock-2.2.2_p9.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/x11-misc/dclock/dclock-2.2.2_p9.ebuild b/x11-misc/dclock/dclock-2.2.2_p9.ebuild new file mode 100644 index 000000000000..cb7a371220c1 --- /dev/null +++ b/x11-misc/dclock/dclock-2.2.2_p9.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Digital clock for the X window system" +HOMEPAGE="http://packages.qa.debian.org/d/dclock.html" +SRC_URI=" + mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p*/}.orig.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_${PV/_p/-}.debian.tar.xz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="xft" + +RDEPEND=" + xft? ( + media-libs/freetype + x11-libs/libXft + ) + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXt +" +DEPEND=" + ${RDEPEND} + app-text/rman + x11-misc/imake + xft? ( virtual/pkgconfig ) +" + +S=${WORKDIR}/${P/_p*/} + +PATCHES=( + "${WORKDIR}"/debian/patches + "${FILESDIR}"/${PN}-2.2.2_p4-include.patch +) + +src_configure() { + if use xft; then + append-cppflags \ + -DXFT_SUPPORT \ + $( $(tc-getPKG_CONFIG) --cflags freetype2) + else + append-cppflags -UXFT_SUPPORT + sed -i -e '/EXTRA_LIBRARIES/s|^|#|g' Imakefile || die + fi + + xmkmf || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + default + emake DESTDIR="${D}" install.man + + insinto /usr/share/sounds + doins sounds/* + + insinto /usr/share/X11/app-defaults + newins Dclock.ad DClock +} |