1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs savedconfig
9 DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System with enhanced features"
10 HOMEPAGE="http://scytale.name/proj/fmenu/"
11 SRC_URI="http://github.com/scy/${PN}/tarball/v${PV} -> ${P}.tar.gz"
15 KEYWORDS="~x86 ~amd64"
18 DEPEND="x11-libs/libX11
19 xinerama? ( x11-libs/libXinerama )"
22 S="${WORKDIR}/scy-${PN}-431d932"
26 -e "s/CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall -g/" \
27 -e "s/LDFLAGS = -s/LDFLAGS += -g/" \
28 -e "s/XINERAMALIBS =/XINERAMALIBS ?=/" \
29 -e "s/XINERAMAFLAGS =/XINERAMAFLAGS ?=/" \
30 config.mk || die "sed failed"
32 if use savedconfig; then
33 restore_config config.h
39 use savedconfig && msg=", please check the configfile"
41 emake CC=$(tc-getCC) || die "emake failed${msg}"
43 emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" \
44 || die "emake failed${msg}"
49 emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
51 insinto /usr/share/${PN}
52 newins config.h ${P}.config.h || die "newins failed"
54 dodoc README || die "dodoc failed"