From 67a798060f55328ccb88faba7bab660e1ec03f12 Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Sun, 7 Aug 2016 11:26:24 +0000 Subject: irc/py-limnoria: Convert to OPTION'al RUN_DEPENDS - Add Global and Plugin OPTIONS for optional dependencies - Set OPTIONS_DEFAULT to maintain functional compatibility with 2016Q3 - Enable concurrent Python installation - Update test target to use PYTHON_CMD (version specific execution) - Add TEST_DEPENDS on feedparser as it fails (not skips) if not available when running tests. - Remove nested leading indefinite article in COMMENT MFH: 2016Q3 --- irc/py-limnoria/Makefile | 49 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) (limited to 'irc/py-limnoria/Makefile') diff --git a/irc/py-limnoria/Makefile b/irc/py-limnoria/Makefile index 0f73bf63445b..32fd7379a3a2 100644 --- a/irc/py-limnoria/Makefile +++ b/irc/py-limnoria/Makefile @@ -8,26 +8,53 @@ MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org -COMMENT= Modified version of Supybot (an IRC bot and framework) +COMMENT= Modified version of Supybot (IRC bot and framework) -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet \ - ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz \ - ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \ - ${PYTHON_PKGNAMEPREFIX}python-gnupg>=0:security/py-python-gnupg \ - ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser \ - ${PYTHON_PKGNAMEPREFIX}sqlalchemy07>=0:databases/py-sqlalchemy07 \ - ${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks \ - ${PYTHON_PKGNAMEPREFIX}ecdsa>0:security/py-ecdsa +LICENSE= BSD3CLAUSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser + +OPTIONS_DEFINE= ECDSA PROXY +OPTIONS_DEFAULT= ECDSA ENCODING GPG PROXY RSS SQLALCHEMY TIME +OPTIONS_GROUP= EXTRAS +OPTIONS_GROUP_EXTRAS= ENCODING GPG RSS TIME +OPTIONS_RADIO= AKA +OPTIONS_RADIO_AKA= SQLITE SQLALCHEMY + +EXTRAS_DESC= Plugin Extras +AKA_DESC= AKA Plugin: SQL Backend (none = plugin disabled) + +ECDSA_DESC= ECDSA SASL authentication +PROXY_DESC= SOCKS Proxy connections + +ENCODING_DESC= Web Plugin: Better encoding detection (via chardet) +GPG_DESC= GPG Plugin: GnuPG Authentication +RSS_DESC= RSS Plugin: Feed parsing (via feedparser) +TIME_DESC= Time Plugin: Extra time features (via dateutil/pytz) + +SQLALCHEMY_DESC= SQLAlchemy database support + +ECDSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ecdsa>0:security/py-ecdsa +PROXY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks + +ENCODING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet +GPG_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-gnupg>=0:security/py-python-gnupg +RSS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser +TIME_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \ + ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz + +SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 +SQLALCHEMY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10 USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes # Needs to be installed first to work. do-test: - @cd ${WRKSRC} && ${LOCALBASE}/bin/supybot-test \ + @cd ${WRKSRC} && ${PYTHON_CMD} ${LOCALBASE}/bin/supybot-test \ --no-network \ --plugins-dir="./build/lib*/supybot/plugins/" \ --disable-multiprocessing -- cgit v1.2.3