summaryrefslogtreecommitdiff
blob: feb79909e11562f585fcb65e4663207200f00418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/suacomp/suacomp-0.4.ebuild,v 1.2 2010/07/13 15:13:17 mr_bones_ Exp $

EAPI=2

inherit toolchain-funcs

DESCRIPTION="library wrapping the interix lib-c to make it less buggy."
HOMEPAGE="http://dev.gentoo.org/~mduft/suacomp"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"

LICENSE="BEER-WARE"
SLOT="0"
KEYWORDS="-* ~x86-interix"
IUSE=""

DEPEND=""
RDEPEND=""

src_compile() {
	# no windows xp support for now (name of libc hardcoded!)
	[[ ${CHOST} == *-interix3* ]] && return 0;

	emake all CC=$(tc-getCC) CFLAGS="${CFLAGS}"
}

src_install() {
	[[ ${CHOST} == *-interix3* ]] && return 0;

	# installing to EPREFIX (not EPREFIX/usr) intentionally, since this
	# falls into the category "low-level-system-library" :)
	emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}"
}