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

(-)dev-db/postgis/postgis-1.0.1_p20050727-r1.ebuild (-13 / +7 lines)
Lines 28-47 Link Here
28
28
29
src_compile(){
29
src_compile(){
30
	local myconf 
30
	local myconf 
31
32
	use ppc && CFLAGS="-pipe -fsigned-char"	
31
	use ppc && CFLAGS="-pipe -fsigned-char"	
33
34
	myconf="${myconf} --enable-autoconf --with-maxbackends=1024"
32
	myconf="${myconf} --enable-autoconf --with-maxbackends=1024"
35
36
	cd ${S}
33
	cd ${S}
37
	if use doc; then
34
	if use doc; then
38
		local xslv="$(portageq match / app-text/docbook-xsl-stylesheets |\
35
		local xslv="$(portageq match / app-text/docbook-xsl-stylesheets |\
39
			cut -d'/' -f2 | sed s/"docbook-"//)"
36
			cut -d'/' -f2 | sed s/"docbook-"//)"
40
		einfo "Building doc with ${xslv}"
37
		einfo "Building doc with ${xslv}"
41
		cat configure.in |\
38
		if [ ! -z "$(echo ${xslv} | grep '\-r')" ]; then
42
			sed s/"xsl-stylesheets"/"${xslv}"/ > configure.in
39
			xslv="$(echo ${xslv} | cut -d'-' -f1 )-$(echo ${xslv} | cut -d'-' -f2 )-$(echo ${xslv} | cut -d'-' -f3)"
40
		fi
41
		sed s/"xsl-stylesheets"/"${xslv}"/ -i configure.in
43
	fi
42
	fi
44
45
	autoconf
43
	autoconf
46
	if use geos; then
44
	if use geos; then
47
		myconf="${myconf} $(use_with geos)=$(which geos-config)"
45
		myconf="${myconf} $(use_with geos)=$(which geos-config)"
Lines 54-64 Link Here
54
		myconf="${myconf} --with-docdir=${D}/usr/share/doc/${PF}/html/"
52
		myconf="${myconf} --with-docdir=${D}/usr/share/doc/${PF}/html/"
55
	else
53
	else
56
		einfo "doc will not be build"
54
		einfo "doc will not be build"
57
	fi
55
	fi	
58
	econf ${myconf} \
56
	econf ${myconf} --mandir=${D}/usr/share/man \
59
		|| die "Error: econf failed"
57
		|| die "Error: econf failed"
58
	emake || die "Error: emake failed"	
60
59
61
	emake || die "Error: emake failed"
62
	if use doc; then
60
	if use doc; then
63
		make docs
61
		make docs
64
	fi
62
	fi
Lines 73-82 Link Here
73
	dodoc CHANGES COPYING CREDITS README.postgis TODO
71
	dodoc CHANGES COPYING CREDITS README.postgis TODO
74
	if use doc; then
72
	if use doc; then
75
		cd ${S}
73
		cd ${S}
76
		mv Makefile.config Makefile.config.old
77
		local MY_D="$(echo ${D} | sed s/"\/"/'\\\/'/g)"
78
		cat Makefile.config.old | \
79
			sed s/"mandir="/"mandir=${MY_D}"/ > Makefile.config
80
		make docs-install
74
		make docs-install
81
		rm ${D}/usr/share/doc/${PF}/html/postgis/README.postgis
75
		rm ${D}/usr/share/doc/${PF}/html/postgis/README.postgis
82
	fi
76
	fi

Return to bug 82419