author | viric@mandarina |
Sat, 26 Apr 2008 23:46:51 +0200 | |
changeset 213 | d18e1091fae9 |
parent 212 | 0bd944d8babf |
permissions | -rw-r--r-- |
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
212 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
|
4 |
||
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
5 |
inherit toolchain-funcs |
212 | 6 |
|
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
7 |
DESCRIPTION="TaskSpooler is a comfortable way of running batch jobs" |
212 | 8 |
HOMEPAGE="http://vicerveza.homeunix.net/~viric/soft/ts/" |
9 |
SRC_URI="http://vicerveza.homeunix.net/~viric/soft/ts/${P}.tar.gz" |
|
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
10 |
LICENSE="GPL-2" |
212 | 11 |
SLOT="0" |
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
12 |
KEYWORDS="~amd64 ~x86" |
212 | 13 |
IUSE="" |
14 |
||
15 |
DEPEND="" |
|
16 |
RDEPEND="" |
|
17 |
||
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
18 |
src_unpack() { |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
19 |
unpack ${A} |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
20 |
cd "${S}" |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
21 |
|
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
22 |
sed -i \ |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
23 |
-e 's|CFLAGS=|CFLAGS+=|' \ |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
24 |
-e 's|-g -O0||' \ |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
25 |
Makefile || die "sed failed" |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
26 |
} |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
27 |
|
212 | 28 |
src_compile() { |
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
29 |
emake CC=$(tc-getCC) || die "emake failed" |
212 | 30 |
} |
31 |
||
32 |
src_install() { |
|
33 |
exeinto /usr/bin |
|
34 |
doexe ts |
|
35 |
doman ts.1 |
|
36 |
dodoc Changelog OBJECTIVES PORTABILITY PROTOCOL README TRICKS |
|
37 |
} |
|
213
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
38 |
|
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
39 |
src_test() { |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
40 |
PATH="${D}/usr/bin:${PATH}" ./testbench.sh || die "tests failed" |
d18e1091fae9
Adding changes in the Gentoo ebuild from Tiziano Müller.
viric@mandarina
parents:
212
diff
changeset
|
41 |
} |