aboutsummaryrefslogtreecommitdiff
path: root/net-im/py-libturpial
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2014-02-22 16:48:20 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2014-02-22 16:48:20 +0000
commite5798c6f6fb17e7a2338f7378af5910a455de570 (patch)
treebf0183e8d7563b93b581798fb2b7e161712c6227 /net-im/py-libturpial
parent3b4b318649e25e8f5e69181206e82b2e0ca95647 (diff)
downloadports-e5798c6f6fb17e7a2338f7378af5910a455de570.tar.gz
ports-e5798c6f6fb17e7a2338f7378af5910a455de570.zip
Notes
Diffstat (limited to 'net-im/py-libturpial')
-rw-r--r--net-im/py-libturpial/Makefile24
-rw-r--r--net-im/py-libturpial/distinfo2
-rw-r--r--net-im/py-libturpial/files/patch-libturpial__common____init__.py11
-rw-r--r--net-im/py-libturpial/files/patch-libturpial__common__tools.py14
-rw-r--r--net-im/py-libturpial/pkg-descr5
5 files changed, 56 insertions, 0 deletions
diff --git a/net-im/py-libturpial/Makefile b/net-im/py-libturpial/Makefile
new file mode 100644
index 000000000000..f48dd118f1c2
--- /dev/null
+++ b/net-im/py-libturpial/Makefile
@@ -0,0 +1,24 @@
+# Created by: Olivier Duchateau
+# $FreeBSD$
+
+PORTNAME= libturpial
+PORTVERSION= 1.6.0
+CATEGORIES= net-im python
+MASTER_SITES= http://files.turpial.org.ve/sources/stable/ \
+ CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= python@FreeBSD.org
+COMMENT= Twitter and Identi.ca API
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}simplejson>=3.3.1:${PORTSDIR}/devel/py-simplejson \
+ ${PYTHON_PKGNAMEPREFIX}oauth>=1.0.1:${PORTSDIR}/net/py-oauth \
+ ${PYTHON_PKGNAMEPREFIX}requests>=1.2.3:${PORTSDIR}/www/py-requests
+
+USE_PYTHON= 2
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
+
+.include <bsd.port.mk>
diff --git a/net-im/py-libturpial/distinfo b/net-im/py-libturpial/distinfo
new file mode 100644
index 000000000000..ea44eee0c8cd
--- /dev/null
+++ b/net-im/py-libturpial/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libturpial-1.6.0.tar.gz) = 19082e952fb6c1c6a50cb9f1709735402905027c941bd40143e7f7da5ce61b77
+SIZE (libturpial-1.6.0.tar.gz) = 182951
diff --git a/net-im/py-libturpial/files/patch-libturpial__common____init__.py b/net-im/py-libturpial/files/patch-libturpial__common____init__.py
new file mode 100644
index 000000000000..bcb80ce9dca8
--- /dev/null
+++ b/net-im/py-libturpial/files/patch-libturpial__common____init__.py
@@ -0,0 +1,11 @@
+--- ./libturpial/common/__init__.py.orig 2013-07-14 22:25:31.000000000 +0000
++++ ./libturpial/common/__init__.py 2014-02-22 11:24:15.000000000 +0000
+@@ -12,6 +12,8 @@
+ NUM_STATUSES = 20
+
+ OS_LINUX = 'linux' #: Constant to identify Linux based operating systems
++OS_FREEBSD = 'freebsd' #: Constant to identify FreeBSD based operating systems
++OS_DFLY = 'dragonfly' #: Constant to identify DragonFly based operating systems
+ OS_WINDOWS = 'windows' #: Constant to identify Windows operating systems
+ OS_MAC = 'darwin' #: Constant to identify Mac operating systems
+ OS_JAVA = 'java' #: Constant to identify Java based operating systems
diff --git a/net-im/py-libturpial/files/patch-libturpial__common__tools.py b/net-im/py-libturpial/files/patch-libturpial__common__tools.py
new file mode 100644
index 000000000000..18745322b9cd
--- /dev/null
+++ b/net-im/py-libturpial/files/patch-libturpial__common__tools.py
@@ -0,0 +1,14 @@
+--- ./libturpial/common/tools.py.orig 2014-01-18 13:59:52.000000000 +0000
++++ ./libturpial/common/tools.py 2014-02-22 11:26:39.000000000 +0000
+@@ -33,6 +33,11 @@
+ """ Returns a string according to the OS host """
+ if sys.platform.startswith('linux'):
+ return OS_LINUX
++ elif sys.platform.startswith('freebsd'):
++ return OS_FREEBSD
++ # Need test on real DragonFly system instead of guess
++ elif 'dragonfly' in sys.platform:
++ return OS_DFLY
+ elif sys.platform.startswith('win32'):
+ return OS_WINDOWS
+ elif sys.platform.startswith('darwin'):
diff --git a/net-im/py-libturpial/pkg-descr b/net-im/py-libturpial/pkg-descr
new file mode 100644
index 000000000000..b63d11d0f569
--- /dev/null
+++ b/net-im/py-libturpial/pkg-descr
@@ -0,0 +1,5 @@
+libturpial is a library that handles multiple microblogging protocols
+(Identi.ca, Twitter). It implements a lot of features and aims to support
+all the features for each protocol.
+
+WWW: http://turpial.org.ve/