2015-02-24 17:38:56 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2015-02-24 17:38:56 +03:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="Draw any kind of boxes around your text"
|
|
|
|
HOMEPAGE="http://boxes.thomasjensen.com/ https://github.com/ascii-boxes/boxes"
|
|
|
|
SRC_URI="https://github.com/ascii-boxes/boxes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2015-04-26 22:54:50 +03:00
|
|
|
KEYWORDS="alpha amd64 ia64 ~mips ppc ppc64 sparc x86"
|
2015-02-24 17:38:56 +03:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
sys-devel/bison
|
|
|
|
sys-devel/flex
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
2015-11-27 13:25:52 +03:00
|
|
|
append-cflags -Iregexp -I. -ansi -std=c99
|
2015-02-24 17:38:56 +03:00
|
|
|
append-ldflags -Lregexp
|
2015-03-11 16:30:26 +03:00
|
|
|
sed \
|
|
|
|
-e 's:STRIP=true:STRIP=false:g' \
|
|
|
|
-i src/Makefile || die
|
2015-02-24 17:38:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin src/boxes
|
|
|
|
doman doc/boxes.1
|
2015-03-11 16:30:26 +03:00
|
|
|
dodoc README.md
|
2015-02-24 17:38:56 +03:00
|
|
|
insinto /usr/share/boxes
|
|
|
|
doins boxes-config
|
|
|
|
}
|