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

(-)snobol-1.1.ebuild.orig (-10 / +15 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/snobol/snobol-1.1.ebuild,v 1.4 2008/01/29 21:31:52 grobian Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-lang/snobol/snobol-1.1.ebuild,v 1.4 2008/01/29 21:31:52 grobian Exp $
4
4
5
EAPI=4
6
5
DESCRIPTION="Phil Budne's port of Macro SNOBOL4 in C, for modern machines"
7
DESCRIPTION="Phil Budne's port of Macro SNOBOL4 in C, for modern machines"
6
HOMEPAGE="http://www.snobol4.org/csnobol4/"
8
HOMEPAGE="http://www.snobol4.org/csnobol4/"
7
MY_PN="snobol4"
9
MY_PN="snobol4"
Lines 17-41 Link Here
17
RDEPEND=""
19
RDEPEND=""
18
S=${WORKDIR}/${MY_P}
20
S=${WORKDIR}/${MY_P}
19
21
20
src_unpack() {
22
src_prepare() {
21
	unpack ${A}
22
	#export CFLAGS="-O0 -pipe"
23
	#export CFLAGS="-O0 -pipe"
23
	sed -i.orig -e '/autoconf/s:autoconf:./autoconf:g' \
24
	sed -i.orig -e '/autoconf/s:autoconf:./autoconf:g' \
24
		-e '/ADD_LDFLAGS/s/-ldb/-lndbm/' \
25
		-e '/ADD_LDFLAGS/s/-ldb/-lndbm/' \
25
		${S}/configure
26
		"${S}"/configure
26
	echo "ADD_OPT([${CFLAGS}])" >>${S}/local-config
27
	echo "ADD_OPT([${CFLAGS}])" >>${S}/local-config
27
	echo "ADD_CPPFLAGS([-DUSE_STDARG_H])" >>${S}/local-config
28
	echo "ADD_CPPFLAGS([-DUSE_STDARG_H])" >>${S}/local-config
28
	echo "ADD_CPPFLAGS([-DHAVE_STDARG_H])" >>${S}/local-config
29
	echo "ADD_CPPFLAGS([-DHAVE_STDARG_H])" >>${S}/local-config
29
	echo "BINDEST=/usr/bin/snobol4" >>${S}/local-config
30
	echo "BINDEST=${EPREFIX}/usr/bin/snobol4" >>${S}/local-config
30
	echo "MANDEST=/usr/share/man/man4/snobol4.1" >>${S}/local-config
31
	echo "MANDEST=${EPREFIX}/usr/share/man/man4/snobol4.1" >>${S}/local-config
31
	echo "SNOLIB_DIR=/usr/lib/snobol4" >>${S}/local-config
32
	echo "SNOLIB_DIR=${EPREFIX}/usr/lib/snobol4" >>${S}/local-config
32
}
33
}
33
34
34
src_compile() {
35
src_configure() {
35
	# WARNING
36
	# WARNING
36
	# The configure script is NOT what you expect
37
	# The configure script is NOT what you expect
37
	emake || die "emake failed"
38
	:
38
	emake doc/snobol4.1 || die "emake doc/snobol4.1 failed"
39
}
40
41
src_compile() {
42
	emake
43
	emake doc/snobol4.1
39
}
44
}
40
45
41
src_install() {
46
src_install() {
Lines 48-52 Link Here
48
	doman doc/*.1
53
	doman doc/*.1
49
	dohtml doc/*.html
54
	dohtml doc/*.html
50
	rm doc/*.html
55
	rm doc/*.html
51
	dodoc doc/*.ps doc/*.doc doc/*.txt doc/*.pdf
56
	dodoc doc/*.ps doc/*.txt doc/*.pdf
52
}
57
}

Return to bug 433848