45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-misc/pysmssend/pysmssend-1.45.ebuild,v 1.4 2011/03/05 22:49:52 arfrever Exp $
|
|
|
|
EAPI="3"
|
|
PYTHON_DEPEND="2:2.5"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="2.4 3.*"
|
|
|
|
inherit distutils eutils
|
|
|
|
DESCRIPTION="Python Application for sending sms over multiple ISPs"
|
|
HOMEPAGE="http://pysmssend.silverarrow.org/"
|
|
SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="qt4"
|
|
|
|
DEPEND=">dev-python/mechanize-0.1.7b
|
|
qt4? ( dev-python/PyQt4[X] )"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PYTHON_MODNAME="pysmssendmod"
|
|
|
|
src_prepare() {
|
|
python_convert_shebangs -r 2 .
|
|
}
|
|
|
|
src_install() {
|
|
distutils_src_install
|
|
if use qt4; then
|
|
insinto /usr/share/${PN}/Icons || die "insinto failed"
|
|
doins Icons/* || die "doins failed"
|
|
doicon Icons/pysmssend.png || die "doicon failed"
|
|
dobin pysmssend pysmssendcmd || die "failed to create executables"
|
|
make_desktop_entry pysmssend pySMSsend pysmssend \
|
|
"Applications;Network" || die "make_desktop_entry failed"
|
|
else
|
|
dobin pysmssendcmd || die "failed to create executable"
|
|
dosym pysmssendcmd /usr/bin/pysmssend || die "dosym failed"
|
|
fi
|
|
dodoc README AUTHORS TODO || die "dodoc failed"
|
|
}
|