[csw-devel] SF.net SVN: gar:[20868] csw/mgar/pkg/lang-python

Maciej Bliziński maciej at opencsw.org
Fri Apr 26 16:24:25 CEST 2013


On Fri, Apr 26, 2013 at 11:54:49AM +0000, pfelecan at users.sourceforge.net wrote:
> Added: csw/mgar/pkg/lang-python/dnspython/trunk/Makefile
> ===================================================================
> --- csw/mgar/pkg/lang-python/dnspython/trunk/Makefile	                        (rev 0)
> +++ csw/mgar/pkg/lang-python/dnspython/trunk/Makefile	2013-04-26 11:54:49 UTC (rev 20868)
> @@ -0,0 +1,38 @@
> +# $Id$
> +
> +NAME		=	dnspython
> +VERSION		=	1.10.0
> +CATEGORIES	=	python

The categories line is the most imporant one. These days we only set
cartegories when there's a good reason for it.

> +GARTYPE		=	v2
> +
> +DESCRIPTION = Brief description
> +define BLURB
> +  dnspython is a DNS toolkit for Python. It supports almost all record
> +  types. It can be used for queries, zone transfers, and dynamic
> +  updates.  It supports TSIG authenticated messages and EDNS0.
> +
> +  dnspython provides both high and low level access to DNS. The high
> +  level classes perform queries for data of a given name, type, and
> +  class, and return an answer set.  The low level classes allow direct
> +  manipulation of DNS zones, messages, names, and records.
> +endef
> +
> +MASTER_SITES	=	http://www.dnspython.org/kits/$(VERSION)/

You can also use the default. This package is available from pypi:
https://pypi.python.org/pypi/dnspython

> +DISTFILES 		=	$(DISTNAME).tar.gz
> +SPKG_SOURCEURL	=	$(MASTER_SITES)
> +BUILD_DEP_PKGS	=	CSWpysetuptools
> +PACKAGES		=	CSWpy-dnspython
> +CATALOGNAME		=	py_dnspython

CATALOGNAME is automatic these days (replaces all "-" with "_").

> +ARCHALL			=	1
> +
> +CONFIGURE_ARGS	=	$(DIRPATHS)

Not necessary for Python packages.

> +
> +EXTRA_MERGE_EXCLUDE_FILES	+=	.*\.pyo .*\.pyc

Already in the category, can be removed.


More information about the devel mailing list