You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.3 KiB

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