blob: 95826a8dc747bd056b0ba2b16ec3dc71894009a1 (
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
41
42
43
44
45
46
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/scons/scons-0.98.3.ebuild,v 1.2 2008/06/14 11:45:06 zmedico Exp $
NEED_PYTHON="1.5.2"
inherit python distutils multilib
DESCRIPTION="Extensible Python-based build utility"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.scons.org/"
SLOT="0"
LICENSE="as-is"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
DOCS="RELEASE.txt CHANGES.txt LICENSE.txt"
src_install () {
distutils_src_install
# move man pages from /usr/man to /usr/share/man
dodir /usr/share
mv "${D}"/usr/man "${D}"/usr/share
}
pkg_preinst() {
has_version "<${CATEGORY}/${PN}-0.96.92-r1"
clean_stale_junk=$?
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/${P}
# clean up stale junk left there by old faulty ebuilds
# see Bug 118022 and Bug 132448
if [[ $clean_stale_junk = 0 ]] ; then
einfo "Cleaning up stale orphaned py[co] files..."
[[ -d "${ROOT}/usr/$(get_libdir)/scons/SCons" ]] \
&& rm -rf "${ROOT}/usr/$(get_libdir)/scons/SCons"
einfo "Done."
fi
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/${P}
}
|