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

(-)file_not_specified_in_diff (-9 / +50 lines)
Line  Link Here
0
-- libxml2-2.7.7.ebuild
0
++ libxml2-2.7.7.ebuild
Lines 3-8 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild,v 1.1 2010/03/18 12:59:10 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild,v 1.1 2010/03/18 12:59:10 ssuominen Exp $
4
4
5
EAPI="2"
5
EAPI="2"
6
SUPPORT_PYTHON_ABIS="1"
6
7
7
inherit libtool flag-o-matic eutils python
8
inherit libtool flag-o-matic eutils python
8
9
Lines 32-37 Link Here
32
DEPEND="${RDEPEND}
33
DEPEND="${RDEPEND}
33
	hppa? ( >=sys-devel/binutils-2.15.92.0.2 )"
34
	hppa? ( >=sys-devel/binutils-2.15.92.0.2 )"
34
35
36
RESTRICT_PYTHON_ABIS="3.*"
37
35
src_unpack() {
38
src_unpack() {
36
	# ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
39
	# ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
37
	# as they are needed as tarballs in ${S}/xstc instead and not unpacked
40
	# as they are needed as tarballs in ${S}/xstc instead and not unpacked
Lines 52-57 Link Here
52
	# Please do not remove, as else we get references to PORTAGE_TMPDIR
55
	# Please do not remove, as else we get references to PORTAGE_TMPDIR
53
	# in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
56
	# in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
54
	elibtoolize
57
	elibtoolize
58
59
	# Python bindings are built/tested/installed manually.
60
	sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.in || die "sed failed"
55
}
61
}
56
62
57
src_configure() {
63
src_configure() {
Lines 71-92 Link Here
71
		$(use_with python)
77
		$(use_with python)
72
		$(use_with readline)
78
		$(use_with readline)
73
		$(use_with readline history)
79
		$(use_with readline history)
74
		$(use_enable ipv6)
80
		$(use_enable ipv6)"
75
		PYTHON_SITE_PACKAGES=$(python_get_sitedir)"
76
81
77
	# filter seemingly problematic CFLAGS (#26320)
82
	# filter seemingly problematic CFLAGS (#26320)
78
	filter-flags -fprefetch-loop-arrays -funroll-loops
83
	filter-flags -fprefetch-loop-arrays -funroll-loops
79
84
80
	econf ${myconf}
85
	python_execute_function -f -q econf ${myconf}
86
}
87
88
src_compile() {
89
	default
90
91
	if use python; then
92
		python_copy_sources python
93
		building() {
94
			emake PYTHON_INCLUDES="$(python_get_includedir)" \
95
				PYTHON_SITE_PACKAGES="$(python_get_sitedir)"
96
		}
97
		python_execute_function -s --source-dir python building
98
	fi
99
}
100
101
src_test() {
102
	default
103
104
	if use python; then
105
		testing() {
106
			emake test
107
		}
108
		python_execute_function -s --source-dir python testing
109
	fi
81
}
110
}
82
111
83
src_install() {
112
src_install() {
84
	emake DESTDIR="${D}" \
113
	emake DESTDIR="${D}" \
85
		EXAMPLES_DIR=/usr/share/doc/${PF}/examples \
114
		EXAMPLES_DIR=/usr/share/doc/${PF}/examples \
86
		docsdir=/usr/share/doc/${PF}/python \
87
		exampledir=/usr/share/doc/${PF}/python/examples \
88
		install || die "Installation failed"
115
		install || die "Installation failed"
89
116
117
	if use python; then
118
		installation() {
119
			emake DESTDIR="${D}" \
120
				PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \
121
				docsdir=/usr/share/doc/${PF}/python \
122
				exampledir=/usr/share/doc/${PF}/python/examples \
123
				install
124
		}
125
		python_execute_function -s --source-dir python installation
126
127
		python_clean_sitedirs
128
	fi
129
90
	rm -rf "${D}"/usr/share/doc/${P}
130
	rm -rf "${D}"/usr/share/doc/${P}
91
	dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* || die "dodoc failed"
131
	dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* || die "dodoc failed"
92
132
Lines 108-115 Link Here
108
148
109
pkg_postinst() {
149
pkg_postinst() {
110
	if use python; then
150
	if use python; then
111
		python_need_rebuild
151
		python_mod_optimize drv_libxml2.py libxml2.py
112
		python_mod_optimize $(python_get_sitedir)
113
	fi
152
	fi
114
153
115
	# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
154
	# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
Lines 133-137 Link Here
133
}
172
}
134
173
135
pkg_postrm() {
174
pkg_postrm() {
136
	python_mod_cleanup /usr/$(get_libdir)/python*/site-packages
175
	if use python; then
176
		python_mod_cleanup drv_libxml2.py libxml2.py
177
	fi
137
}
178
}

Return to bug 312193