]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/core/python-pycurl/python-pycurl.nm
python-pycurl: New package.
[people/arne_f/ipfire-3.x.git] / pkgs / core / python-pycurl / python-pycurl.nm
CommitLineData
641d3495
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = pycurl
28PKG_VER = 7.19.0
29PKG_REL = 1
30PKG_ARCH = noarch
31
32PKG_MAINTAINER =
33PKG_GROUP = Development/Languages
34PKG_URL = http://pycurl.sourceforge.net/
35PKG_LICENSE = LGPLv2+ or MIT
36PKG_SUMMARY = A Python interface to libcurl.
37
38CFLAGS += -DHAVE_CURL_OPENSSL
39
40PKG_BUILD_DEPS+= curl-devel openssl-devel python-devel
41
42define PKG_DESCRIPTION
43 PycURL is a Python interface to libcurl. PycURL can be used to fetch \
44 objects identified by a URL from a Python program, similar to the \
45 urllib Python module. PycURL is mature, very fast, and supports a lot \
46 of features.
47endef
48
49PKG_TARBALL = $(THISAPP).tar.gz
50
51define STAGE_BUILD
52 cd $(DIR_APP) && python setup.py build
53endef
54
55define STAGE_TEST
56 cd $(DIR_APP) && PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q
57endef
58
59define STAGE_INSTALL
60 cd $(DIR_APP) && python setup.py install --skip-build -O1 \
61 --root=$(BUILDROOT)
62 cd $(DIR_APP) && rm -rf $(BUILDROOT)/usr/share/doc/pycurl
63endef