aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2017-03-29 22:17:11 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-01 06:57:03 +0700
commitec73d882d67d0c69ec5c814b02a733fa52d779bd (patch)
tree52d0bc355b9bd63439055cbe70e7035a2ccbadde
parentefe247a89a6553f6a9ced84bc904fe68d3a7cef8 (diff)
python/phply: Updated for version 1.0.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--python/phply/README13
-rw-r--r--python/phply/README.Slackware10
-rw-r--r--python/phply/phply-setup.py.diff18
-rw-r--r--python/phply/phply.SlackBuild10
-rw-r--r--python/phply/phply.info8
5 files changed, 19 insertions, 40 deletions
diff --git a/python/phply/README b/python/phply/README
index f99b80693ac05..aad37106ba7d0 100644
--- a/python/phply/README
+++ b/python/phply/README
@@ -1,15 +1,4 @@
phply is a parser for the PHP programming language written using PLY, a
Lex/YACC-style parser generator toolkit for Python.
-Included tools installed to /usr/bin:
-
-phpshell.py - PHP interactive interpreter written in Python
-
-php2json.py - Converts PHP to a JSON-based abstract syntax tree
-Usage: php2json.py < input.php > output.json
-
-php2python.py - Converts PHP to Python using unparse.py
-Usage: php2python.py < input.php > output.py
-
-php2jinja.py - Converts PHP to Jinja2 templates (experimental)
-Usage: php2jinja.py < input.php > output.html
+See README.Slackware for some usage notes.
diff --git a/python/phply/README.Slackware b/python/phply/README.Slackware
new file mode 100644
index 0000000000000..16d2e14bea10d
--- /dev/null
+++ b/python/phply/README.Slackware
@@ -0,0 +1,10 @@
+How to use phply?
+-----------------
+
+For the lexer test execute in a shell:
+
+$ phplex /path/to/file_name.php
+
+For the parser test execute in a shell:
+
+$ phpparse /path/to/file_name.php
diff --git a/python/phply/phply-setup.py.diff b/python/phply/phply-setup.py.diff
deleted file mode 100644
index 34f495ac990c0..0000000000000
--- a/python/phply/phply-setup.py.diff
+++ /dev/null
@@ -1,18 +0,0 @@
---- phply-0.9.1.orig/setup.py 2015-11-16 13:07:31.666674204 -0700
-+++ phply-0.9.1/setup.py 2015-11-16 13:15:02.571666129 -0700
-@@ -19,6 +19,15 @@
- license='BSD',
- url='http://www.github.com/ramen/phply',
-
-+ scripts=[
-+ 'tools/php2jinja.py',
-+ 'tools/php2json.py',
-+ 'tools/php2python.py',
-+ 'tools/phpshell.py',
-+ 'tools/tokenize.php',
-+ 'tools/unparse.py',
-+ ],
-+
- classifiers=[
- 'Development Status :: 2 - Pre-Alpha',
- 'Environment :: Console',
diff --git a/python/phply/phply.SlackBuild b/python/phply/phply.SlackBuild
index a1b897e3e33c2..69533a26469f0 100644
--- a/python/phply/phply.SlackBuild
+++ b/python/phply/phply.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for phply
-# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com>
+# Copyright 2015-2017 Brenton Earl <brent@exitstatusone.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=phply
-VERSION=${VERSION:-0.9.1}
+VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,17 +69,15 @@ 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 {} \;
-# make setup.py include scripts in $PRGNAM-$VERSION/tools/
-patch -p1 --verbose < $CWD/phply-setup.py.diff
-
python 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE PKG-INFO README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README.Slackware > $PKG/usr/doc/$PRGNAM-$VERSION/README.Slackware
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/python/phply/phply.info b/python/phply/phply.info
index 6804f41a9030c..3c2a227eb06fc 100644
--- a/python/phply/phply.info
+++ b/python/phply/phply.info
@@ -1,10 +1,10 @@
PRGNAM="phply"
-VERSION="0.9.1"
+VERSION="1.0.0"
HOMEPAGE="https://github.com/ramen/phply"
-DOWNLOAD="https://pypi.python.org/packages/source/p/phply/phply-0.9.1.tar.gz"
-MD5SUM="f336ab9d35bd9c0f0a50ede3252b12ba"
+DOWNLOAD="https://pypi.python.org/packages/2f/b6/6f3689196078fdf9e48d11289f5d37427956fa755e62ab3284ea07ecb028/phply-1.0.0.tar.gz"
+MD5SUM="5849b0eb9470aab54b0a5d59dbaf63b9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="ply simplejson"
+REQUIRES="ply"
MAINTAINER="Brenton Earl"
EMAIL="brent@exitstatusone.com"