forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.16, Repoman-2.3.6
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="6" | ||
PYTHON_REQ_USE="sqlite" | ||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) | ||
|
||
EGIT_REPO_URI="https://github.com/buildbot/buildbot.git" | ||
|
||
[[ ${PV} == *9999 ]] && inherit git-r3 | ||
inherit distutils-r1 | ||
|
||
MY_PV="${PV/_p/.post}" | ||
MY_P="${PN}-${MY_PV}" | ||
|
||
DESCRIPTION="BuildBot common www build tools for packaging releases" | ||
HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg" | ||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
KEYWORDS="" | ||
else | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
# No real integration tests for this pkg. | ||
# all tests are related to making releases and final checks for distribution | ||
|
||
RDEPEND=" | ||
~dev-util/buildbot-${PV}[${PYTHON_USEDEP}] | ||
dev-python/mock[${PYTHON_USEDEP}] | ||
" | ||
|
||
DEPEND="${RDEPEND} | ||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}] | ||
" | ||
|
||
S=${WORKDIR}/${MY_P} | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${P}-Removedevelopmentvirtualenvironmenthack.patch" | ||
) | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
} |
36 changes: 36 additions & 0 deletions
36
...l/buildbot-pkg/files/buildbot-pkg-0.9.15_p1-Removedevelopmentvirtualenvironmenthack.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 6d9f81ec15b7b18f8791981a0d65dc4f266022ca Mon Sep 17 00:00:00 2001 | ||
From: Brian Dolbec <[email protected]> | ||
Date: Mon, 15 Jan 2018 16:27:54 -0800 | ||
Subject: [PATCH] pkg/buildbot_pkg.py: Remove development virtualenvironment | ||
hack | ||
|
||
This hack is not needed/nor works reliably in non-virtualenv installs. | ||
--- | ||
pkg/buildbot_pkg.py | 11 ----------- | ||
1 file changed, 11 deletions(-) | ||
|
||
diff --git a/buildbot_pkg.py b/buildbot_pkg.py | ||
index 89847b040..7788e12d6 100644 | ||
--- a/buildbot_pkg.py | ||
+++ b/buildbot_pkg.py | ||
@@ -33,17 +33,6 @@ import setuptools.command.build_py | ||
import setuptools.command.egg_info | ||
from setuptools import setup | ||
|
||
-old_listdir = os.listdir | ||
- | ||
- | ||
-def listdir(path): | ||
- # patch listdir to avoid looking into node_modules | ||
- l = old_listdir(path) | ||
- if "node_modules" in l: | ||
- l.remove("node_modules") | ||
- return l | ||
-os.listdir = listdir | ||
- | ||
|
||
def check_output(cmd): | ||
"""Version of check_output which does not throw error""" | ||
-- | ||
2.15.1 | ||
|