You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/habak/habak-0.2.5-r2.ebuild

45 lines
955 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit 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"
IUSE=""
RDEPEND="media-libs/imlib2[X]
x11-libs/libX11"
DEPEND="${RDEPEND}
x11-base/xorg-proto"
# Skip into the src directory so we avoid a recursive make call that
# is going to break parallel make.
S="${WORKDIR}/${P}/src"
DOCS=( ChangeLog README TODO "${FILESDIR}"/README.en )
src_prepare() {
default
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}
}
src_install() {
dobin ${PN}
cd "${WORKDIR}/${P}" || die
einstalldocs
}