41 lines
890 B
Bash
41 lines
890 B
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="TaskSpooler is a comfortable way of running batch jobs"
|
|
HOMEPAGE="http://vicerveza.homeunix.net/~viric/soft/ts/"
|
|
SRC_URI="http://vicerveza.homeunix.net/~viric/soft/ts/${P}.tar.gz"
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND=""
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
|
|
sed -i \
|
|
-e 's|CFLAGS=|CFLAGS+=|' \
|
|
-e 's|-g -O0||' \
|
|
Makefile || die "sed failed"
|
|
}
|
|
|
|
src_compile() {
|
|
emake CC=$(tc-getCC) || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
exeinto /usr/bin
|
|
newexe ts tsp
|
|
newman ts.1 tsp.1
|
|
dodoc Changelog OBJECTIVES PORTABILITY PROTOCOL README TRICKS
|
|
einfo "Just like on other distribution the actual binary is called tsp!"
|
|
}
|
|
|
|
src_test() {
|
|
PATH="${D}/usr/bin:${PATH}" ./testbench.sh || die "tests failed"
|
|
}
|