aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/python-mccabe/slack-desc19
-rw-r--r--python/python2-mccabe/README (renamed from python/python-mccabe/README)0
-rw-r--r--python/python2-mccabe/python2-mccabe.SlackBuild (renamed from python/python-mccabe/python-mccabe.SlackBuild)6
-rw-r--r--python/python2-mccabe/python2-mccabe.info (renamed from python/python-mccabe/python-mccabe.info)2
-rw-r--r--python/python2-mccabe/slack-desc19
5 files changed, 23 insertions, 23 deletions
diff --git a/python/python-mccabe/slack-desc b/python/python-mccabe/slack-desc
deleted file mode 100644
index b83d5f770ccfa..0000000000000
--- a/python/python-mccabe/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.
-# Line up the first '|' above the ':' following the base package name, and
-# the '|' on the right side marks the last column you can put a character in.
-# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':' except on otherwise blank lines.
-
- |-----handy-ruler------------------------------------------------------|
-python-mccabe: python-mccabe (Complexity checker for Python)
-python-mccabe:
-python-mccabe: McCabe checker, plugin for flake8. Ned's script to check McCabe
-python-mccabe: complexity. This module provides a plugin for flake8, the Python
-python-mccabe: code checker.
-python-mccabe:
-python-mccabe: Homepage: https://github.com/flintwork/mccabe
-python-mccabe:
-python-mccabe:
-python-mccabe:
-python-mccabe:
diff --git a/python/python-mccabe/README b/python/python2-mccabe/README
index d462b9b7859f9..d462b9b7859f9 100644
--- a/python/python-mccabe/README
+++ b/python/python2-mccabe/README
diff --git a/python/python-mccabe/python-mccabe.SlackBuild b/python/python2-mccabe/python2-mccabe.SlackBuild
index 2ab794de47dd4..ece68bb1e40ee 100644
--- a/python/python-mccabe/python-mccabe.SlackBuild
+++ b/python/python2-mccabe/python2-mccabe.SlackBuild
@@ -22,8 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=python-mccabe
-SRCNAM=$(echo $PRGNAM | cut -c8-13)
+PRGNAM=python2-mccabe
+SRCNAM=$( echo $PRGNAM | cut -d- -f2- )
VERSION=${VERSION:-0.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,7 +70,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python setup.py install --root=$PKG
+python2 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/python/python-mccabe/python-mccabe.info b/python/python2-mccabe/python2-mccabe.info
index 43eeec86298e5..fd3ac4b3fc571 100644
--- a/python/python-mccabe/python-mccabe.info
+++ b/python/python2-mccabe/python2-mccabe.info
@@ -1,4 +1,4 @@
-PRGNAM="python-mccabe"
+PRGNAM="python2-mccabe"
VERSION="0.6.1"
HOMEPAGE="https://github.com/flintwork/mccabe"
DOWNLOAD="https://pypi.python.org/packages/06/18/fa675aa501e11d6d6ca0ae73a101b2f3571a565e0f7d38e062eec18a91ee/mccabe-0.6.1.tar.gz"
diff --git a/python/python2-mccabe/slack-desc b/python/python2-mccabe/slack-desc
new file mode 100644
index 0000000000000..0e7e44efe237e
--- /dev/null
+++ b/python/python2-mccabe/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+python2-mccabe: python2-mccabe (Complexity checker for Python)
+python2-mccabe:
+python2-mccabe: McCabe checker, plugin for flake8. Ned's script to check McCabe
+python2-mccabe: complexity. This module provides a plugin for flake8, the Python
+python2-mccabe: code checker.
+python2-mccabe:
+python2-mccabe: Homepage: https://github.com/flintwork/mccabe
+python2-mccabe:
+python2-mccabe:
+python2-mccabe:
+python2-mccabe: