summaryrefslogtreecommitdiff
blob: 99a7a70a535b51e86b8e29044d0b91ec8e3b3813 (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
35
36
37
38
39
40
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libstreams/libstreams-23.ebuild,v 1.3 2005/03/04 05:14:28 kito Exp $

DESCRIPTION="NeXT/Darwin Streams routines."
HOMEPAGE="http://darwinsource.opendarwin.org/10.3.6/"
SRC_URI="http://darwinsource.opendarwin.org/tarballs/apsl/Libstreams-${PV}.tar.gz"

LICENSE="APSL-2"

SLOT="0"
KEYWORDS="ppc-macos"
IUSE="debug"

DEPEND="virtual/libc"

src_unpack() {
	unpack ${A}
	cd ${WORKDIR}/Libstreams-${PV}
	sed -i -e 's:^NEXTSTEP_INSTALL_DIR = .*:NEXTSTEP_INSTALL_DIR = ${D}/usr/lib/system:' Makefile\
	|| die "sed failed"
	sed -i -e 's:^PRIVATE_HDR_INSTALLDIR = .*:PRIVATE_HDR_INSTALLDIR = ${D}/usr/include:' Makefile.preamble\
	|| die "sed failed"
}

src_compile() {
	emake RC_OS=macos || die "make failed"
	emake profile || die "make profile failed"
	if use debug; then
		emake debug || die "make debug failed"
	fi
}

src_install() {
	insinto /usr/lib/system
	doins *.a

	insinto /usr/include/streams
	doins *.h
}