diff options
Diffstat (limited to 'x11-misc/habak/habak-0.2.5-r1.ebuild')
-rw-r--r-- | x11-misc/habak/habak-0.2.5-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/x11-misc/habak/habak-0.2.5-r1.ebuild b/x11-misc/habak/habak-0.2.5-r1.ebuild new file mode 100644 index 000000000000..bdbc8010dab2 --- /dev/null +++ b/x11-misc/habak/habak-0.2.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="A simple but powerful tool to set desktop wallpaper" +HOMEPAGE="http://home.gna.org/fvwm-crystal/" +SRC_URI="http://download.gna.org/fvwm-crystal/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/imlib2[X] + x11-libs/libX11" +DEPEND="${RDEPEND} + x11-proto/xproto" + +# Skip into the src directory so we avoid a recursive make call that +# is going to break parallel make. +S="${WORKDIR}/${P}/src" + +src_prepare() { + sed -i \ + -e '/(LDFLAGS)/s:$: -lImlib2 -lm -lX11:' \ + -e 's:gcc:$(CC):' \ + "${S}"/Makefile || die "Makefile fixing failed" +} + +src_compile() { + emake CC="$(tc-getCC)" ${PN} || die "make failed" +} + +src_install() { + dobin ${PN} || die "dobin failed" + + cd "${WORKDIR}/${P}" + dodoc ChangeLog README TODO "${FILESDIR}"/README.en || die "dodoc failed" +} |