# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit toolchain-funcs DESCRIPTION="screen locker borrowing the interface of the SLiM login-manager" HOMEPAGE="http://programsthatsmellgood.com/slimlock/" SRC_URI="https://github.com/joelburget/slimlock/tarball/v${PV} -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="x11-misc/slim media-libs/freetype media-libs/imlib2" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} mv *-${PN}-* "${S}" } src_prepare() { sed -i \ -e "s/LDFLAGS=\(.*\)/LIBS=\1/" \ -e "s/-o \$(NAME)/-o \$(NAME) \$(LIBS)/" \ Makefile || die "sed failed" } src_compile() { emake CC=$(tc-getCC) CXX=$(tc-getCXX) }