aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-09-08 03:16:54 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-09-08 03:16:54 +0800
commite40957d48800f7febe079c19e8783f52b1a7e5c5 (patch)
treef5ee76b40347bef966b67fbfe00ae481ae0f5954 /devel
parentd1dc50f3acc0c090b23d6878f06534e6d2464c03 (diff)
downloadfreebsd-ports-gnome-e40957d48800f7febe079c19e8783f52b1a7e5c5.tar.gz
freebsd-ports-gnome-e40957d48800f7febe079c19e8783f52b1a7e5c5.tar.zst
freebsd-ports-gnome-e40957d48800f7febe079c19e8783f52b1a7e5c5.zip
- Update to 0.12
- Add CHEESESHOP to MASTER_SITES - Add LICENSE - Remove leading indefinite article from COMMENT - Add options: EXAMPLES and NLS - Install .desktop to DESKTOPDIR - Fix USE_PYTHON - Use REINPLACE_CMD instead of patch file - Do not silence installation message - Cosmetic change - Take maintainership - Reformat pkg-descr Changes: http://docs.bpython-interpreter.org/changelog.html
Diffstat (limited to 'devel')
-rw-r--r--devel/bpython/Makefile51
-rw-r--r--devel/bpython/distinfo4
-rw-r--r--devel/bpython/files/patch-setup.py12
-rw-r--r--devel/bpython/pkg-descr15
-rw-r--r--devel/bpython/pkg-plist61
5 files changed, 109 insertions, 34 deletions
diff --git a/devel/bpython/Makefile b/devel/bpython/Makefile
index c3afe92b788d..76e9872a68a5 100644
--- a/devel/bpython/Makefile
+++ b/devel/bpython/Makefile
@@ -2,24 +2,59 @@
# $FreeBSD$
PORTNAME= bpython
-PORTVERSION= 0.11
+PORTVERSION= 0.12
CATEGORIES= devel python
-MASTER_SITES= http://bpython-interpreter.org/releases/
+MASTER_SITES= CHEESESHOP \
+ http://bpython-interpreter.org/releases/
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A fancy interface to the Python interpreter
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Fancy interface to the Python interpreter
+LICENSE= MIT
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:${PORTSDIR}/textproc/py-sphinx
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:${PORTSDIR}/textproc/py-pygments
-USE_PYTHON= 2.5+
-USE_PYDISTUTILS= easy_install
+OPTIONS_DEFINE= EXAMPLES NLS
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=easy_install
+PYDISTUTILS_BUILD_TARGET= build bdist_egg
MAN1= bpython.1
MAN5= bpython-config.5
+PORTEXAMPLES= light.theme sample-config sample.theme
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+= NLS=""
+USES+= gettext
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e '/build\/man\/bpython/d; /data\/bpython.desktop/d' ${WRKSRC}/${PYSETUP}
post-install:
- @${INSTALL_MAN} ${WRKSRC}/doc/bpython.1 ${MANPREFIX}/man/man1
- @${INSTALL_MAN} ${WRKSRC}/doc/bpython-config.5 ${MANPREFIX}/man/man5
+ ${MKDIR} ${DESKTOPDIR}/
+ ${INSTALL_MAN} ${WRKSRC}/build/man/bpython.1 ${MANPREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/build/man/bpython-config.5 ${MANPREFIX}/man/man5/
+ ${INSTALL_DATA} ${WRKSRC}/data/bpython.desktop ${DESKTOPDIR}/
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${EXAMPLESDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
+.endif
+.if ${PORT_OPTIONS:MNLS}
+.for lang in it_IT nl_NL
+ ${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES/
+.endfor
+.for lang in de es_ES it_IT nl_NL
+ ${INSTALL_DATA} ${WRKSRC}/bpython/translations/${lang}/LC_MESSAGES/bpython.mo \
+ ${PREFIX}/share/locale/${lang}/LC_MESSAGES/
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/devel/bpython/distinfo b/devel/bpython/distinfo
index c031d734f28b..af819943e385 100644
--- a/devel/bpython/distinfo
+++ b/devel/bpython/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bpython-0.11.tar.gz) = 60cf39712564f0a2516f7b0acf86f3c0392e67a79914eeed189400ffaaaeb309
-SIZE (bpython-0.11.tar.gz) = 86569
+SHA256 (bpython-0.12.tar.gz) = 74a9074c5d5448e09ea9efe6b5305a4f580617d73c38f21eab5fe983312a8ec6
+SIZE (bpython-0.12.tar.gz) = 130968
diff --git a/devel/bpython/files/patch-setup.py b/devel/bpython/files/patch-setup.py
deleted file mode 100644
index d96f2d0d8f1b..000000000000
--- a/devel/bpython/files/patch-setup.py
+++ /dev/null
@@ -1,12 +0,0 @@
---- setup.py.orig 2012-04-20 19:35:36.898907237 +0600
-+++ setup.py 2012-04-20 19:35:49.460978953 +0600
-@@ -56,9 +56,6 @@
- man_dir = 'share/man'
-
- data_files = [
-- # man pages
-- (os.path.join(man_dir, 'man1'), ['doc/bpython.1']),
-- (os.path.join(man_dir, 'man5'), ['doc/bpython-config.5']),
- # desktop shortcut
- (os.path.join('share', 'applications'), ['data/bpython.desktop'])
- ]
diff --git a/devel/bpython/pkg-descr b/devel/bpython/pkg-descr
index 0f93250f0d30..765dbecabc39 100644
--- a/devel/bpython/pkg-descr
+++ b/devel/bpython/pkg-descr
@@ -1,12 +1,11 @@
bpython is a fancy interface to the Python interpreter for Unix-like operating
systems. It has the following features:
- * In-line syntax highlighting.
- * Readline-like autocomplete with suggestions displayed as you type.
- * Expected parameter list for any Python function.
- * "Rewind" function to pop the last line of code from memory and
- re-evaluate.
- * Send the code you've entered off to a pastebin.
- * Save the code you've entered to a file.
- * Auto-indentation.
+- In-line syntax highlighting.
+- Readline-like autocomplete with suggestions displayed as you type.
+- Expected parameter list for any Python function.
+- "Rewind" function to pop the last line of code from memory and re-evaluate.
+- Send the code you've entered off to a pastebin.
+- Save the code you've entered to a file.
+- Auto-indentation.
WWW: http://bpython-interpreter.org/
diff --git a/devel/bpython/pkg-plist b/devel/bpython/pkg-plist
index 71047a309b68..b8f88bf71411 100644
--- a/devel/bpython/pkg-plist
+++ b/devel/bpython/pkg-plist
@@ -1,4 +1,3 @@
-@comment $FreeBSD$
bin/bpython
bin/bpython-gtk
bin/bpython-urwid
@@ -21,9 +20,15 @@ bin/bpython-urwid
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_internal.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_internal.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_internal.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_py3compat.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_py3compat.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/_py3compat.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/args.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/args.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/args.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/autocomplete.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/autocomplete.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/autocomplete.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/cli.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/cli.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/cli.pyo
@@ -52,16 +57,64 @@ bin/bpython-urwid
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/repl.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/repl.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/repl.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test.theme
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_args.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_args.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_args.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_bpython.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_bpython.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_bpython.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_config.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_config.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_config.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_crashers.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_crashers.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_crashers.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_formatter.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_formatter.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_formatter.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_gtk_.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_gtk_.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_gtk_.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_importcompletion.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_importcompletion.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_importcompletion.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_inspection.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_inspection.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_inspection.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_keys.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_keys.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_keys.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_pager.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_pager.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_pager.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_repl.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_repl.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_repl.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_wizard.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_wizard.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test/test_wizard.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/translations/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/translations/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/translations/__init__.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/urwid.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/urwid.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/urwid.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share/applications/bpython.desktop
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share/applications
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share
+share/applications/bpython.desktop
+%%NLS%%share/locale/de/LC_MESSAGES/bpython.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/bpython.mo
+%%NLS%%share/locale/it_IT/LC_MESSAGES/bpython.mo
+%%NLS%%share/locale/nl_NL/LC_MESSAGES/bpython.mo
+%%NLS%%@dirrmtry share/locale/nl_NL/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/nl_NL
+%%NLS%%@dirrmtry share/locale/it_IT/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/it_IT
+@dirrmtry share/applications
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/translations
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython/test
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpython
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bpdb
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO