Files
for-gentoo/dev-python/python-bugzilla/python-bugzilla-0.7.0_p20121019.ebuild
T
2012-10-30 14:05:12 +01:00

38 lines
762 B
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
PYTHON_DEPEND="2"
inherit distutils eutils
MY_P=${P%_*}
DESCRIPTION="A Python library for Bugzilla"
HOMEPAGE="https://fedorahosted.org/python-bugzilla/"
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S=${WORKDIR}/${MY_P}
PYTHON_MODNAME="bugzilla"
src_prepare() {
epatch "${FILESDIR}"/${MY_P}-82c2c.patch
distutils_src_prepare
}
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
pkg_postinst() {
distutils_pkg_postinst
elog "Automatic detection of file type of attachments"
elog "requires sys-apps/file compiled with USE=python."
}