You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.6 KiB
58 lines
1.6 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-portage/layman-dbtools/layman-dbtools-0_p20100322.ebuild,v 1.3 2011/09/20 22:15:23 mgorny Exp $
|
||
|
|
||
|
EAPI="3"
|
||
|
PYTHON_DEPEND="2"
|
||
|
PYTHON_USE_WITH="xml"
|
||
|
SUPPORT_PYTHON_ABIS="1"
|
||
|
RESTRICT_PYTHON_ABIS="3.*"
|
||
|
|
||
|
inherit git-2 python
|
||
|
|
||
|
DESCRIPTION="Tools to work with layman-global.txt/repositories.xml like files"
|
||
|
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/repositories-xml-format.git;a=summary"
|
||
|
SRC_URI=""
|
||
|
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/repositories-xml-format.git
|
||
|
http://git.overlays.gentoo.org/gitroot/proj/repositories-xml-format.git"
|
||
|
EGIT_COMMIT="8c4d7440c6d47f7ed690edafb7c0af53742f3297"
|
||
|
|
||
|
if [[ ${PV} != 0_p20100322 ]]; then
|
||
|
die 'Broken bump detected: same \${EGIT_COMMIT} again'
|
||
|
fi
|
||
|
|
||
|
LICENSE="|| ( GPL-2 GPL-3 )"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND=""
|
||
|
RDEPEND="app-portage/layman"
|
||
|
|
||
|
src_install() {
|
||
|
abi_specific_install() {
|
||
|
local code_dir="$(python_get_sitedir)"/layman/dbtools
|
||
|
|
||
|
exeinto "${code_dir}"
|
||
|
doexe write-repositories-xml.py || die "doexe failed"
|
||
|
|
||
|
insinto "${code_dir}"
|
||
|
doins layman/dbtools/*.py || die "doins failed"
|
||
|
|
||
|
dodir /usr/bin
|
||
|
dosym "${code_dir}"/write-repositories-xml.py /usr/bin/write-repositories-xml-${PYTHON_ABI} \
|
||
|
|| die "dosym failed"
|
||
|
}
|
||
|
python_execute_function abi_specific_install
|
||
|
|
||
|
python_generate_wrapper_scripts "${ED}usr/bin/write-repositories-xml"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
python_mod_optimize layman/dbtools
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
python_mod_cleanup layman/dbtools
|
||
|
}
|