diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-07-02 00:46:39 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-07-02 00:46:39 +0000 |
commit | 027fc94438598320119c3baabd020af598a5e169 (patch) | |
tree | abf6daa39788d16e05a0fdd8f9b8d23a1d628d61 /x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild | |
parent | Bump base16-bytestring to 0.1.1.6 (diff) | |
download | gentoo-2-027fc94438598320119c3baabd020af598a5e169.tar.gz gentoo-2-027fc94438598320119c3baabd020af598a5e169.tar.bz2 gentoo-2-027fc94438598320119c3baabd020af598a5e169.zip |
Hack USE=xft onto imake build (bug #514110).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild')
-rw-r--r-- | x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild b/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild new file mode 100644 index 000000000000..daef377449ef --- /dev/null +++ b/x11-misc/dclock/dclock-2.2.2_p4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=4 +inherit eutils 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.gz" + +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*/} + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX=diff epatch "${WORKDIR}"/debian/patches + epatch "${FILESDIR}"/${P}-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}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install{,.man} + + insinto /usr/share/sounds + doins sounds/* + + insinto /usr/share/X11/app-defaults + newins Dclock.ad DClock + + dodoc README TODO +} |