diff options
author | Tim Harder <radhermit@gentoo.org> | 2015-04-02 02:34:16 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2015-04-02 02:34:16 +0000 |
commit | b6a557adc578f4fb5b38bc2eeed3b04aa57c00b6 (patch) | |
tree | 356e645c0255104b295d0bdc9e7aca223a0ab65a /sys-apps | |
parent | Version bump and remove old. (diff) | |
download | gentoo-2-b6a557adc578f4fb5b38bc2eeed3b04aa57c00b6.tar.gz gentoo-2-b6a557adc578f4fb5b38bc2eeed3b04aa57c00b6.tar.bz2 gentoo-2-b6a557adc578f4fb5b38bc2eeed3b04aa57c00b6.zip |
Version bump.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pkgcore/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/pkgcore/pkgcore-0.9.ebuild | 83 | ||||
-rw-r--r-- | sys-apps/pkgcore/pkgcore-9999.ebuild | 16 |
3 files changed, 100 insertions, 7 deletions
diff --git a/sys-apps/pkgcore/ChangeLog b/sys-apps/pkgcore/ChangeLog index 821d1e29dd25..7defc041fe14 100644 --- a/sys-apps/pkgcore/ChangeLog +++ b/sys-apps/pkgcore/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/pkgcore # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.184 2015/03/24 09:33:54 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/ChangeLog,v 1.185 2015/04/02 02:34:16 radhermit Exp $ + +*pkgcore-0.9 (02 Apr 2015) + + 02 Apr 2015; Tim Harder <radhermit@gentoo.org> +pkgcore-0.9.ebuild, + pkgcore-9999.ebuild: + Version bump. *pkgcore-0.8.6 (24 Mar 2015) diff --git a/sys-apps/pkgcore/pkgcore-0.9.ebuild b/sys-apps/pkgcore/pkgcore-0.9.ebuild new file mode 100644 index 000000000000..ea4e25710e01 --- /dev/null +++ b/sys-apps/pkgcore/pkgcore-0.9.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.9.ebuild,v 1.1 2015/04/02 02:34:16 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcore/pkgcore.git" + inherit git-r3 +else + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2" +fi + +DESCRIPTION="pkgcore package manager" +HOMEPAGE="https://github.com/pkgcore/pkgcore" + +LICENSE="|| ( BSD GPL-2 )" +SLOT="0" +IUSE="doc test" + +RDEPEND=">=dev-python/snakeoil-0.6.3[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/pyparsing[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) ) +" + +pkg_setup() { + # disable snakeoil 2to3 caching... + unset PY2TO3_CACHEDIR + + mydistutilsargs=( + build + --disable-html-docs + --disable-man-pages + ) +} + +python_compile_all() { + esetup.py $(use doc && echo 'build_docs') + + if [[ ${PV} == *9999 ]]; then + esetup.py build_man + ln -s "${BUILD_DIR}/sphinx/man" man || die + fi + + # symlinks generated manpages into source root + # dead symlinks are tolerated + ln -s "${BUILD_DIR}/sphinx/html" html || die +} + +python_test() { + esetup.py test +} + +src_install() { + mydistutilsargs+=( + install + --disable-html-docs + --disable-man-pages + ) + + distutils-r1_src_install +} + +python_install_all() { + local cmds=( + install_man + ) + use doc && cmds+=( + install_docs --path="${ED%/}"/usr/share/doc/${PF}/html + ) + + distutils-r1_python_install "${cmds[@]}" + distutils-r1_python_install_all +} + +pkg_postinst() { + python_foreach_impl pplugincache +} diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild b/sys-apps/pkgcore/pkgcore-9999.ebuild index 9992b409daf4..43946987a7cd 100644 --- a/sys-apps/pkgcore/pkgcore-9999.ebuild +++ b/sys-apps/pkgcore/pkgcore-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-9999.ebuild,v 1.23 2015/03/24 06:06:02 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-9999.ebuild,v 1.24 2015/04/02 02:34:16 radhermit Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 ) @@ -11,20 +11,20 @@ if [[ ${PV} == *9999 ]] ; then inherit git-r3 else KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" - SRC_URI="http://pkgcore.googlecode.com/files/${P}.tar.bz2" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" fi DESCRIPTION="pkgcore package manager" HOMEPAGE="https://github.com/pkgcore/pkgcore" -LICENSE="GPL-2" +LICENSE="|| ( BSD GPL-2 )" SLOT="0" IUSE="doc test" RDEPEND="=dev-python/snakeoil-9999[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} - dev-python/sphinx[${PYTHON_USEDEP}] dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) ) " @@ -40,11 +40,15 @@ pkg_setup() { } python_compile_all() { - esetup.py build_man $(use doc && echo 'build_docs') + esetup.py $(use doc && echo 'build_docs') + + if [[ ${PV} == *9999 ]]; then + esetup.py build_man + ln -s "${BUILD_DIR}/sphinx/man" man || die + fi # symlinks generated manpages into source root # dead symlinks are tolerated - ln -s "${BUILD_DIR}/sphinx/man" man || die ln -s "${BUILD_DIR}/sphinx/html" html || die } |