Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / lang / python / python-gnupg / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=python-gnupg
8 PKG_VERSION:=0.4.1
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=https://pypi.python.org/packages/fc/f1/df6c06da34939f67ea622e0b31dbc5bdb5121b271ab530d151df59974425/
13 PKG_HASH:=ef47b02eaf41dee3cf4b02ddf83130827318de9fe3eae89d01a3f05859e20e1a
14
15 PKG_LICENSE:=GPL-3.0+
16 PKG_LICENSE_FILES:=LICENSE
17 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
20 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
21
22 include $(INCLUDE_DIR)/package.mk
23 $(call include_mk, python-package.mk)
24 $(call include_mk, python3-package.mk)
25
26 define Package/python-gnupg/Default
27 SECTION:=lang
28 CATEGORY:=Languages
29 SUBMENU:=Python
30 URL:=https://github.com/isislovecruft/python-gnupg
31 DEPENDS:=+gnupg
32 endef
33
34 define Package/python-gnupg
35 $(call Package/python-gnupg/Default)
36 TITLE:=python-pyodbc
37 DEPENDS+=+PACKAGE_python-gnupg:python-light
38 VARIANT:=python
39 endef
40
41 define Package/python3-gnupg
42 $(call Package/python-gnupg/Default)
43 TITLE:=python3-gnupg
44 DEPENDS+=+PACKAGE_python3-gnupg:python3-light
45 VARIANT:=python3
46 endef
47
48 define Package/python-gnupg/description
49 A Python wrapper for GnuPG
50
51 This module allows easy access to GnuPG.s key management, encryption
52 and signature functionality from Python programs, by interacting with
53 GnuPG through file descriptors. Input arguments are strictly checked
54 and sanitised, and therefore this module should be safe to use in
55 networked applications requiring direct user input. It is intended for
56 use on Windows, MacOS X, BSD, or Linux, with Python 2.6, Python 2.7,
57 Python 3.3, Python 3.4, or PyPy.
58 endef
59
60 define Package/python3-gnupg/description
61 $(call Package/python-gnupg/description)
62
63 (Variant for Python3)
64 endef
65
66 define PyBuild/Compile
67 $(call Build/Compile/PyMod,,\
68 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
69 )
70 endef
71
72 define Py3Build/Compile
73 $(call Build/Compile/Py3Mod,,\
74 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
75 )
76 endef
77
78
79 $(eval $(call PyPackage,python-gnupg))
80 $(eval $(call BuildPackage,python-gnupg))
81
82 $(eval $(call Py3Package,python3-gnupg))
83 $(eval $(call BuildPackage,python3-gnupg))