| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/tabbed/tabbed-0.4.1.ebuild,v 1.2 2012/08/25 15:36:49 jer Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit savedconfig toolchain-funcs
|
| 7 |
|
| 8 |
DESCRIPTION="Simple generic tabbed fronted to xembed aware applications"
|
| 9 |
HOMEPAGE="http://tools.suckless.org/tabbed"
|
| 10 |
SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="MIT"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~amd64 ~x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
RDEPEND="x11-libs/libX11"
|
| 18 |
DEPEND="
|
| 19 |
x11-proto/xproto
|
| 20 |
${RDEPEND}
|
| 21 |
"
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
sed config.mk \
|
| 25 |
-e '/^CC/d' \
|
| 26 |
-e 's|/usr/local|/usr|g' \
|
| 27 |
-e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \
|
| 28 |
-e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
|
| 29 |
-e 's|^LIBS.*|LIBS = -lX11|g' \
|
| 30 |
-e 's|{|(|g;s|}|)|g' \
|
| 31 |
-i || die
|
| 32 |
|
| 33 |
sed Makefile \
|
| 34 |
-e 's|{|(|g;s|}|)|g' \
|
| 35 |
-e '/^[[:space:]]*@echo/d' \
|
| 36 |
-e 's|^ @| |g' \
|
| 37 |
-i || die
|
| 38 |
|
| 39 |
restore_config config.h
|
| 40 |
}
|
| 41 |
|
| 42 |
src_compile() {
|
| 43 |
emake CC=$(tc-getCC)
|
| 44 |
}
|
| 45 |
src_install() {
|
| 46 |
default
|
| 47 |
save_config config.h
|
| 48 |
}
|