Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 388231
Collapse All | Expand All

(-)/Users/konstantintokarev/Gentoo/usr/portage/dev-scheme/tinyscheme/tinyscheme-1.40.ebuild (-6 / +19 lines)
Lines 10-17 Link Here
10
10
11
LICENSE="BSD"
11
LICENSE="BSD"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~amd64 ~ppc ~x86"
13
KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos"
14
IUSE=""
14
IUSE="aqua"
15
15
16
DEPEND=""
16
DEPEND=""
17
RDEPEND=""
17
RDEPEND=""
Lines 22-40 Link Here
22
#	cp makefile makefile.old
22
#	cp makefile makefile.old
23
23
24
	#separate lines, because shell comments are weak
24
	#separate lines, because shell comments are weak
25
	sed 's/CC = gcc -fpic/CC = gcc -fpic ${CFLAGS}/' -i makefile
25
	if use aqua; then
26
		sed 's/CC = gcc -fpic/CC = gcc -fpic ${CFLAGS} -DOSX/' -i makefile
27
		sed 's/SOsuf=so/SOsuf=dylib/' -i makefile
28
	else
29
		sed 's/CC = gcc -fpic/CC = gcc -fpic ${CFLAGS}/' -i makefile
30
	fi
26
	sed 's/LDFLAGS/LOCAL_LDFLAGS/g' -i makefile
31
	sed 's/LDFLAGS/LOCAL_LDFLAGS/g' -i makefile
27
	sed 's/LOCAL_LDFLAGS = -shared/LOCAL_LDFLAGS = -shared ${LDFLAGS}/' -i makefile
32
	sed 's/LOCAL_LDFLAGS = -shared/LOCAL_LDFLAGS = -shared ${LDFLAGS}/' -i makefile
28
33
29
	sed 's/DEBUG=-g -Wno-char-subscripts -O/DEBUG=/' -i makefile
34
	sed 's/DEBUG=-g -Wno-char-subscripts -O/DEBUG=/' -i makefile
30
	sed "s/LD)/& -Wl,-soname,lib${PN}.so.${PV}/" -i makefile
35
	if use aqua; then
36
		sed "s|LD)|& -Wl,-install_name,${EPREFIX}/usr/lib/lib${PN}.dylib|" -i makefile
37
	else
38
		sed "s/LD)/& -Wl,-soname,lib${PN}.so.${PV}/" -i makefile
39
	fi
31
40
32
#	diff -u makefile.old makefile
41
#	diff -u makefile.old makefile
33
}
42
}
34
43
35
src_install() {
44
src_install() {
36
	newbin scheme ${PN} || die "newbin failed"
45
	newbin scheme ${PN} || die "newbin failed"
37
	dolib libtinyscheme.a libtinyscheme.so || die "dolib failed"
46
	if use aqua; then
47
		dolib libtinyscheme.a libtinyscheme.dylib || die "dolib failed"
48
	else
49
		dolib libtinyscheme.a libtinyscheme.so || die "dolib failed"
50
	fi
38
	dodoc Manual.txt || die "dodoc failed"
51
	dodoc Manual.txt || die "dodoc failed"
39
52
40
	# Bug 328967: dev-scheme/tinyscheme-1.39-r1 doesn't install header file
53
	# Bug 328967: dev-scheme/tinyscheme-1.39-r1 doesn't install header file
Lines 44-48 Link Here
44
	local INIT_DIR=/usr/share/${PN}/
57
	local INIT_DIR=/usr/share/${PN}/
45
	insinto ${INIT_DIR}
58
	insinto ${INIT_DIR}
46
	doins init.scm || die "doins failed"
59
	doins init.scm || die "doins failed"
47
	dodir /etc/env.d/ && echo "TINYSCHEMEINIT=\"${INIT_DIR}init.scm\"" > "${D}"/etc/env.d/50tinyscheme
60
	dodir /etc/env.d/ && echo "TINYSCHEMEINIT=\"${EPREFIX}${INIT_DIR}init.scm\"" > "${ED}"/etc/env.d/50tinyscheme
48
}
61
}

Return to bug 388231