From owner-svn-ports-head@FreeBSD.ORG Tue Jan 28 14:15:22 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6DBEFB22; Tue, 28 Jan 2014 14:15:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E27E1176; Tue, 28 Jan 2014 14:15:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0SEFMCJ007230; Tue, 28 Jan 2014 14:15:22 GMT (envelope-from demon@svn.freebsd.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0SEFLbG007226; Tue, 28 Jan 2014 14:15:21 GMT (envelope-from demon@svn.freebsd.org) Message-Id: <201401281415.s0SEFLbG007226@svn.freebsd.org> From: Dmitry Sivachenko Date: Tue, 28 Jan 2014 14:15:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r341571 - in head/devel: . py-user_agents X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jan 2014 14:15:22 -0000 Author: demon Date: Tue Jan 28 14:15:21 2014 New Revision: 341571 URL: http://svnweb.freebsd.org/changeset/ports/341571 QAT: https://qat.redports.org/buildarchive/r341571/ Log: New port: py-user_agents. user_agents is a Python library that provides an easy way to identify/detect devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings. The goal is to reliably detect whether: -- User agent is a mobile, tablet or PC based device -- User agent has touch capabilities (has touch screen) user_agents relies on the excellent ua-parser to do the actual parsing of the raw user agent string. Added: head/devel/py-user_agents/ head/devel/py-user_agents/Makefile (contents, props changed) head/devel/py-user_agents/distinfo (contents, props changed) head/devel/py-user_agents/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Jan 28 14:11:31 2014 (r341570) +++ head/devel/Makefile Tue Jan 28 14:15:21 2014 (r341571) @@ -3837,6 +3837,7 @@ SUBDIR += py-urlimport SUBDIR += py-urwid SUBDIR += py-usb + SUBDIR += py-user_agents SUBDIR += py-utils SUBDIR += py-venusian SUBDIR += py-versiontools Added: head/devel/py-user_agents/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-user_agents/Makefile Tue Jan 28 14:15:21 2014 (r341571) @@ -0,0 +1,19 @@ +# Created by: Dmitry Sivachenko +# $FreeBSD$ + +PORTNAME= user-agents +PORTVERSION= 0.2.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= demon@FreeBSD.org +COMMENT= Python library to identify devices using User-Agent string + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/ua_parser/__init__.py:${PORTSDIR}/devel/py-ua_parser + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes + +.include Added: head/devel/py-user_agents/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-user_agents/distinfo Tue Jan 28 14:15:21 2014 (r341571) @@ -0,0 +1,2 @@ +SHA256 (user-agents-0.2.0.tar.gz) = 17915ead5a934238a2d8808fb755bbe61642e4144595ccfb8231eb3ed3ecbd21 +SIZE (user-agents-0.2.0.tar.gz) = 6668 Added: head/devel/py-user_agents/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-user_agents/pkg-descr Tue Jan 28 14:15:21 2014 (r341571) @@ -0,0 +1,10 @@ +user_agents is a Python library that provides an easy way to identify/detect +devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings. The goal is to reliably detect whether: + +-- User agent is a mobile, tablet or PC based device +-- User agent has touch capabilities (has touch screen) + +user_agents relies on the excellent ua-parser to do the actual parsing of the +raw user agent string. + +WWW: https://github.com/selwin/python-user-agents